Shadow Blade
Morrowland Presents Apron Tutorials
game - design - multimedia - web - programming - tutorials - There are currently viewers visiting Apron Tutorials.
   
 
TECHNICAL
GRAPHICAL
SOUND
GAME
WEB
ARTICLE
TOOL
PROJECT
 
 NEWS

  news

  history


 TECHNICAL TUTORIALS

  opengl

  direct3d

  c/c++

  visual basic

  java

  c#


 WEB TUTORIALS

  html

  dhtml

  asp

  php


 IMAGE EDITING

  photoshop

  draw sketch


 3D MODELING

  3d studio


 PROJECTS

  shadow blade

  game environment

  virtual 3d guide

  billy blue flame


 DEMOS

  win32 api


 ARTICLES

  general

  opengl


 COMMUNITY

  about us

  credit

  contact







VISUAL BASIC .NET APRON TUTORIALS





Public Class Form1
    Inherits System.Windows.Forms.Form

    'Here is two different ways to use procedures...

    Dim mySum1 As Integer
    Dim mySum2 As Integer
    Dim X As Integer

    'Part I''''''''''''''''''''''''''''''
    'uses a procedure without arguments
    Private Sub myProc1()
        mySum1 = X + 5              'add X with 5 and set answer in mySum1
    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, _
    ByVal e As System.EventArgs) Handles Button1.Click
        X = 5                       'set X = 5
        myProc1()                   'then call our procedure myProc1
        TextBox1.Text = mySum1      'write mySum1
    End Sub
    'END Part I''''''''''''''''''''''''''

    'Part II'''''''''''''''''''''''''''''
    'uses a procedure with arguments
    Private Sub myProc2(ByVal Y As Integer)
        mySum2 = Y + 5
    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, _
    ByVal e As System.EventArgs) Handles Button2.Click
        myProc2(5)                  'call our procedure myProc2 with inparameter 5
        TextBox2.Text = mySum2      'write mySum2
    End Sub
    'END Part II'''''''''''''''''''''''''

End Class


Download The Source Code! Visual Basic .Net Source Code


I hope you found this VB .Net tutorial useful!

Don't forget to mention Apron Tutorials in your References!

Best Regards
Ronny André Reierstad

 LINKS

  morrowland home



 GAME DEVELOPEMENT

  nvidia

  gamedev

  polycount


 PROJECTS

  shadow blade

  game environment

  virtual 3d guide

  billy blue flame


 MATH AND PHYSICS

  mathworld

  physicsworld







PLEASE LINK TO


  All rights reserved Morrowland © 2011  
Ronny André Reierstad