473,398 Members | 2,427 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

mdiform childform and other form

I have a program with a mdiform and same childforms (with a textbox) that i
open.
All works fine.
In the childform i open another form (for finding and replacing).
In a sub in that form i try to write there
mdiform.activechildform.textbox.text but that fails because activechildform
should not be a member of mdiform.
I don't see why.
The goal is to reach the textbox of the active childform.
For those who has the book form Evangelos Petroutsos : Mastering Visual
Basic.net, look for the project MDIPad (H19).


Nov 20 '05 #1
2 1878
Sorry for this message.
I found the solution of my problem
I forgot to take a public shared varaible in the mdi form for the child
"andreas" <an*****@pandora.be> schreef in bericht
news:he*********************@phobos.telenet-ops.be...
I have a program with a mdiform and same childforms (with a textbox) that i open.
All works fine.
In the childform i open another form (for finding and replacing).
In a sub in that form i try to write there
mdiform.activechildform.textbox.text but that fails because activechildform should not be a member of mdiform.
I don't see why.
The goal is to reach the textbox of the active childform.
For those who has the book form Evangelos Petroutsos : Mastering Visual
Basic.net, look for the project MDIPad (H19).


Nov 20 '05 #2
Sorry for this message.
I found the solution of my problem
I forgot to take a public shared varaible in the mdi form for the child
"andreas" <an*****@pandora.be> schreef in bericht
news:he*********************@phobos.telenet-ops.be...
I have a program with a mdiform and same childforms (with a textbox) that i open.
All works fine.
In the childform i open another form (for finding and replacing).
In a sub in that form i try to write there
mdiform.activechildform.textbox.text but that fails because activechildform should not be a member of mdiform.
I don't see why.
The goal is to reach the textbox of the active childform.
For those who has the book form Evangelos Petroutsos : Mastering Visual
Basic.net, look for the project MDIPad (H19).


Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: andreas | last post by:
I can open several childforms with the following sub in de mdi form after clicking a button Private Sub NewWindow() Dim ch As New ChildForm() ch.MdiParent = Me ch.Text = "Textwindow nr " &...
0
by: andreas | last post by:
I have a program with a mdiform and same childforms (with a textbox) that i open. All works fine. In the childform i open another form (for finding and replacing). In a sub in that form i try to...
0
by: CJ | last post by:
I have a mdiform that has a toolbar and a status bar on it. When I load a child form both controls appear over the child thus obscuring the top and bottom of the child form. It appears that the...
1
by: jaYPee | last post by:
I have an MDIForm and two child form. My problem is when I open the first child form the windows state is normal and then open the 2nd child form from this child form. When the 2nd child form is...
0
by: Supra | last post by:
how do i put mdiform in block? Public Shared Sub Show(ByVal frm As Form) Dim obj As Object Dim bFound As Boolean = False For Each obj In m_colFormsCollection Dim frmCurrent As Form frmCurrent...
1
by: Rich | last post by:
Hello, I have a child form in a parent MDI form. The childform is being shrunk and cannot be resized when screen resolution is 800x600. The end user who uses my app cannot see stuff on the...
2
by: ksharma | last post by:
Hi, I m new in c#, windows application. I have created a MDIForm, ChildForms named (Form1, Form2, Form3, ..........). Each child form contains the function : public void...
6
by: =?Utf-8?B?anAybXNmdA==?= | last post by:
What would cause VS2005 Pro to lose all of my MdiForm Design information? I've been working on one of the Child Forms and having problems with the Child Form's threads not completing (locking up...
0
by: thesti | last post by:
hello, i have some labels in my MDIParent form, they are greeting labels for the logged in user. when i open a childform, the labels cover the opened childform, while actually i expect that the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.