-
Hey all,
At http://www.vb-world.net/tips/tip131.html it tells you how to disable the default popupmenu for the text box. In the code, theres comment that says: 'Do nothing
'Or popup you own menu
So I tried to put my own popupmenu (PopupMenu name) and I get variable not defined. Is this because the popupmenu method is in a module so it can't be object specific? Whats a way around this?
Thanks,
Sunny
-
To popup your own menu , u have to use
popupmenu formname.menuname
where the menu is creted.
-
I have also tried that as well. But since the code is in a module, referring to "form1" will be object specific. Then using popupmenu form1.menuname I got a sub or variable not defined
Sunny
-
yes...that is the code i used.
Sunny
-
oops
i am sure this will work
form.popupmenu form.menuname
sorrie for the previous errors...
-
Y'all are missing the point here.
"FormName" doesnt exist as an object in the module, but as a data type. What you have to do is, when you subclass the window, add a window property, and use PtrFromObject/ObjectFromPtr.