shrihalbe
asked on
Control Array
Hello
in one of form i have frame control and in frame there is two text box. i have created control array for that frame control . so how can i access the text fields on different frame. because right now text boxes have same name on all frames.
Thanks,
shri
in one of form i have frame control and in frame there is two text box. i have created control array for that frame control . so how can i access the text fields on different frame. because right now text boxes have same name on all frames.
Thanks,
shri
U will have Index property
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hello mdougan,
i have two different textbox in one frame. so that in one frame there are two different text boxes. but i want to access the same text box frm different frame then how can i do that.
THanks,
shri
i have two different textbox in one frame. so that in one frame there are two different text boxes. but i want to access the same text box frm different frame then how can i do that.
THanks,
shri
if I Understand U just want to change container
set text1.container = fram1
set text1.container = fram1
I'm not sure what you mean by "you want to access the same textbox from different frame". If a textbox sits on a frame or not on a frame or on a different frame, it doesn't matter in the code. As long as all textboxes and frames and whatever are all in the same Form (window). All of you code is being coded in the Form's code section. So, if you want to refer to text1 or text2 in the code in the form, all you have to do is say:
Text1.Text = "Hello"
Text2.Text = "World"
Now, if by "frame" you actually mean "Form" (window), then you do need to qualify the name of the textbox like this:
(say that this code is inside of Form2)
Form1.Text1.Text = "Hello"
Form1.Text2.Text = "World"
A "Frame" is the name of the panel or container that people use to group related controls. It usually has a square border and a caption at the top. If this is not what you mean by "frame" let us know.
Text1.Text = "Hello"
Text2.Text = "World"
Now, if by "frame" you actually mean "Form" (window), then you do need to qualify the name of the textbox like this:
(say that this code is inside of Form2)
Form1.Text1.Text = "Hello"
Form1.Text2.Text = "World"
A "Frame" is the name of the panel or container that people use to group related controls. It usually has a square border and a caption at the top. If this is not what you mean by "frame" let us know.
ASKER
thanks
shri
shri