Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[VB.Net] Help ..

Junior Spellweaver
Joined
Oct 27, 2008
Messages
165
Reaction score
89
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
 
Joined
Apr 13, 2012
Messages
536
Reaction score
32
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
 

Attachments

You must be registered for see attachments list
Junior Spellweaver
Joined
Oct 27, 2008
Messages
165
Reaction score
89
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:
Joined
Apr 13, 2012
Messages
536
Reaction score
32
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
 
Joined
Aug 16, 2006
Messages
1,252
Reaction score
200


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
Top