Results 1 to 4 of 4

Thread: How does a Combo box do that?

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2001
    Posts
    7

    Question How does a Combo box do that?

    Hi

    When clicking on the arrow of a combo box, the drop down list appears below it, outside the boundries of the component. I would like to do something similar, can any one help please.

    Thanks
    BigAl
    hmmmmm Dohh-nutssssss

  2. #2
    jim mcnamara
    Guest
    Think of it as a window resize:

    just change the MyControl.Height, and .Refresh

  3. #3

    Thread Starter
    New Member
    Join Date
    Sep 2001
    Posts
    7

    Thanks but......

    Hi

    Thanks for that and that is sort of what I am looking for. My real objective is to have component in the style of a textbox. When it is double clicked a numeric keypad apears on the screen(in a seperate form) when the enter key on this keypad is pressed the value entered is passed to the original text box and the keypad form is unloaded. I have already written the keypad component and have completed as shown below

    I have created an activex that is basically a text box, the component also contains a form with the keypad activex on it.

    My problem is then passing the value from the keypad to the textbox. i.e. how do I address it?

    When I call the keypad form from the text box dblclick event I just say- frm_keypad.show but how do I say text1=keypad.output, I can't find a way. Please help!!!

    Thanks Big Al
    hmmmmm Dohh-nutssssss

  4. #4
    Hyperactive Member
    Join Date
    Sep 2001
    Location
    Orlando
    Posts
    392
    Talking about making something like the combobox, try www.vbaccelerator.com
    Look for the DropDownToolWindow class and article, you will find a way of making any control appear like the drop down list of the combo box.

    Resizing the usercontrol doesn't always help because some times you need the window to drop off the form. You know what I mean...



    Cheers.
    Abu Haider
    ____________________________
    100% Data Validation for the MS DataGrid Control. Plus Support for Custom and Foreign Lists, DatePicker and much more...
    The DataGridEnhancer


    I often point to a place where the problem has been discussed, instead of giving you the code that solves it. This is for good, may be you will understand some day...

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