By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,678 Members | 1,146 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,678 IT Pros & Developers. It's quick & easy.

VB.NET - Placing text in a textbox on a child form from another child form

P: 28
On an MDI application in VB.NET, I have one child form with a multiline text box.

I am opening another child form, from the first form, as a "help" to create a SQL statement on the first form, by double-clickiing on field names in a listview.

In VB6 it was possible to send the field name clicked on to the textbox on the first form, but I can't get that to work in VB.NET.

Has anyone any ideas, please?
Jun 27 '07 #1
Share this Question
Share on Google+
2 Replies


vinci
P: 62
On an MDI application in VB.NET, I have one child form with a multiline text box.

I am opening another child form, from the first form, as a "help" to create a SQL statement on the first form, by double-clickiing on field names in a listview.

In VB6 it was possible to send the field name clicked on to the textbox on the first form, but I can't get that to work in VB.NET.

Has anyone any ideas, please?
i really didnt understood ur question but i think u want to place the text value from the mdichild1 to another mdichild2...

i think u need to create an instance of the mdichild2 in mdichild1 in order to access any control in mdichild2 like the textbox...

i dont know if this is what ur looking for but i hope this helps

enjoy coding,

vinci
Jun 29 '07 #2

P: 28
i really didnt understood ur question but i think u want to place the text value from the mdichild1 to another mdichild2...

i think u need to create an instance of the mdichild2 in mdichild1 in order to access any control in mdichild2 like the textbox...

i dont know if this is what ur looking for but i hope this helps

enjoy coding,

vinci
Thanks Vinci. I have tried "frmQueries = new frm Query" but although the textbox seems to hold the value inserted, it isn't displayed. I've tried "Application.DoEvents" but that doesn't help either.
Jun 29 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.