473,386 Members | 1,720 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,386 software developers and data experts.

Newby - HELP with midi form / Child forms

I setup a Midi & Child form

I can open the child form and display info from a Text file

I need to enable the user to change info on the child form and when
closed write the text file back to disk....

How do I tell the Main from to detect when the Child form closes???
Nov 21 '05 #1
2 1974
Ok sorted ...

Showdialog
"Simon" <Si***@microsoftforums.com> wrote in message
news:eo**************@TK2MSFTNGP09.phx.gbl...
I setup a Midi & Child form

I can open the child form and display info from a Text file

I need to enable the user to change info on the child form and when
closed write the text file back to disk....

How do I tell the Main from to detect when the Child form closes???

Nov 21 '05 #2
"Simon" <Si***@microsoftforums.com> schrieb:
I setup a Midi & Child form

I can open the child form and display info from a Text file

I need to enable the user to change info on the child form and when
closed write the text file back to disk....

How do I tell the Main from to detect when the Child form closes???


I am curious why you don't implementing the "write to disk" feature in your
MDI child form. The form's 'Closing' and 'Closed' events will be raised
when the form is closed. If you are creating the MDI child form within the
MDI container, you can use 'AddHandler' to add a handler to the MDI child's
'Closed' event. You can add a common handler for all MDI children:

\\\
Dim f As New ChildForm()
f.MdiParent = Me
AddHandler f.Closed, AddressOf Me.ChildForm_Closed
..
..
..
Private Sub ChildForm_Closed( _
ByVal sender As Object, _
ByVal e As EventArgs _
) Handles MyBase.Closed
DirectCast(sender, ChildForm).SaveDocument()
End Sub
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3

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

Similar topics

3
by: Edward Mostrom | last post by:
I have 2 tables that have a relation between them. The parent table also has an expression in a column that sums the values in the child table. Both tables are hooked up to datagrids. ...
4
by: John Tyce | last post by:
The problem that I am now having, involves refreshing controls. I have allot of text boxes, several combo boxes and grids. These controls are showing live data from an Oracle database. I have dates...
10
by: Fred Nelson | last post by:
Hi: I have programmed in VB.NET for about a year and I'm in the process of learing C#. I'm really stuck on this question - and I know it's a "newby" question: In VB.NET I have several...
0
by: Amiram Korach | last post by:
When you create a MDI form, you can attach a main menu to the parent and to the child. When a child form is active, its menu is merged with the parent menu. The problem is: when the forms are...
5
by: Mike Tadd | last post by:
I am developing a Application for a Project at Uni, and I have made a web browser on a form. It works when I have the form as its own window, but when I put it in a MDI it dorsnt work. Does anyone...
2
by: Matt | last post by:
Ok here is my problem: I have a MDI parent form called "Main" that I declare in a public module when I start up my program. This form holds the drop down menu that allows my users to access all...
2
by: feltra | last post by:
Hi, The following is from my friend, who has some technical problem at present in accessing the web... I am writing for him... Kindly request your inputs ASAP, as he has some kind of deadline...
3
by: Adam Right | last post by:
Hi, I am developing an application which has established on MDI Form and there are many MDI Child forms. My problem is starting when i close the mdi child forms. They are not disposed from the...
1
by: daveL | last post by:
how to set the child window to midi child Dave
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.