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

How to get handel of the active model form?

I have a MDI parent form that opens multiple child forms
and some of these child forms may open a model form.

My question, if I have a model form currently open on top
of all other forms, how do I get the handel of it? I tried
me.ActiveForm from the MDI parent form, but it doesn't
work for me.

Thanks.
Nov 20 '05 #1
3 2724
* "feng" <an*******@discussions.microsoft.com> scripsit:
I have a MDI parent form that opens multiple child forms
and some of these child forms may open a model form.

My question, if I have a model form currently open on top
of all other forms, how do I get the handel of it? I tried
me.ActiveForm from the MDI parent form, but it doesn't
work for me.


'Me.ActiveMdiChild.Handle'.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #2
This modol form is not a MDI child and that is my problem.
This is just a modol form opened by one of the MDI child.

Any ideas?

Thank you so much for your help!

-----Original Message-----
* "feng" <an*******@discussions.microsoft.com> scripsit:
I have a MDI parent form that opens multiple child forms and some of these child forms may open a model form.

My question, if I have a model form currently open on top of all other forms, how do I get the handel of it? I tried me.ActiveForm from the MDI parent form, but it doesn't
work for me.


'Me.ActiveMdiChild.Handle'.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
.

Nov 20 '05 #3
* "feng" <an*******@discussions.microsoft.com> scripsit:
This modol form is not a MDI child and that is my problem.
This is just a modol form opened by one of the MDI child.


\\\
MsgBox(Form.ActiveForm.Handle.ToString())
///

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #4

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

Similar topics

0
by: Philippe Poulard | last post by:
People familiar with DTD, Relax NG, W3C XML Schema, Schematron, and that are aware of more recent works such as DSDL should recognize all of them in the Active Schema Language. Anyway, ASL...
8
by: vizziee | last post by:
Hi all, I need some good primer books on Handel-C. Plz. send-in the titles. Thanx in advance.
6
by: Robert W. | last post by:
I'm building my first major C# program and am try to use best practices everywhere. So I've implemented the "Document/View Model" whereby: - There's a Windows Form, which we'll call "formView" -...
3
by: Brian Henry | last post by:
does anyone know the user32.dll function or how i can do this? I want to set the caption of a window based on the handel i specify... i already have the functions to get the handel of the window...
1
by: Andrew | last post by:
Hey all, Working on revamping our Intranet here and making use of the LDPA, Active Directory, Directory Services, etc. that .Net provides. I am still fairly new on this subject, so the problem...
2
by: Brian Henry | last post by:
If I have the handel of a application window.. like the handel for the system tray "Shell_TrayWnd" how would i be able to interface to that handel? so i could add events or properties? Thanks!
3
by: VMI | last post by:
I know this may not be the best NG for this, but I feel you guys know more about this than any of the other NGs. I need to build several simple reports (over 50 of them and they get their data...
18
by: Arthur | last post by:
Hi All, I would like to get the name of the user given their networkID, is this something Active Directory would be useful for?(For intranet users) If so, can you please point me to some sample...
12
by: Doug | last post by:
Hi, I learned a little about the model view presenter pattern at a conference this last week and am experimenting with it. It's working pretty well but I have a question. I am trying to use...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
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...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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.