CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 1999
    Location
    Netherlands
    Posts
    181

    Unloading controls in combo-click event

    Does anyone know why it's impossible to unload controls (an array of labels and textboxes) in the combo box click event and why it does work in a list-click? Combo style is set to 1, which is basically a textbox with a listbox below, but i'm not allowed to unload my labels in that event while it works perfectly in the list-click event. Anyone has a smart answer? Or is this just M$ logical thinking and shouldn't I think too much about it :-)

    Crazy D @ Work :-)

  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Unloading controls in combo-click event

    this is even documented:
    "In some situations you are not allowed to unload a form or a control on a form.
    ...
    There is an Unload statement in the Change, Click, or DropDown events of a ComboBox.
    Remove the Unload statement from the event"

    just hit HELP when the error pops up (error 365).
    Thus, it's by design :-)


  3. #3
    Join Date
    Apr 1999
    Location
    Netherlands
    Posts
    181

    Re: Unloading controls in combo-click event

    *S* I know the F1 key :-)
    But what kind of loser has designed that...
    Ah well, the listbox works fine :-)
    (but still it's stupid... *S*)

    Crazy D @ Work :-)

  4. #4
    Join Date
    May 1999
    Posts
    3,332

    Re: Unloading controls in combo-click event

    Everything will be better in VB 7!

    "I feel much better, now that I've given up hope" (Ashley Brilliant)
    :-)


  5. #5
    Join Date
    Apr 1999
    Location
    Netherlands
    Posts
    181

    Re: Unloading controls in combo-click event

    I may say you're a dreamer, but you are not the only one.
    Maybe some day VB will be bugless... and let the world program happily...
    *L*
    ah well maybe I'm just not so optimistic, but somehow, I think that M$ adds lots of functionality to VB7.. forgetting they have still a huge buglist for 6... hehe oh no, it's not a bug, it'a not working, but that's by design...

    Crazy D @ Work :-)

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