I forget index math, so this is probably a lot slower than it should be. ![]() Note: k(y) > 0 if there is a button there, re: the first for each loop. (damn, and i had all the buttons working like they were supposed to, as well) vb as a text file, so i'll do more later. This is the best i can do, and VS deleted my project when i saved the. PUT ME ON THE FRONT PAGE! : Dim c As For Each c In Me.Controls z = z + 1 If c.("Button") Then k(z) = z End If Next For y = 0 To k.Length If k(y) > 0 Then Me.Controls.Item(k(y)).Visible = True End If Next now how do i do this without a for each loop?Īnd how the hell do i have a control array? ![]() How do i set the value of c by hand so i can use it in another way - re: my original questionĭamn it. This works (as in i can see the button names) H = h + c.Name.ToString + Environment.NewLine button1 is a variable name, but does VB.net (or even C#) have anything where i can just do a for loop and set 1 button each run through? Else if?Īlso, is there a way to access buttons by ID rather than names? Like see how it says button1, button2? I remember programming in the old days where you could do stuff like ![]() is there any way to do this in VB.NET without If. Let's say i have 8 cases that i want to fall through in order (like in C) starting at the least likely and ending at the most likely.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |