CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2008
    Posts
    11

    Question how to create using button to create button

    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
    Attached Files Attached Files

  2. #2
    Join Date
    Jan 2006
    Location
    18° 32' N / 73° 52' E
    Posts
    416

    Re: how to create using button to create button

    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/2...t-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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured