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

cannot keep form topmost

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
one will go disappear into background. How come? I thought it meant to stay
ontop, no?

Please help as I want it to stay ontop forever until i want to close it.
many thanks,
jon
Nov 21 '05 #1
6 1924
when you call the child forms, are you using form.show or form.showdialog ?
showdialog makes the form modal, that will keep it on top, but limit your
functionality a bit...

"Jonathan" <Jo******@discussions.microsoft.com> wrote in message
news:83**********************************@microsof t.com...
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
one will go disappear into background. How come? I thought it meant to stay ontop, no?

Please help as I want it to stay ontop forever until i want to close it.
many thanks,
jon

Nov 21 '05 #2
I used form.show( )
I cannot use form.showdialogue, it gives me compile error.
"James" wrote:
when you call the child forms, are you using form.show or form.showdialog ?
showdialog makes the form modal, that will keep it on top, but limit your
functionality a bit...

"Jonathan" <Jo******@discussions.microsoft.com> wrote in message
news:83**********************************@microsof t.com...
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
one will go disappear into background. How come? I thought it meant to

stay
ontop, no?

Please help as I want it to stay ontop forever until i want to close it.
many thanks,
jon


Nov 21 '05 #3
I did some quick experimentation with this and found that if you set the
small form's TopMost property
to True at *Design Time* then you get the problem you describe (that is, it
doesn't stay on top).

However, I tried the following code block at runtime and it seemed to do the
trick.
See if it works for you:

Code:
Private Sub MenuItem9_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MenuItem9.Click
Dim fp As New frmPredator
fp.Show()
fp.TopMost = True
End Sub
Ged Mead

"Jonathan" <Jo******@discussions.microsoft.com> wrote in message
news:83**********************************@microsof t.com...
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
one will go disappear into background. How come? I thought it meant to stay ontop, no?

Please help as I want it to stay ontop forever until i want to close it.
many thanks,
jon

Nov 21 '05 #4
I meant to mention - It seems that if you have more than one form with its
TopMost property
set to True then none of the forms remain as TopMost. This is the case
whether you set the
TopMost properties of the forms either at design time or at run time.

Ged Mead
"Jonathan" <Jo******@discussions.microsoft.com> wrote in message
news:83**********************************@microsof t.com...
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
one will go disappear into background. How come? I thought it meant to stay ontop, no?

Please help as I want it to stay ontop forever until i want to close it.
many thanks,
jon

Nov 21 '05 #5
On Wed, 6 Oct 2004 15:53:04 -0700, Jonathan wrote:
I cannot use form.showdialogue, it gives me compile error.


Did you spell it that way? 'showdialogue' ? It must be form.showdialog.
What compiler error are you getting? That should work.
--
Chris

dunawayc[AT]sbcglobal_lunchmeat_[DOT]net

To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.
Nov 21 '05 #6
Chris,

This is about MDI and in my opinion is the answer already given by Ged
Medhead

Cor
Nov 21 '05 #7

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

Similar topics

6
by: Mario Reiley | last post by:
Hi, Group I am C# and VB.6 programmer but in this moments I have the followin question: How Can I keep my application on the top of all applications on my Windows desktop. Please let me...
2
by: Steven C | last post by:
Hello: I have a C# app that I'm trying to build. I have three projects in the solution, the first of which stores the base object definitions (base form, base textbox, base commandbutton, etc),...
5
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
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. ...
2
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...
4
by: Rob | last post by:
Is there a way to keep a form on top of everything - even other apps ?
5
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...
1
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...
6
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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...
0
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...
0
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...
0
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,...
0
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...

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.