How to dynamically draw buttons in .NET windows app? -


In the long run, I have created an application that has some buttons in the form. Now the customer wants to modify the existing application so that he can add a custom button.

Now there are some existing buttons (eg button 1, button2, button3 ...) and one button "Add new ..." so that the user can add a new button under the current button .

So far, I am creating user interfaces only by controlling the form in the Visual Studio so that I

the existing application Windows Form Application (C #, .NET Framework v3.5 ) And the client is using Windows XP. It may be easy to create a WPF application, but I'm not sure that it is possible to run on Windows XP ...

Thanks!

If you can create a new dynamic button using C #

  button btn1 = new button (); This.Controls.Add (btn1); Can you add more properties to  btn1  

?


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -