Groups | Blog | Home
all groups > dotnet sdk > may 2004 >

dotnet sdk : .NET Controls differ vastly from VB6



Brandon
5/26/2004 8:31:13 AM
Hello

I've been forced to upgrade to .NET and I have not had the time to study all of its nuances. One thing that stands out is how the controls differ from VB6. I have a groupbox in .NET but I can't figure out which radiobutton has been selected. The groupbox.text property only has what was set at design time. I would like to do the followin

select case groupbox.tex
case
case
case
end selec

How do I get the value of the groupbox

Thank you

rajamanickam
5/27/2004 1:26:07 AM
Hi

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

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

End Su

Private Sub RadioButton1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadioButton1.Clic
GroupBox1.Text = RadioButton1.Tex
End Su
Private Sub RadioButton2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadioButton2.Clic
GroupBox1.Text = RadioButton2.Tex
End Su
Private Sub RadioButton3_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadioButton3.Clic
GroupBox1.Text = RadioButton3.Tex
End Su

..... your group box will display the selected radio button text...
by
AddThis Social Bookmark Button