- Joined
- Apr 13, 2012
- Messages
- 536
- Reaction score
- 32
Hello ,
How can i add an object while debugging the project with a code ??
How can i add an object while debugging the project with a code ??
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature currently requires accessing the site using the built-in Safari browser.
you didnt get meIf you want to edit the code and continue , works on 32 bit(on 64bit you have to stop debugging edit and run again ).
There are also conditions where you cannot edit and continue(like adding new fields, methods, classes, etc), debugs and edtt works only in methods
Button buton as new Button;
button.Width = 100;
button.Height = 20;
button.Text = "Button 1";
button.Visible = true;
pannel.Controls.add(button);
but how can i make it inserting unlimited number of buttons by the code like 100 button everytime Button 1 , Button 2 ,etcSo you want to add controls programatically, every control has his sub controls,
PHP:Button buton as new Button; button.Width = 100; button.Height = 20; button.Text = "Button 1"; button.Visible = true; pannel.Controls.add(button);
Don't forget to Dispose of the objects when you dont need them(The Controls are not collected by the garbage collector,they are disposable, and besides memory it also takes GDI Object memory, which is limited to 10000 GDI Objects, if it passes more then 10000 the application will crash when you try to create a GDI Object)
Try to dispose of the control when you don't need it.