jielun
October 2nd, 2008, 08:25 PM
i have problem doing this..anyone can help me?i need to create a button at the form of VB2005 using C# and when i click at the button other two of the button will appear.. but not using button1.Visible = true/false;..Is like when we click at the button other two of the button is created and appear on the form..anyone pls reply me asap thax alot!!!!! have a look of the attach file
MMH
October 3rd, 2008, 03:15 AM
I had posted a link in the previous post of yours. Here it's again... Have a look into it. There is the full source code available that you can download.
http://code-in-action.blogspot.com/2008/09/how-to-adddelete-controls-at-runtime.html
Go through the "ButtonArray.cs" file. It shows how to add controls on the form at runtime, also how to wireup the events. try out yourself first. If still you couldn't figure out then we'll help you with the code.
Cheers !
MMH