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

One form above another

Is it possible managed detect that one form inaplicationcontext is above
other ?

--
Tamir Khason
You want dot.NET? Just ask:
"Please, www.dotnet.us "
Nov 16 '05 #1
5 1716
Tamir,

You might get what you want by setting the TopMost property on the form
to true.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Tamir Khason" <ta**********@tcon-NOSPAM.co.il> wrote in message
news:OD**************@TK2MSFTNGP10.phx.gbl...
Is it possible managed detect that one form inaplicationcontext is above
other ?

--
Tamir Khason
You want dot.NET? Just ask:
"Please, www.dotnet.us "

Nov 16 '05 #2
Thank you, Nicholas for response, but, I do not need TopMost form, I need
always put one form above another - it have not be topmost. Like it occures
in showDialog method...

TNX

--
Tamir Khason
You want dot.NET? Just ask:
"Please, www.dotnet.us "

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:es**************@TK2MSFTNGP10.phx.gbl...
Tamir,

You might get what you want by setting the TopMost property on the form
to true.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Tamir Khason" <ta**********@tcon-NOSPAM.co.il> wrote in message
news:OD**************@TK2MSFTNGP10.phx.gbl...
Is it possible managed detect that one form inaplicationcontext is above
other ?

--
Tamir Khason
You want dot.NET? Just ask:
"Please, www.dotnet.us "


Nov 16 '05 #3
Tamir,

So TopMost would be too much then... If this is the case then you will
have to determine when the form you want to be under the other gets the
focus, and when it does, make sure that the other one is drawn on top.

I'm not sure if this can be done on a window by window basis. If they
need this kind of relationship, then perhaps another approach would be more
feasible?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Tamir Khason" <ta**********@tcon-NOSPAM.co.il> wrote in message
news:uF**************@TK2MSFTNGP15.phx.gbl...
Thank you, Nicholas for response, but, I do not need TopMost form, I need
always put one form above another - it have not be topmost. Like it
occures in showDialog method...

TNX

--
Tamir Khason
You want dot.NET? Just ask:
"Please, www.dotnet.us "

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote
in message news:es**************@TK2MSFTNGP10.phx.gbl...
Tamir,

You might get what you want by setting the TopMost property on the
form to true.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Tamir Khason" <ta**********@tcon-NOSPAM.co.il> wrote in message
news:OD**************@TK2MSFTNGP10.phx.gbl...
Is it possible managed detect that one form inaplicationcontext is above
other ?

--
Tamir Khason
You want dot.NET? Just ask:
"Please, www.dotnet.us "



Nov 16 '05 #4
Perhaps the form whenever it is selected will set the child form's TopMost =
true, then whenever the focus leaves the form then it will set it back to
false so that this window can be dropped back. Will this give behavior
similar to what you want?

Thanks,
Justin Etheredge

"Nicholas Paldino [.NET/C# MVP]" wrote:
Tamir,

So TopMost would be too much then... If this is the case then you will
have to determine when the form you want to be under the other gets the
focus, and when it does, make sure that the other one is drawn on top.

I'm not sure if this can be done on a window by window basis. If they
need this kind of relationship, then perhaps another approach would be more
feasible?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Tamir Khason" <ta**********@tcon-NOSPAM.co.il> wrote in message
news:uF**************@TK2MSFTNGP15.phx.gbl...
Thank you, Nicholas for response, but, I do not need TopMost form, I need
always put one form above another - it have not be topmost. Like it
occures in showDialog method...

TNX

--
Tamir Khason
You want dot.NET? Just ask:
"Please, www.dotnet.us "

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote
in message news:es**************@TK2MSFTNGP10.phx.gbl...
Tamir,

You might get what you want by setting the TopMost property on the
form to true.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Tamir Khason" <ta**********@tcon-NOSPAM.co.il> wrote in message
news:OD**************@TK2MSFTNGP10.phx.gbl...
Is it possible managed detect that one form inaplicationcontext is above
other ?

--
Tamir Khason
You want dot.NET? Just ask:
"Please, www.dotnet.us "



Nov 16 '05 #5
Net exactly. I implemented on Activate main form activate of child form and
thoat's work, but it' rather ugly solution. Ideas?

--
Tamir Khason
You want dot.NET? Just ask:
"Please, www.dotnet.us "

"phreakstar" <ph********@discussions.microsoft.com> wrote in message
news:10**********************************@microsof t.com...
Perhaps the form whenever it is selected will set the child form's TopMost
=
true, then whenever the focus leaves the form then it will set it back to
false so that this window can be dropped back. Will this give behavior
similar to what you want?

Thanks,
Justin Etheredge

"Nicholas Paldino [.NET/C# MVP]" wrote:
Tamir,

So TopMost would be too much then... If this is the case then you
will
have to determine when the form you want to be under the other gets the
focus, and when it does, make sure that the other one is drawn on top.

I'm not sure if this can be done on a window by window basis. If
they
need this kind of relationship, then perhaps another approach would be
more
feasible?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Tamir Khason" <ta**********@tcon-NOSPAM.co.il> wrote in message
news:uF**************@TK2MSFTNGP15.phx.gbl...
> Thank you, Nicholas for response, but, I do not need TopMost form, I
> need
> always put one form above another - it have not be topmost. Like it
> occures in showDialog method...
>
> TNX
>
> --
> Tamir Khason
> You want dot.NET? Just ask:
> "Please, www.dotnet.us "
>
> "Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com>
> wrote
> in message news:es**************@TK2MSFTNGP10.phx.gbl...
>> Tamir,
>>
>> You might get what you want by setting the TopMost property on the
>> form to true.
>>
>> Hope this helps.
>>
>>
>> --
>> - Nicholas Paldino [.NET/C# MVP]
>> - mv*@spam.guard.caspershouse.com
>>
>> "Tamir Khason" <ta**********@tcon-NOSPAM.co.il> wrote in message
>> news:OD**************@TK2MSFTNGP10.phx.gbl...
>>> Is it possible managed detect that one form inaplicationcontext is
>>> above
>>> other ?
>>>
>>> --
>>> Tamir Khason
>>> You want dot.NET? Just ask:
>>> "Please, www.dotnet.us "
>>>
>>>
>>
>>
>
>


Nov 16 '05 #6

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

Similar topics

8
by: shandain | last post by:
Ok, I have done this a million times, and I can't get this to work... I hope I am just being an idiot and missing something... but I can't see it... so please call me an idiot and tell me what it...
15
by: Steve | last post by:
I have a form with about 25 fields. In the BeforeUpdate event of the form, I have code that sets the default value of each field to its current value. For a new record, I can put the focus in any...
15
by: Paul T. Rong | last post by:
Hi everybody, This time a very very difficult case: I have a table "tblStudent", there are 50 students, I also made a form "frmStudent" based on "tblStudent", now if I don't want to show all...
8
by: Zlatko Matić | last post by:
There is a form (single form) and a combobox. I want that current record of the form is adjusted according to selected value in the combobox. Cuurrent record should be the same as the value in the...
10
by: Drakier Dominaeus | last post by:
This is my first time posting here, so please forgive me if I do anything incorrectly. I've been learning C# and working with different things and decided I wanted to get into Multi-Threading....
7
by: Terry | last post by:
I have a Mainform with a Statusbar. When opening another form or doing some processing I want to display info in the Statusbar of the Mainform. I have read a lot of articles on this & have come up...
1
by: John Phelan-Cummings | last post by:
When I add the name of a new individual in a, bound form, it will not display that person’s name in a label control of a second unbound form. I have a scheduling program that I am working on. ...
6
by: drec | last post by:
I am just learning Javascript and I would like to create a basic form that gives me two options. This will be using either checkbox or radio input type, however I would like the second option to...
14
by: Professor Yonce | last post by:
I have made form for E-Mail. I have entered code but the Import system does not work. It has squiggly line underneath it showing it is not communicating. It Will not build. Public Class...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
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...

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.