Windows Forms Question (C#)

Help , Csharp , Windows Forms London, United Kingdom
  • 8 years ago

    Hello All,

    This is really easy in VB.Net any idea what i need to do in C# please?

    FormA Private Sub TextBox1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.Click FormB.Show() FormB.TextBox1.Text = TextBox1.Text End Sub

    FormB Private Sub FormB_Deactivate(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Deactivate FormA.TextBox1.Text = Me.TextBox1.Text End Sub

    Any help greatly appreciated,

    :-)

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Computer science education cannot make anybody an expert programmer any more than studying brushes and pigment can make somebody an expert painter” - Eric Raymond