[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.sdk

Re-2: .NET Controls differ vastly from VB6

MrSnorkle

7/22/2004 2:09:00 AM

oyoyoyoy, how about this:

Sub RadioButtons_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadioButton1.Click,RadioButton2.Click
,RadioButton3.Click
GroupBox1.Text = sender.Text
End Sub

instead of having three of them.

Greetings,

MrSnorkle
-------- Original Message --------
Subject: RE: .NET Controls differ vastly from VB6 (27-Mai-2004 10:26)
From: rajamanickam <tryraja@yahoo.com>
To: microsoft.public.dotnet.framework.sdk

> Hi ,

inside a group box add 3 radio buttons then paste the following code
> in the code part

Private Sub Form1_Load(ByVal sender As System.Object,
> ByVal e As System.EventArgs) Handles MyBase.Load

End Sub

Private
> Sub RadioButton1_Click(ByVal sender As Object, ByVal e As System.EventArgs)
> Handles RadioButton1.Click
GroupBox1.Text = RadioButton1.Text

> End Sub
Private Sub RadioButton2_Click(ByVal sender As Object, ByVal e
> As System.EventArgs) Handles RadioButton2.Click
GroupBox1.Text =
> RadioButton2.Text
End Sub
Private Sub RadioButton3_Click(ByVal
> sender As Object, ByVal e As System.EventArgs) Handles RadioButton3.Click

> GroupBox1.Text = RadioButton3.Text
End Sub


... your group box
> will display the selected radio button text...
bye
Rajamanickma