473,778 Members | 1,901 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Windows Form Topmost...

I have an MDI form that has 4 child forms that are locked on top of any
other child form in the MDI. I want to unlock these 4 forms so they are
not always on top of all the other forms in the MDI. When I set

ChildForm1.TopM ost = false;

It does nothing. Is there another another property I should be looking
at?

Thanks!

Jan 18 '07 #1
4 4828
Hi,

How did you "lock" child forms?

Normally, you would just call the Activate method on the child Form that you
want displayed (or ActivateMdiChil d on the MDI parent).

--
Dave Sexton
http://davesexton.com/blog

<Ma*********@gm ail.comwrote in message
news:11******** *************@v 45g2000cwv.goog legroups.com...
>I have an MDI form that has 4 child forms that are locked on top of any
other child form in the MDI. I want to unlock these 4 forms so they are
not always on top of all the other forms in the MDI. When I set

ChildForm1.TopM ost = false;

It does nothing. Is there another another property I should be looking
at?

Thanks!

Jan 19 '07 #2
Thats a good question. I did not "lock" them. I am supporting someone
else's program...

I am trying to determine what is forcing these 4 windows to be on top
no matter what I do. I thought if I set the TopMost value to false(it
was previously set to true) it would take care of the problem but it
didn't. So I am trying to find out if there is another property of the
Forms that can be adjusted. Is there another way to force the forms to
be on top?

Thanks,

Mandragon

Dave Sexton wrote:
Hi,

How did you "lock" child forms?

Normally, you would just call the Activate method on the child Form that you
want displayed (or ActivateMdiChil d on the MDI parent).

--
Dave Sexton
http://davesexton.com/blog

<Ma*********@gm ail.comwrote in message
news:11******** *************@v 45g2000cwv.goog legroups.com...
I have an MDI form that has 4 child forms that are locked on top of any
other child form in the MDI. I want to unlock these 4 forms so they are
not always on top of all the other forms in the MDI. When I set

ChildForm1.TopM ost = false;

It does nothing. Is there another another property I should be looking
at?

Thanks!
Jan 19 '07 #3
Hi,

Not that I'm aware of. Have you tried calling the Activate method on a
visible, MDI child form that isn't one of the four top-most to see if it
shows up?

--
Dave Sexton
http://davesexton.com/blog

<Ma*********@gm ail.comwrote in message
news:11******** *************@3 8g2000cwa.googl egroups.com...
Thats a good question. I did not "lock" them. I am supporting someone
else's program...

I am trying to determine what is forcing these 4 windows to be on top
no matter what I do. I thought if I set the TopMost value to false(it
was previously set to true) it would take care of the problem but it
didn't. So I am trying to find out if there is another property of the
Forms that can be adjusted. Is there another way to force the forms to
be on top?

Thanks,

Mandragon

Dave Sexton wrote:
>Hi,

How did you "lock" child forms?

Normally, you would just call the Activate method on the child Form that
you
want displayed (or ActivateMdiChil d on the MDI parent).

--
Dave Sexton
http://davesexton.com/blog

<Ma*********@g mail.comwrote in message
news:11******* **************@ v45g2000cwv.goo glegroups.com.. .
>I have an MDI form that has 4 child forms that are locked on top of any
other child form in the MDI. I want to unlock these 4 forms so they are
not always on top of all the other forms in the MDI. When I set

ChildForm1.TopM ost = false;

It does nothing. Is there another another property I should be looking
at?

Thanks!

Jan 19 '07 #4
I just found out that he is setting the parent with a function in a
..dll. When I set the parent with

form.MdiParent = this;

It works fine. Thanks to anyone who looked at this.

Mandragon
Dave Sexton wrote:
Hi,

Not that I'm aware of. Have you tried calling the Activate method on a
visible, MDI child form that isn't one of the four top-most to see if it
shows up?

--
Dave Sexton
http://davesexton.com/blog

<Ma*********@gm ail.comwrote in message
news:11******** *************@3 8g2000cwa.googl egroups.com...
Thats a good question. I did not "lock" them. I am supporting someone
else's program...

