473,324 Members | 2,417 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,324 software developers and data experts.

send data to parrent form

i have a parrent form, form1
and i child form, form2

when i press a button in form2, tha data of the text1 of form2 must be
places in text1 of form1

something like

form1.text1 = form2.text1 (won't work)
this is an example, i'm planning to do this with the data of listboxes.

i have a book, but they only give an example, when the press button is on
form1

thanks maarten


Nov 21 '05 #1
4 1422
Maarten,

A MDIparent has normally beside a menu, a Toolbar and a text fields nothing
on it.
Where do you want to place that text in your parent do you want it to place
in the children?

And than you can reach them all with that MDIchildren collection what I
showed you already.
Cor
Nov 21 '05 #2
i have a toolbar on my parrent form, with 2 chechedlistboxes (small ones)

whan y check on an other chechedlisbox (from a child form) the same
checkboxes must be cheched on that parrent form.

and my statusbar must contain the text of the child form.

"Cor Ligthert" <no************@planet.nl> wrote in message
news:O#**************@TK2MSFTNGP11.phx.gbl...
Maarten,

A MDIparent has normally beside a menu, a Toolbar and a text fields nothing on it.
Where do you want to place that text in your parent do you want it to place in the children?

And than you can reach them all with that MDIchildren collection what I
showed you already.
Cor

Nov 21 '05 #3
Maarten,

I made a sample for you. To make it as simple as possible did I use the text
from the forms, that is what you maybe call the form tittle left above.

\\\A mdi form
Private Sub Form1_Load(ByVal sender As Object, _
ByVal e As System.EventArgs) Handles MyBase.Load
Dim frm2 As New Form2
Dim frm3 As New Form3
frm2.MdiParent = Me
frm3.MdiParent = Me
frm3.Show()
frm2.Show()
For Each frm As Form In Me.MdiChildren
frm.Text = Now.ToString
Next
End Sub
///
\\\a form with one button
Private Sub Button1_Click(ByVal sender _
As System.Object, ByVal e As System.EventArgs) _
Handles Button1.Click
For Each frm As Form In Me.ParentForm.MdiChildren
frm.Text = Now.ToString
Next
Me.ParentForm.Text = Now.ToString
End Sub
///

I hope this helps?

Cor
Nov 21 '05 #4
thank you verry mutch

i realy appreciate youre help

Kind regards Maarten

"Cor Ligthert" <no************@planet.nl> wrote in message
news:eE**************@TK2MSFTNGP10.phx.gbl...
Maarten,

I made a sample for you. To make it as simple as possible did I use the text from the forms, that is what you maybe call the form tittle left above.

\\\A mdi form
Private Sub Form1_Load(ByVal sender As Object, _
ByVal e As System.EventArgs) Handles MyBase.Load
Dim frm2 As New Form2
Dim frm3 As New Form3
frm2.MdiParent = Me
frm3.MdiParent = Me
frm3.Show()
frm2.Show()
For Each frm As Form In Me.MdiChildren
frm.Text = Now.ToString
Next
End Sub
///
\\\a form with one button
Private Sub Button1_Click(ByVal sender _
As System.Object, ByVal e As System.EventArgs) _
Handles Button1.Click
For Each frm As Form In Me.ParentForm.MdiChildren
frm.Text = Now.ToString
Next
Me.ParentForm.Text = Now.ToString
End Sub
///

I hope this helps?

Cor

Nov 21 '05 #5

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

Similar topics

0
by: Bart Plessers \(artabel\) | last post by:
Hello, I have a small script were a variable called "MyURL" is used MyURL = "/xxx/yyy/zzz/" Now I want to find it's parrent URL. The result should be ParrentURL = "/xxx/yyy/" What is the...
3
by: Kurda Yon | last post by:
Sorry for a very stupid question. Can you tell me what does the following html source does if I press button "Send"? If I read this code by Netscaspe from my local file system and then press...
2
by: Fatih BOY | last post by:
Hi, I want to send a report from a windows application to a web page like 'report.asp' Currently i can send it via post method with a context like local=En&Username=fatih&UserId=45&Firm=none...
2
by: authorking | last post by:
If there's a control in a MDI parrent form , how can I make it accessable in a MDI child form? Is there any sample code?
9
by: eswanson | last post by:
I have a web page I need to post a file plus some other fields to it. How can I do this from a asp.net page. I know I can send individual fields to the other page, but how do I send a file to the...
4
by: Maarten | last post by:
sry for the title of previues message Worksheet(formcount).MdiParent = Form1 i get an erro by form 1 he sais it is a type and con't be used as expresion1 but when i run this code from the MDI...
5
by: trig | last post by:
Please help! I am an ICT teacher at a secondary school and my year 12 (AS Level) group need to create a website where data can be sent from a form to a Microsoft Access database. I am trying...
2
by: Malli mindwave | last post by:
Hi, We are using the yahoowebHostiing service for my company website, In that one screen of the SendComments/FeedBack section is there, I'm basically dot.net develeoper ,but yahoowebhosting not...
1
by: deepaks85 | last post by:
Dear All, I want to send some data through a form with Multiple attachment in an HTML Format. I have tried it but it is not working for me. I am able to send data without attachment but with the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.