Missing events when declaring controls withevents in vba
From: Stefan Poehn (stefan.poehn_at_IH8SPAMbms.de)
Date: 11/26/04
- Next message: Paul: "Re: Please help: serial communications"
- Previous message: Flex: "load a png file"
- Next in thread: Jeff Johnson [MVP: VB]: "Re: Missing events when declaring controls withevents in vba"
- Reply: Jeff Johnson [MVP: VB]: "Re: Missing events when declaring controls withevents in vba"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 26 Nov 2004 16:03:03 +0100
Hi
I am drawing a textbox on a form in vba and choose the name "TextBox1". I
can catch the event Textbox1_Exit. When I declare a textbox "Private
WithEvents mtextbox as MSForms.TextBox" I do not have the Exit event. The
combobox for choosing the events from TextBox1 displays the event Exit. The
combobox for choosing the events from mtextbox does not display event Exit.
Even if I rename the TextBox1_Exit method to mtextbox_Exit the Exit event
does not get fired for mtextbox.
Is this a bug in VBA? Can I get around it?
Thanks
Stefan
.
- Next message: Paul: "Re: Please help: serial communications"
- Previous message: Flex: "load a png file"
- Next in thread: Jeff Johnson [MVP: VB]: "Re: Missing events when declaring controls withevents in vba"
- Reply: Jeff Johnson [MVP: VB]: "Re: Missing events when declaring controls withevents in vba"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|