I am trying to determine what is forcing these 4 windows to be on top
no matter what I do. I thought if I set the TopMost value to false(it
was previously set to true) it would take care of the problem but it
didn't. So I am trying to find out if there is another property of the
Forms that can be adjusted. Is there another way to force the forms to
be on top?

Thanks,

Mandragon

Dave Sexton wrote:
Hi,

How did you "lock" child forms?

Normally, you would just call the Activate method on the child Form that
you
want displayed (or ActivateMdiChil d on the MDI parent).

--
Dave Sexton
http://davesexton.com/blog

<Ma*********@gm ail.comwrote in message
news:11******** *************@v 45g2000cwv.goog legroups.com...
I have an MDI form that has 4 child forms that are locked on top of any
other child form in the MDI. I want to unlock these 4 forms so they are
not always on top of all the other forms in the MDI. When I set

ChildForm1.TopM ost = false;

It does nothing. Is there another another property I should be looking
at?

Thanks!
Jan 19 '07 #5

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

Similar topics

6
2577
by: Ayende Rahien | last post by:
Excetremely annoying problem, I've an application with a long startup time. So I created another form with my logo in it to as a splash screen. The splash screen is run from another thread and is communicated solely through static method and Invoke()'s However, when I close my second form, the first one (main window) is hiding under all the windows on the desktop. If I don't close the splash screen, then everything is fine. I tried...
5
1730
by: Tamir Khason | last post by:
Is it possible managed detect that one form inaplicationcontext is above other ? -- Tamir Khason You want dot.NET? Just ask: "Please, www.dotnet.us "
3
3086
by: Robert W. | last post by:
I have a separate thread that handles data transfer operations (with a mobile device). I've set things up so that a small notification form is displayed in the lower right corner of the window. This all works fine. But what I can't figure out how to do is to get it to display on top of my main form, if the main form is maximized. I've tried all of the following: statusForm = new frmNotify(); statusForm.Show(); // Display...
6
1942
by: Jonathan | last post by:
Hi, I have a parent(container) form which opens another form, and that one opens another etc.., each form is open with Form.MdiParent = Me.MdiParent. (apart from the first one which is just "= Me") However, there is one form which is smaller than others, and i have set it to Topmost = TRUE. but the problem is when i click those forms at the background, the smaller
1
1191
by: genojoe | last post by:
I have a parent form and a child form. Both contain a textbox. Child also has a button. I want to open child with the following: Dim mfrmFind As New frmFind Private Sub OpenForm AddHandler mfrmFind.Closing, AddressOf frmFindClosing mfrmFind.TopMost = True mfrmFind.Show()
6
8531
by: Marcus | last post by:
How do I do it in c#? My current solution works sometimes, but sometimes the form comes behind the fullscreen application. I am using the following in the forms constructor this.WindowState = FormWindowState.Normal; this.Focus(); this.BringToFront();
2
2646
by: Mike | last post by:
Hi, I'm having a problem with modal forms on windows. I've written a very short test program, with a main window and a form called from the main window. The form is set to modal with form.setModal(1) before calling form.show(). All works as expected on Linux. The form is modal, not allowing the main window to received the focus. If I call the form from within itself, the topmost form is modal, and not of the previous forms will...
1
2046
by: Gary Brown | last post by:
Hi, I have a dialog box that must behave as MessageBox does with regard to the TopMost property. It must be TopMost if and only if the calling form is TopMost. A static method creates the dialog box. Is there a way of determining if the application is TopMost from a static method? There are some inelegant workarounds but I would prefer to do whatever MessageBox does.
6
2238
by: Steve | last post by:
Hi All I have an on-screen keyboard within a POS program I have written in VB.net 2005, for touch screen computers I have it set to 'always on top' so the user can move the cursor to different text boxes and type using the on-screen keyboard The keyboard launches via the mouseclick event for any text box If another form is launched, with the onscreen keyboard still visible, the
0
9470
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,...
0
10127
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 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...
1
7475
isladogs
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...
0
6723
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();...
0
5370
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...
0
5500
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4033
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
2
3627
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2865
bsmnconsultancy
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...

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.