|
-
June 21st, 2000, 09:13 AM
#1
Dropdown usercontrol - ZOrder???
I built a usercontrol that essentially consists of a textbox with a command box to the right of it, and a picturebox underneath it. Whent he user presses the command button, I want to display the picturebox - giving a dropdown effect (time selection command buttons sit in the picturebox).
The problem is that the usercontrol will not always stay on top of other controls - particularly those controls dropped onto the form after I dropped the usercontrol.
I want the dropdown portion of my usercontrol to behave like standard combo boxes and date selection controls - always on top regardless of zorder. HOW???!!!
-
June 21st, 2000, 11:56 AM
#2
Re: Dropdown usercontrol - ZOrder???
The usercontrol, I assume, has been created and the dropdown functionality has been tied into it. Assuming you aren't 'mixing controls' by having the dropdown portion on your main form or something... why not have an 'Init' sub called on load that always places it on top?
public sub init
usercontrol1.zorder
end sub
or just use the form initialize event .... To say regardless of Z-order is kind of silly since that's the issue.
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
|