[VB.Net] Help ..

If 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
 
If 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
you didnt get me
i need the code of insert button or anything like that :
y74urIz - [VB.Net] Help .. - RaGEZONE Forums
 
So 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.
 
Last edited:
So 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.
but how can i make it inserting unlimited number of buttons by the code like 100 button everytime Button 1 , Button 2 ,etc
 
http://bit.ly/11gXwlY

Hope that helps ya :D

(First result)
Dim numberOfButtons AsInteger
Dim buttons() as Button

Private Sub MyForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Redim buttons(numberOfbuttons)
for counter as integer = 0 to numberOfbuttons
With buttons(counter)
.Size = (10, 10)
.Visible = False
.Location = (55, 33 + counter*13)
.Text = "Button "+(counter+1).ToString ' or some name from an array you pass from main
'any other property
End With
'
next
End Sub
 
Back