Well im from VB and im new to C# i just have a few questions.
1. How is the If's else's etc done in C#? In VB it would be like
If Textbox1.Text = "Hello" Then
Form1.Textbox2.Text = "Hi!"
Else
Form1.Textbox2.Text = "Bye"
End If
2. How are varibles done? In VB it would be
Dim R As String
R = "Radio"
Form1.Textbox1.Text = R
3. Hows would the syntax be for adding 2 textbox's values togetha (if they both had integers in them.
In VB its
TextBox1 = int(Textbox2.Text + int(Textbox3.Text))
4. How do i hide a form and show another one. In VB its like
Form1.Hide
Form2.Show
Please if you know please post. It would help me alot. Thanks.


Reply With Quote

