|
-
May 27th, 2011, 11:49 PM
#1
Thread Starter
Member
ZOrder and GUI
Hey everyone, i'm new to vb.net and need a little knowledge here...
in vb6 i was able to create picture boxes and do pic.Zorder = 0 and it would bring it to the front.
in .net i'm using the panel control and doing .BringToFront and i also tried the panel.Parent.Controls.SetChildIndex(panel, 0)... nothing seems to work..
is there another control i should use for this to work? thanks
-
May 28th, 2011, 12:10 AM
#2
Re: ZOrder and GUI
BringToFront will bring a control to the front of the z-order within its parent. If it's not doing what you expect then either you're expecting it to do something else or something is broken, either in your project or on your system.
Try creating a new project with just two controls and see if BringToFront works there. If it doesn't then your system is broken. If it does then either your other project is broken or you're expecting something other than what BringToFront does.
-
May 29th, 2011, 03:43 PM
#3
Thread Starter
Member
Re: ZOrder and GUI
yeah is vb10 the most reliable? so far it doesnt look that way... 2008 maybe? or 2005? let me know what you guys think
-
May 29th, 2011, 08:17 PM
#4
Re: ZOrder and GUI
There's no "reliability" issue.
-
May 29th, 2011, 09:51 PM
#5
Re: ZOrder and GUI
it's most likely the container issue. Some container controls can't have their z-order moved.
in addition, panel.parent is referencing the form or control the panel is in, and has nothing to do with any controls the panel contains.
does panel.controls(1).bringtofront behave the way you wish?
Last edited by Lord Orwell; May 29th, 2011 at 09:59 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|