Results 1 to 7 of 7

Thread: Few C# Questions.

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2007
    Posts
    69

    Few C# Questions.

    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.
    Last edited by xEnt; Jan 19th, 2008 at 08:42 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width