Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / .NET SDK / June 2004

Tip: Looking for answers? Try searching our database.

.NET Controls differ vastly from VB6

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Brandon - 26 May 2004 16:31 GMT
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

Brandon
rajamanickam - 27 May 2004 09:26 GMT
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
Rajamanickma
MrSnorkle - 15 Jun 2004 16:20 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.