473,586 Members | 2,854 Online
Bytes | Software Development & Data Engineering Community
+ 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.activec hildform.textbo x.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 1910
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*****@pandor a.be> schreef in bericht
news:he******** *************@p hobos.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.activec hildform.textbo x.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*****@pandor a.be> schreef in bericht
news:he******** *************@p hobos.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.activec hildform.textbo x.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
1595
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 " & Me.MdiChildren.Length.ToString ch.Show()
0
222
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 write there mdiform.activechildform.textbox.text but that fails because activechildform should not be a member of mdiform. I don't see why. The...
0
1076
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 maximize of the child doesn't take into consideration the parents true area. Any work arounds would be appreciated. Thanks CJ
1
955
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 already open the windows state is maximized. now when I close this 2nd child form the 1st child form also become maximized. Now how can I maintain...
0
874
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 = CType(obj, Form) If frm Is frmCurrent Then bFound = True
1
2706
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 screen too well if the resolution is smaller than 800x600 (why did it have to be my app?) Yes, I know, get a bigger screen - $$. Management is on it...
2
1472
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 Enable_Disable_GU(bool p_status) { textBox1.Enabled = p_status;
6
2267
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 and not responding anymore). So, I shut down VS, turned off my PC, then turned everything back on. Now, my MdiForm Design looks like a blank...
0
1223
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 labels will be covered by the childform. can i bring the childform to front, or is there any way to get the labels covered by the childform? ...
0
7911
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7839
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8338
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7954
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5390
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3864
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2345
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 we have to send another system
1
1448
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1179
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.