473,779 Members | 1,884 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Form always over parent w/o Topmost

How do I make a form always stay over a parent form, but
NOT have the form appear over forms outside of the
application.

For example, the Find window in VS.NET acts how I want.

Thanks,
Lance

Nov 20 '05 #1
5 3138
Cor
Hi Lance,
Search for Mdi in/on MSDN
I think you find a lot
Cor
Nov 20 '05 #2
Hi Lance,

Firstyou need to set the parent form's IsMDIcontainer to True, and then set
the child form's TopMost to True and ShowInTaskBar to False. When show
child form, use following code:

Dim frm As New ChildForm

frm.MdiParent = Me

frm.Show()

Does this answer you question?

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 20 '05 #3
"Lance" <zi***@hotmail. com> schrieb
How do I make a form always stay over a parent form, but
NOT have the form appear over forms outside of the
application.

For example, the Find window in VS.NET acts how I want.


Dim f as new form2
f.owner = me
f.show
--
Armin

Nov 20 '05 #4
Hey, I can handle that! Thanks.
-----Original Message-----
"Lance" <zi***@hotmail. com> schrieb
How do I make a form always stay over a parent form, but NOT have the form appear over forms outside of the
application.

For example, the Find window in VS.NET acts how I want.


Dim f as new form2
f.owner = me
f.show
--
Armin

.

Nov 20 '05 #5
Armin's response is what I was looking for, but your info
will come in handy for something I'll be doing later on.

Thanks!

-----Original Message-----
Hi Lance,

Firstyou need to set the parent form's IsMDIcontainer to True, and then setthe child form's TopMost to True and ShowInTaskBar to False. When showchild form, use following code:

Dim frm As New ChildForm

frm.MdiParent = Me

frm.Show()

Does this answer you question?

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers norights.)

.

Nov 20 '05 #6

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

Similar topics

2
1277
by: Joseph | last post by:
What am I missing form this method that will prevent access to the parent form when the frmB is active? If you run this method, you can still access the parent form and its functionality. Sub WhatEver Dim frmB As New Form '-- The New Form to display frmB.TopMost = True frmB.Owner = CType(Parent, Form) frmB.Show() End Sub
2
2494
by: Sharon | last post by:
I have a Form class that can be open by parent Form or by .NET Remoting command. When the parent Form opens the Form - All fine ! But when the .NET Remoting command is trying to Show the Form, the Form stuck !! I tried to change the Remoting delegate invocation to asynchronous and to synchronous, yet both cause the same Form Show() to stuck. When I mean stuck, I mean the the Form is shown but non of it controls are shown, only gray window...
2
3840
by: Max | last post by:
Hello, My VB.NET application displays a Windows form in a panel on my main form. While my application has the focus, I want the form in the panel to have the "topmost" position, even if it is not the active form. Everything works as expected, but if the user selects another application by pressing a tab in the taskbar, then my "topmost" form still occupies the "topmost"
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()
3
2904
by: Don | last post by:
I've got a form which (in a roundabout manner) calls a second form into existence which has its TopMost property set (the first form is not the parent of this second form because of the roundabout manner in which the second form is created and displayed). The user can then still work on the first form while the second form floats around above it. If the first form displays a messagebox via the MsgBox method, the messagebox appears...
0
316
by: Miro | last post by:
Ok, im fiddling with mdi forms and I cant quite figure somethings out. Ive googled and none of my books shows this example either. Im wondering if it is even possible. If you have a google link - ill teach myself, i just need to know what to search for for this case. 1. Lets say I create an MDI parent form and in the bottom corner I put Picturebox. and i docked it to the bottom right of the form.
4
4829
by: Mandragon03 | last post by:
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.TopMost = false; It does nothing. Is there another another property I should be looking at? Thanks!
5
6804
by: Shane | last post by:
How do you keep a form on top of an application only. I know that I can use "TopMost" to keep a form on top of the other forms, but that solution is Windows scope instead of only my application scope. I have a floating "Totals" screen (among others) so that a user can see which checks will print, total receipts, and other items. They can resize the form, and move it anywhere on the screen, so creating a dock area on the screen is not...
0
9471
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
10302
Oralloy
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...
1
10071
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,...
0
9925
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8958
agi2029
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...
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
5372
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
5501
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3631
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.