A
Abubakar
HI all,
working in the vs.net 2k5 beta 2, I write the following code which gives me
an exception:
ContextMenu textboxmenu = textBox2.ContextMenu;
MenuItem menuitem = new MenuItem("hello");
textboxmenu.MenuItems.Add(0,menuitem);
its gives me an exception: "Object reference not set to an instance of an
object.". I understand this msg but its not so, cuz the variable "menuitem"
is properly intantiated and pointing to an object.
Regards,
Abubakar.
working in the vs.net 2k5 beta 2, I write the following code which gives me
an exception:
ContextMenu textboxmenu = textBox2.ContextMenu;
MenuItem menuitem = new MenuItem("hello");
textboxmenu.MenuItems.Add(0,menuitem);
its gives me an exception: "Object reference not set to an instance of an
object.". I understand this msg but its not so, cuz the variable "menuitem"
is properly intantiated and pointing to an object.
Regards,
Abubakar.