473,468 Members | 1,449 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 1879
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: 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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.