Questions tagged [control-array]
34 questions
0
votes
3 answers
How to add a matrix of OvalShapes to the window?
I want to draw 16*64 matrix, each one containing a:
Microsoft.VisualBasic.PowerPacks.OvalShape.
I used this:
List ovalShape =
new List();
for (int i = 0; i…

Abdur Rahim
- 3,975
- 14
- 44
- 83
0
votes
4 answers
Cannot create button array in silverlight?
This is the code i using, but i not sure why it can be implement via the way i done in window form.
Button[] btnMonday = new Button[20];
string[] timeslot = { "08:00 AM", "08:30 AM", "09:00 AM", "09:30 AM", "10:00 AM", "10:30 AM",…

1myb
- 3,536
- 12
- 53
- 73
0
votes
0 answers
Can I have a single procedue instead of multple procedure for each userform control objects (Like common_combobox_change() method) in VBA?
I have a userform with multiple elements.
An example for changing the background of the control button upon mouse hovering. But for each button I need to define the predefined Button_MouseMove(....) function.
I would like to have a single function…
0
votes
2 answers
How do I create a control array that can be used inside any private sub?
I'm trying to make a pair matching game, to learn visual basic, and I'm struggling with getting control arrays to work how I want them to.
Here's my code,
Public Class Form1
Dim buttonArray As Button() = {Button1, Button2, Button3, Button4, Button5,…

CharlRae
- 1
- 2
0
votes
2 answers
Fill a boolean array from checkbox control array
My program creates an array of checkboxes at runtime as shown below:
For Looper = 0 To 36
Dim Ex1ConfigCheck As New CheckBox
frmSetup.Controls.Add(Ex1ConfigCheck) ' Add Control to from
Ex1ConfigCheck.Top =…

Opie
- 1
0
votes
1 answer
Can't add controls dynamically to controlarray
I am trying to add an input dynamically to a form when someone clicks on a button.
I found this example from the offical docs:Angular2 docs
& plnker
It is working with alpha.37 as you can see in the plunker.
I've translated it to…

user3021615
- 33
- 1
- 8
0
votes
1 answer
Deleting controls each time ShowDialog is called
I have a form that I display exclusively with the ShowDialog method. In the Form_Shown event, I dynamically create a set of labels and text boxes based on a public variable set in the form making the call.
I understand that the form is not closed or…

Josh
- 1,088
- 1
- 7
- 16
0
votes
1 answer
Is it possible to copy control array to another control array in VB6?
I want to copy content of control array to another control array, is it possible in VB6?
please help

Anugrah
- 39
- 1
- 11
0
votes
1 answer
How to Handle events from a control array VB.net
To start, hi to everyone im new to stackoverflow, and also new to programing (on 1º year).
I've been searching but ive found nothing that answer my question, or maybe im just to newbie to understand the answers, so im sorry if its too simple, i…

Elán
- 11
- 1
- 3
0
votes
1 answer
Control Array Examples Needed for Visual Studio 2013
I know control arrays don't actually exist anymore, but I need something I can relate to my code. I'm making a shopping list game with a grid of 32 tiles that flip when clicked. They are actually PictureBoxes called pbxTile1 - pbxTile32. I sense you…

Jayce
- 539
- 6
- 21
0
votes
1 answer
Create and remove controls dynamically
I have a program that I wrote in VB6 many years ago that worked well. However, I am required to move all the applications to .NET. I'm still very new at this, and programming is not my main job. I'm an Air Traffic Controller :) I've searched…

Dan R
- 1
- 1
0
votes
0 answers
Print and Control arrays in VB2010/2013?
I have homework that constitudes of creating a loop in Visual Basic (The course is about the 2010 version, however, I've also tested with 2013 and 6.0), that prints (Using the print command) "Loop" 10 times, in a for loop. Pretty simple…

user2534511
- 48
- 5
0
votes
3 answers
Correct way to add controls dynamically
CheckBox[] checkBoxArray = new CheckBox[lines.Count()];
CheckBox checkBox = new CheckBox();
int yLocation = 25;
int diff = 0;
int i = 0;
foreach(var line in lines)
{
this.checkBox.Text = line;
this.checkBox.Location = new…

software is fun
- 7,286
- 18
- 71
- 129
0
votes
1 answer
how to access the control within a control in tablelayout
I have a Class(Conatiner) object in a tablelayoutpanel cell. I want to access that textfield in that specific field. How can I take the values on a button click?
I want to access the 1 2 3 with the Channel and the X and Y values. But I do not know…

Nosheen Javed
- 175
- 1
- 5
- 21
0
votes
2 answers
List(Of Event) in VB.NET
The following is part of a larger project, but for the purpose of this question, I have the following code:
Public MustInherit Class Class1(Of T As {System.Windows.Forms.Control, New})
Inherits System.Windows.Forms.UserControl
Friend Items As New…

as9876
- 934
- 1
- 13
- 38