CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2000
    Location
    Colorado, USA
    Posts
    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???!!!


  2. #2
    Guest

    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
  •  





Click Here to Expand Forum to Full Width

Featured