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

Re-parenting an application's main form works, but menus don't function.

I've got an application whose main form I rehost (via SetParent) in a
parent application's main form (on a panel). This works fine and all
the controls work except the menustrip/toolstrip menus don't show their
dropdown lists when they are clicked.

Does anyone know why this is happening?
Thanks.

Jan 17 '07 #1
2 1699
I think you have to call SetParent on the menu as well, and probably
any other control that uses (from memory) CreateWindow[Ex]

ti*****@gmail.com wrote:
I've got an application whose main form I rehost (via SetParent) in a
parent application's main form (on a panel). This works fine and all
the controls work except the menustrip/toolstrip menus don't show their
dropdown lists when they are clicked.

Does anyone know why this is happening?
Thanks.
Jan 17 '07 #2
I think you are on the right track, I can enumerate the child windows
in the re-parented app, but I don't know which windows to re-parent ...
bad things seem to happen when I do a SetParent on anything other than
the form itself (the controls never show).
On Jan 17, 5:25 pm, "DeveloperX" <nntp...@operamail.comwrote:
I think you have to call SetParent on the menu as well, and probably
any other control that uses (from memory) CreateWindow[Ex]

timn...@gmail.com wrote:
I've got an application whose main form I rehost (via SetParent) in a
parent application's main form (on a panel). This works fine and all
the controls work except the menustrip/toolstrip menus don't show their
dropdown lists when they are clicked.
Does anyone know why this is happening?
Thanks.
Jan 18 '07 #3

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

Similar topics

1
by: George Fernett | last post by:
Hi all, I have a page that lists codes and when a code is clicked on, I wanted to show the full text description for the code. Response.Write("<td nowrap>" & "<a...
2
by: TDIOwa | last post by:
I have a form (frmAppointment) with a subform on it (frmAppointmentsub1). I have placed a command button on the main form which calls the function below from the module. The purpose of this...
2
by: Judy | last post by:
I have a custom menu that is only used for one form. Is there a way to put the functions for the menu items in the form's module rather than a standard module? Thanks! Judy
5
by: Lyn | last post by:
Hi, I hope someone can help. I have a main form which mostly fills the Access window. In the bottom half of this form I have a tab control to display various types of data related to the main...
17
by: Neil Ginsberg | last post by:
OK, this is a stupid thing, but I can't seem to get this to work. I have a form with a subform (in continuous form view). A combo box on the main form has code in the AfterUpdate event which adds a...
7
by: Terry | last post by:
I have a Mainform with a Statusbar. When opening another form or doing some processing I want to display info in the Statusbar of the Mainform. I have read a lot of articles on this & have come up...
3
by: lavu | last post by:
How would I pass parameters from the main form to my subform at load time. I use Activator.CreateInstance to create the subform. Thanks in advance. Ps: I tried googling for this but found no...
1
by: LaughOutLoud | last post by:
Hi. I wonder is it possible to grab everything in a form by calling one javascript function and turns it into array or object? E.g. <form id="form1" name="form1" method="post" action="">...
2
by: starke1120 | last post by:
I have a main form with a text box on it "txtSearch" onlost focus it updates another text box "txtSearchString" to include a quote and asterik before and after the value of txtSeach. I then...
1
by: paquer | last post by:
I have a form with a field who's Visible property by default is set to false. If another field meets a certain criteria, then the visible property is set to true. This form shows multiple...
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...
1
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: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.