944,208 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 1520
  • VB.NET RSS
Nov 9th, 2009
0

Group Box on top

Expand Post »
Hi all,

New user here using VB .Net 2008

I seem to be having trouble getting group boxes to appear when I click a radio button.

For example:
VB.NET Syntax (Toggle Plain Text)
  1. If radiobutton1.Checked Then
  2. Groupbox1.Visible = True
  3. Groupbox2.Visible = False
  4. Groupbox3.Visible = False
  5. Groupbox4.Visible = False
  6. End If

This indeed brings up the first radio button however I have other groupboxes underneath which with the same code will not appear when the radio button is checked.

Eg:

VB.NET Syntax (Toggle Plain Text)
  1. If radiobutton2.Checked Then
  2. Groupbox2.Visible = True
  3. Groupbox1.Visible = False
  4. Groupbox3.Visible = False
  5. Groupbox4.Visible = False
  6. End If

The second groupbox does not appear and is directly behind the first groupbox.

The
VB.NET Syntax (Toggle Plain Text)
  1. .Top
code doesn't seem to be working either.

If anyone could shed some light on this I would really appreciate it.

Thanks!
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
tiscood is offline Offline
3 posts
since Nov 2009
Nov 9th, 2009
0
Re: Group Box on top
It sounds as if, the groupboxes 2-4 are contained within the first groupbox container... If you move groubbox1 around on the form, does all the other groupboxes move with it?
Reputation Points: 84
Solved Threads: 48
Posting Whiz
TomW is offline Offline
342 posts
since Sep 2009
Nov 9th, 2009
0
Re: Group Box on top
Hi Tom,

I got this fixed earlier. You are right, they were merging together. I found it quite difficult to fix as they kept linking so I had to put the group boxes slightly out of order to fix this which I am not happy with but it seems to be the only solution.

Thanks again
Reputation Points: 10
Solved Threads: 0
Newbie Poster
tiscood is offline Offline
3 posts
since Nov 2009
Nov 9th, 2009
1
Re: Group Box on top
Without using the mouse to move the group boxes, assign them all the same location in the properties window. This will position them on top of each other and should prevent them from becoming a child control.
Reputation Points: 84
Solved Threads: 48
Posting Whiz
TomW is offline Offline
342 posts
since Sep 2009
Nov 9th, 2009
0
Re: Group Box on top
Thanks Tom!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
tiscood is offline Offline
3 posts
since Nov 2009
Jul 15th, 2010
0
Re: Group Box on top
or you can put it in the code.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
markrtc is offline Offline
1 posts
since Jul 2010

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: move chart in excel with vb.net
Next Thread in VB.NET Forum Timeline: Get windows title / name





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC