473,804 Members | 2,127 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1439
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 chechedlistboxe s (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#******** ******@TK2MSFTN GP11.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(ByVa l sender As Object, _
ByVal e As System.EventArg s) 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(B yVal sender _
As System.Object, ByVal e As System.EventArg s) _
Handles Button1.Click
For Each frm As Form In Me.ParentForm.M diChildren
frm.Text = Now.ToString
Next
Me.ParentForm.T ext = 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******** ******@TK2MSFTN GP10.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(ByVa l sender As Object, _
ByVal e As System.EventArg s) 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(B yVal sender _
As System.Object, ByVal e As System.EventArg s) _
Handles Button1.Click
For Each frm As Form In Me.ParentForm.M diChildren
frm.Text = Now.ToString
Next
Me.ParentForm.T ext = 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
1340
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 easiest way to achieve this?
3
7219
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 "Send", I see in my browser directory where the considered html source is located. If I publish the given html source, open published page and again press "Send" nothing changes... What I want to do, is to know what choice did people who were visiting...
2
20753
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 But the problem occures when i want to send a data with & sign (i.e: Firm=F&B). I try to solve this problem with using boundary, but i failed. Any idea!?
2
1543
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
3169
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 other page, or is there something else like a stream which will be like a file. I am attempting to get a way from writing out a file and then having to give the page that I am posting to the file name. Instead I would like to just from asp.net...
4
1049
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 form and i type Worksheet(formcount).MdiParent = Me
5
6087
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 to do this in my own time and then hopefully teach them how to do it. I have installed IIS on my machine and have followed a few web
2
5637
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 support .asp,.aspx files, it supports PHP files, I'm searching in JavaScript ,but not found any matter, I'don't Know PHP.I'm having lot of pressure of higer officials.Please help me on this.
1
3210
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 code for attachment, I am not able to send anything. I get blank email. Can you please help me on this? Here is the html form:
0
9712
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10595
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10343
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10089
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9171
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6862
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5673
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3831
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3001
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.