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

How to send data to controls which is in MDIParent

Hi,

I am facing problem with, sending data frm mdi child to mdi parent.

I have search Dropdown in MDI form, depend on selection, or enter
string(its like IE URL functionality) and click search button, i am
displaying Details form with all the details. Their i have Delete
button. When we click on delete button, we have to delete the record
from database and at the same time, i have to delete record from the
drop down.

Here i have one private array list, every time depend on search i am
modifying array list and binding it to the drop down.

I have changed drop down Modifiers to public and tried to access from
the child form. Its not accessing the control. Any one will send how
to solove this problem.

Waiting for replaies.....

Regards
Satish
Nov 15 '05 #1
1 1754
Satish,

Forms are objects, and like objects, if you want to modify the contents
of one from another, the other has to have a reference to the object it
wants to modify. In this case, your child form should have a reference to
the parent MDI form. To do this, you might want to pass a reference to the
parent form in the constructor of the child, which the child will keep for
when it wants to call the parent.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Satish" <ds*********@hotmail.com> wrote in message
news:14**************************@posting.google.c om...
Hi,

I am facing problem with, sending data frm mdi child to mdi parent.

I have search Dropdown in MDI form, depend on selection, or enter
string(its like IE URL functionality) and click search button, i am
displaying Details form with all the details. Their i have Delete
button. When we click on delete button, we have to delete the record
from database and at the same time, i have to delete record from the
drop down.

Here i have one private array list, every time depend on search i am
modifying array list and binding it to the drop down.

I have changed drop down Modifiers to public and tried to access from
the child form. Its not accessing the control. Any one will send how
to solove this problem.

Waiting for replaies.....

Regards
Satish

Nov 15 '05 #2

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

Similar topics

0
by: Duncan | last post by:
Dear friends, I have a MDIform in vb.net with some images and buttons on it. This works fine unless I open a MDIChild. The child is being displayed between the images and buttons and the parent...
2
by: Terrance | last post by:
I'm hoping that there's someone out here that can help me with a coding problem. Here is the scenerio: I have a MdiParent Form on this MdiParent form there is a listview control and several text...
2
by: Terrance | last post by:
Good Day, I have a programming problem and need some help/advice. I have a MdiParent Form that has a tool bar with icons on it. I have a child form that needs set the toolbar enabled property to...
1
by: Lucas Graf | last post by:
This sounds so easy to me and feel like an idiot that I can't figure it out, but....how can I have a MDI child access it's parents control(s)?? Seems like it should be as easy as making the...
2
by: SpotNet | last post by:
Hello NewsGroup, I have a MDIParent form with a docked left treeview control, a splitter control and a generic docked control on the right. Kind of looks like Windows Explorer, though it's...
6
by: Rob | last post by:
Hello, I can easily send data types from any MDI parent to an MDI Child window using something like MDIChild( i ).ChildSubroutine( i2 ), which would call the Public subroutine ChildSubroutine in...
1
by: Anil Gupte | last post by:
I have a question about using Tab Controls. I currently have an application with three forms. One, the MDI Parent (FormContainer) is empty, and on load or when a menu item is clicked it shows the...
1
by: mabond | last post by:
Hi I've noticed a couple of postings on this topic. I'm either not uderstanding them or I'm missing something. My app uses an MDIParent form (frmCAD). A menu item on frmCAD shows a child form...
6
by: Wesley Peace | last post by:
I hate to cross post, but I've gotten no answer yet on a problem I'm having with visual studio 2008. I've created a series of forms with controls to access a Access database tables. The...
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: 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...
0
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...
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...
0
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...

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.