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





'Learn how to use a Do While Loop.

Public Class Form1
    Inherits System.Windows.Forms.Form

    Private Sub Form1_Load(ByVal sender As System.Object, _
    ByVal e As System.EventArgs) Handles MyBase.Load
        'display the numbers from 0 to 9
        Dim i As Integer

        'method 1
        Do While (i < 10)
            TextBox1.Text = TextBox1.Text & i & ","
            i = i + 1
        Loop

        i = 0 ' reset i

        'method 2
        Do
            TextBox2.Text = TextBox2.Text & i & ","
            i = i + 1
        Loop While (i < 10)
    End Sub

End Class

' Let us take a closer look at our do while loop:
'----------------------------------------------------------------
'    Do While (i < 10)
'        TextBox1.Text = i
'        i = i + 1
'    Loop
'----------------------------------------------------------------
' Do While - do while loop

' i < 10   - loop while i less than 10

' i=i+1    - increment o

' Loop     - loop while i less than 10
'----------------------------------------------------------------
'Description:
'Loop until argument is set.
'Warning! The do while loop can crash your program if "done wrong".
'-----------------------------------------------------------------------------



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