|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Very simple Delete Button help!!!!!I have a context menu on a button. I just need some code that will
delete the button when the context menu is clicked. Any ideas? Marc wrote:
> I have a context menu on a button. I just need some code that will I should add that i do not know the button name as it is created> delete the button when the context menu is clicked. > > Any ideas? dynamically. Delete the button? you mean remove it from the control?
Contextmenu.controls.remove(buttonname) -or Contextmenu.control.removeat(indexofbutton) Hope this helps. this method workss in both VB 2k3 and 2k5. -- Thiele Enterprises - The Power Is In Your Hands Now! -- "Marc" <marc_cro***@hotmail.com> wrote in message Marc wrote:news:1164455008.113032.162510@j44g2000cwa.googlegroups.com... > I have a context menu on a button. I just need some code that will I should add that i do not know the button name as it is created> delete the button when the context menu is clicked. > > Any ideas? dynamically.
regarding .net help
Help reading control.location value back form text file simple format question Registry Key Manipulation Getting IP Address of the ACTIVE network card DataGridView conversion problems help readin text file newbie: foundfile attributes? (filesize, saved date, etc.) Help reading simple text file Needto grab the name and position of all buttons on a form -is this possible? |
|||||||||||||||||||||||