Click here to Skip to main content
15,891,513 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Conditional For statement in vb.net ...convert these statement into vb.net


for examples

C#
for (int i = 0; i < this.datagridview.Rows.Count; i++) 

next
Posted

Try http://www.dotnetperls.com/for-vbnet[^]. It gives you a very basic example of the loop.

Reading a book on VB.Net will also help you get started.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 28-Jun-13 0:34am    
Fair enough, a 5.

By the way, I put an universal solution in my answer, please see.
—SA
Abhinav S 28-Jun-13 1:50am    
Thank you SA.
In addition to Solution 1:

It's not really good to ask a question each time you need to translate C# to VB.NET or visa versa. It's much better to learn how you can do it automatically. You can have both online and off-line solutions. Please see my past answer: Need to convert vb code to c#[^].

—SA
 
Share this answer
 
Comments
Abhinav S 28-Jun-13 1:50am    
Of course. A 5.
Sergey Alexandrovich Kryukov 28-Jun-13 7:35am    
Thank you, Abhinav.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900