VB.Net is much easier. I started with VB.Net and so far it is the easiest to understand and learn. But at the same time it is not a powerfull and C++, C#, or Java. I would start there though. Then work your way up.
VB.Net
Private Sub Button2_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles Button2.Click
PB.Maximum = 1000
For a As Double = 0 To 999
PB.Value += 1
lblCurrent.Text = (String.Format("{0:000}", a))
lblCurrent.Update()
'Format the number, to get the numbers like you want
'Add them to a listbox
lstNumbers.Items.Add(String.Format("{0:0... a))
Next
End Sub
--------------------------------------...
C#
private void Button2_Click(object sender, System.EventArgs e) {
PB.Maximum = 1000;
for (double a = 0; (a %26lt;= 999); a++) {
PB.Value++;
lblCurrent.Text = string.Format("{0:000}", a);
lblCurrent.Update();
// Format the number, to get the numbers like you want
// Add them to a listbox
lstNumbers.Items.Add(string.Format("{0:0... a));
}
}
Which is better for a beginner? vb.net or c#.net?
Either. Actually in the absolute, C# has a slightly more difficult syntax, however that doesn't mean that VB.NET is better for a beginner.
C# is more in demand and not only that, learning its syntax will allow you to easily understand the syntax of many other languages you will likely use with C# for example Javascript.
It is also known that it is easier for C# programmers to read VB.NET code than vice versa.
I suggest you go for C#.
Reply:of course its VB.
Better you have some object oriented programming concepts and go for VB
Reply:v.b
but honestly.. i recommend visual foxpro.. easy to understand easy to use.. easier that v.b.. but similar to v.b
Reply:C#.net
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment