Hi,
I have a parent(containe r) 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 6 1942
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******@discu ssions.microsof t.com> wrote in message
news:83******** *************** ***********@mic rosoft.com... Hi,
I have a parent(containe r) 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
I used form.show( )
I cannot use form.showdialog ue, 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******@discu ssions.microsof t.com> wrote in message news:83******** *************** ***********@mic rosoft.com... Hi,
I have a parent(containe r) 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
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.EventArg s) Handles MenuItem9.Click
Dim fp As New frmPredator
fp.Show()
fp.TopMost = True
End Sub
Ged Mead
"Jonathan" <Jo******@discu ssions.microsof t.com> wrote in message
news:83******** *************** ***********@mic rosoft.com... Hi,
I have a parent(containe r) 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
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******@discu ssions.microsof t.com> wrote in message
news:83******** *************** ***********@mic rosoft.com... Hi,
I have a parent(containe r) 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
On Wed, 6 Oct 2004 15:53:04 -0700, Jonathan wrote: I cannot use form.showdialog ue, 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_lunch meat_[DOT]net
To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.
Chris,
This is about MDI and in my opinion is the answer already given by Ged
Medhead
Cor This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 know
|
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), the second project
holds an intermediate class level (subclassed from the base class
stuff), and a third class level that holds the end forms. I'm trying
to add a form called "AddCustomer" to the highest level project. The
problem is, I...
|
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 "
|
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...
|
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"
| |
by: Rob |
last post by:
Is there a way to keep a form on top of everything - even other apps ?
|
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...
|
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.
|
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
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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,...
| |
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...
|
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...
|
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,...
|
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();...
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |