Search the Community
Showing results for tags 'controls'.
-
Hey people i've been having problems with vb.net. i like to use 'controls' with looping as to get rid of the need to do basically the same command over and over again. but this comand doesn't work for all objects... and i would like some help so the code goes a little like this For Counter As Integer = 1 To 64 Step +1 Controls("Panel" & Counter).BackColor = Color.Black Next as you could guess this is for a game of chess
-
I've searched everywhere online and can't find anything on this. Is there was any way to migrate all controls from form to form? I've tried For Each Ctrl as Control in Form2.Controls Form1.Controls.Add(Ctrl) Next I get skipped controls and ect... but... If I try to get the name of each control For Each Ctrl as Control in Form2.Controls Debug.Print(Ctrl.Name) Next It does not skip any and the debugger prints every control's name just fine. Any Ideas? This is really bothering me.