Hi guys
I'm sure this is really simple, but passing commands
between forms is a whole new thing to me, what I want to
do is when I load my child form I would like a menu item
on the parent to be enabled so I tried...
--\
Dim objParentForm As New MDIParentForm
objParentform.m enuitem46.enabl ed = True
--/
in the childs loads event, with no success
regards steve 11 1406
Steve, maybe I'm missing something but in your parent form code when you
create the child, why don't you enable the menu item there too. Eg.
Private Sub createChild()
Dim f As New Form
f.MdiParent = Me
f.Show()
MainMenu1.MenuI tems.Item(whate ver).Enabled = True
End Sub
Regards
Hexathioorthoox alate
"Steven Smith" <an*******@disc ussions.microso ft.com> wrote in message
news:04******** *************** *****@phx.gbl.. . Hi guys
I'm sure this is really simple, but passing commands between forms is a whole new thing to me, what I want to do is when I load my child form I would like a menu item on the parent to be enabled so I tried...
--\ Dim objParentForm As New MDIParentForm
objParentform.m enuitem46.enabl ed = True --/
in the childs loads event, with no success
regards steve
Steve, maybe I'm missing something but in your parent form code when you
create the child, why don't you enable the menu item there too. Eg.
Private Sub createChild()
Dim f As New Form
f.MdiParent = Me
f.Show()
MainMenu1.MenuI tems.Item(whate ver).Enabled = True
End Sub
Regards
Hexathioorthoox alate
"Steven Smith" <an*******@disc ussions.microso ft.com> wrote in message
news:04******** *************** *****@phx.gbl.. . Hi guys
I'm sure this is really simple, but passing commands between forms is a whole new thing to me, what I want to do is when I load my child form I would like a menu item on the parent to be enabled so I tried...
--\ Dim objParentForm As New MDIParentForm
objParentform.m enuitem46.enabl ed = True --/
in the childs loads event, with no success
regards steve
Ok that seems like a sound idea but how do I get access
to a list of indexes with their associated menu item names
Ok that seems like a sound idea but how do I get access
to a list of indexes with their associated menu item names
"Steven Smith" <an*******@disc ussions.microso ft.com> schrieb I'm sure this is really simple, but passing commands between forms is a whole new thing to me, what I want to do is when I load my child form I would like a menu item on the parent to be enabled so I tried...
--\ Dim objParentForm As New MDIParentForm
objParentform.m enuitem46.enabl ed = True --/
in the childs loads event, with no success
I'd enable the item in the parent form when you load the child to avoid
accessing the parent from the child.
--
Armin http://www.plig.net/nnq/nquote.html http://www.netmeister.org/news/learn2quote.html
"Steven Smith" <an*******@disc ussions.microso ft.com> schrieb I'm sure this is really simple, but passing commands between forms is a whole new thing to me, what I want to do is when I load my child form I would like a menu item on the parent to be enabled so I tried...
--\ Dim objParentForm As New MDIParentForm
objParentform.m enuitem46.enabl ed = True --/
in the childs loads event, with no success
I'd enable the item in the parent form when you load the child to avoid
accessing the parent from the child.
--
Armin http://www.plig.net/nnq/nquote.html http://www.netmeister.org/news/learn2quote.html
sorry that was a silly question since menu's are arranged
in a heirarichal structure the indexes are obviously
built in the same fashion, so there's no need for me to
access the collection, thanks for your help
sorry that was a silly question since menu's are arranged
in a heirarichal structure the indexes are obviously
built in the same fashion, so there's no need for me to
access the collection, thanks for your help
If this is the same Stephen Smith that was posting a few months ago and
working from a step by step book, you seem to have come a long way. If its
you, keep up the good work.
OHM
Steven Smith wrote: Hi guys
I'm sure this is really simple, but passing commands between forms is a whole new thing to me, what I want to do is when I load my child form I would like a menu item on the parent to be enabled so I tried...
--\ Dim objParentForm As New MDIParentForm
objParentform.m enuitem46.enabl ed = True --/
in the childs loads event, with no success
regards steve This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: ahaideb |
last post by:
I have a table (relation) in my database:
---------------
| parent | child |
---------------
| 1 | 2 |
| 1 | 3 |
| 2 | 4 |
| 2 | 5 |
| 3 | 6 |
|
by: jalkadir |
last post by:
Let's say that I have this class:
class Parent{
private: char* str;
public: const char* getStr(){return str;}
};
And then I create a child class
class Child{
private: std::string str;
public: std::string& getStr(){return str;}
|
by: Tomas Vera |
last post by:
Hello All,
I'm working on a web app that will simulate a Windows app.
One of the items that I've trouble reproducing is the parent/child
interaction that might occur between a windo and popup custom dialog
box (example: right click an item and bring up a Config/Properties
dialog of the selected item).
In a Windows app, I can add a handler in the Parent to respond to the
"OK" event in the child window so that I can update the object's
|
by: Danny Tuppeny |
last post by:
Hi all,
I've been trying to write some classes, so when I have a parent-child
relationship, such as with Folders in my application, I don't have to
remember to add a parent reference, as well as adding to the child
collection, eg:
parent.Children.Add(child);
child.Parent = parent;
|
by: Steven Smith |
last post by:
Hi guys
I'm sure this is really simple, but passing commands
between forms is a whole new thing to me, what I want to
do is when I load my child form I would like a menu item
on the parent to be enabled so I tried...
--\
Dim objParentForm As New MDIParentForm
| |
by: Charles Law |
last post by:
For some reason, when I click the X to close my MDI parent form, the action
appears to be re-directed to one of the MDI child forms, and the parent
remains open. I am then unable to close the application.
What should happen, is that the main MDI form should close, taking the child
forms with it. There is code to loop through the child forms, remove the
controls on each of them, and then close the form, but this code should
execute only...
|
by: msxkim |
last post by:
How to execute functions in the parent class first and then functions
in the child class? For example, I have a parent class with functions
'ONE' and 'TWO' and child class has a function 'THREE'. How should I
declare classes so that all three functions are executed when child
class is called?
Class Parent
public function ONE
'code
end fuction
|
by: Paul |
last post by:
Hello,
I'm coming from a PHP background and am working on a large-scale VB.NET
project. One of the cornerstones of this project is a reusable form
class, to standardize our web forms.
My goal is to have a true hierarchical parent form class with child
form element classes. The programmatic code would be something like
this, ideally (sorry about the lame names, but it's just for demo):
|
by: jewel87 |
last post by:
Hi everyone!
I'm writing some code in C under UNIX, which should give some output like this:
PARENT: pid = 10063
CHILD: my pid = 10064
CHILD: my parent's pid = 10063
CHILD: Sleeping...
PARENT: my child's pid = 10064
PARENT: Waiting for the child to exit...
CHILD: Done sleeping...
PARENT: child is dead.
|
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: 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...
|
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...
|
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: 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: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
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...
| |