>How to reload method form module.
I guess you want to call a method. Isn't it?
__avd
Posting Genius (adatapost)
8,648 posts since Oct 2008
Reputation Points: 2,136
Solved Threads: 1,241
You have to call that method in button click event handler.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Me.WindowState = FormWindowState.Maximized
Randomize()
bknapper()
End Sub
__avd
Posting Genius (adatapost)
8,648 posts since Oct 2008
Reputation Points: 2,136
Solved Threads: 1,241
>i am still getting the same problem..is that another way that i can solv this issue?
You have to remove all checkboxes from the controls collection before adding new.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
For Each ch In Me.Controls
If TypeOf ch Is CheckBox Then
Me.Controls.Remove(ch)
End If
Next
Randomize()
bknapper()
End Sub
__avd
Posting Genius (adatapost)
8,648 posts since Oct 2008
Reputation Points: 2,136
Solved Threads: 1,241