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 1 1772
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.co m
"Satish" <ds*********@ho tmail.com> wrote in message
news:14******** *************** ***@posting.goo gle.com... 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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 mdiform that is
MDIParent
MDIChild
MDIParent Controls
I want the MDIChild to appear on top of everthing, that is
|
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 controls. This MdiParent form
has a menu bar that gives the user the ability to open child forms. My
problem is when the child form(s) are opend and if the user moves the child
form over the listview contol or text controls the listview and text...
|
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 FALSE. Currently, I have the
following syntax in my main module when running the application:
Public Sub Main()
Dim frmSplash As SplashScreen
Dim frmParent As ParentForm
|
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 controls on the parent public,
so i created a new project real quick w/2 forms. One is the MDIParent
container and then one child form.
On the MDIParent i put a textbox (textbox1) and set it to public.
From the child code I just try to do a...
|
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 functionality is quite different. I have a
function where an MDIChild is activated, well attempted to do so. When I
call the MDIChild form, I get the form caption (on the MDIParent) of the
MDIChild and its' control menus but the client area still has...
| |
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 my Child Form and
send the parameter integer i2. However I cannot figure out how to call a
Public subroutine contained in the MDIParent from the MDIChild.
Please help RS, TIA
|
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 first form:
Private Sub mnu2Main_Click
frmMain.Show()
frmSInfo.Hide()
End Sub
or
|
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 (frmHistoricalCall). It also
another menu item on frmCAD to "enabled = false", to prevent other forms
being opened when frmHistoricalCall is in use. That menu item has it's
modifier property set at "public".
|
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 connection string works fine and the tables are added to the
project without a problem.
When I create the tables they appear to bind and I am able to preview the
data in the database in design mode; however, at runtime no data is
displayed and the...
|
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...
|
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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 most users, this new feature is actually very convenient. If you want to control the update process,...
|
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...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |