473,782 Members | 2,505 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Unfocused Stay-On-Top Form, when showing from a diffreant thread..

I would like develop Form on my Windows Application, that is going to notify
the user, just like Microsoft Office 2003 shows that there are new mail
coming. When I use System.Windows. Forms.Form and show it on a different then
main thread on my application, this new form became focused, but I want that
new form at the beginning acts like just stay-on-top notification… also in
this form I would like have controls, that could be focused, when users click
it, like, LinkLabel (so it couldn’t be just ToolTip, or something like this)…
Could I create such a Form, that wont be take focus, when I showing it in
c#...
Nov 16 '05 #1
2 3413
Krzysztof,

In order to do this, I believe you want to set the TopMost property to
true.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Krzysztof Karnicki" <Krzysztof Ka******@discus sions.microsoft .com> wrote in
message news:C4******** *************** ***********@mic rosoft.com...
I would like develop Form on my Windows Application, that is going to
notify
the user, just like Microsoft Office 2003 shows that there are new mail
coming. When I use System.Windows. Forms.Form and show it on a different
then
main thread on my application, this new form became focused, but I want
that
new form at the beginning acts like just stay-on-top notification. also in
this form I would like have controls, that could be focused, when users
click
it, like, LinkLabel (so it couldn't be just ToolTip, or something like
this).
Could I create such a Form, that wont be take focus, when I showing it in
c#...

Nov 16 '05 #2
Thanks,

I've made it...
But it is about different problem...
Imagine e.g. word processing application... you write something, and this
application sometimes shows you new Form with some information... this new
Form always gets focus, when showing, but I don't want this... I want to
develop, that the cursor will stay on the place where it was, before
notification have shown up...so new Form want engage user, he could still
write, because he didn’t lost focus on a main window… new window is only
notification until user clicks it.
So another words I want to show new Window, that isn't focused, until user
activates is...

So, If You know any solution for creating Window, that wont get focused...


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

In order to do this, I believe you want to set the TopMost property to
true.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Krzysztof Karnicki" <Krzysztof Ka******@discus sions.microsoft .com> wrote in
message news:C4******** *************** ***********@mic rosoft.com...
I would like develop Form on my Windows Application, that is going to
notify
the user, just like Microsoft Office 2003 shows that there are new mail
coming. When I use System.Windows. Forms.Form and show it on a different
then
main thread on my application, this new form became focused, but I want
that
new form at the beginning acts like just stay-on-top notification. also in
this form I would like have controls, that could be focused, when users
click
it, like, LinkLabel (so it couldn't be just ToolTip, or something like
this).
Could I create such a Form, that wont be take focus, when I showing it in
c#...


Nov 16 '05 #3

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

Similar topics

1
5619
by: dr. zoidberg | last post by:
Hello, I have created simple login sistem. I'm using sessions and they expire after I close my browser. How can I stay loged after I have closed my browser window? I know I should use cookies, but I'm interested in some tips and tricks. TNX
0
1930
by: EKL | last post by:
What command line option should I use to turn off Hotspot's compiled mode behavior and stay in interpreted mode? ekl
7
1428
by: Daniel | last post by:
how to make two references to one string that stay refered to the same string reguardless of the changing value in the string?
3
1343
by: Steven T. Hatton | last post by:
My understanding of the containers in the Standard Library is that they can move out from under pointers and references if they are resized. Stroustrup suggests I can reserve the capacity I will need, and thus avoid having the vector (or other container) realocated with a different address range. I have the sense this is not explicitly specified in the Standard. I have not, however, read the entire ISO/IEC 14882:2003. Here's a link to an...
1
2290
by: Brett | last post by:
How can I get this link to stay inside the iFrame? I was thinking Javascripting might work. <iframe src="blank.html" name="RSIFrame" id="RSIFrame" width="400" height="400"></iframe> <a href="http://r.cuttingcornersmail.com/bth.aspx?f=527636&a=vm1Ju/Atcm6qjm7gJqN9zBpEHF7QfIv+&i=BAZtPwGvJAMLCQ==" target="RSIFrame">Try link</a>
0
2048
by: baylor | last post by:
i'm using forms authentication. i would like for a user to be logged in until they close the browser. The FormsAuthentication.RedirectFromLoginPage method takes the parameter createPersistentCookie. For some reason i thought this meant it either wrote a cookie that lasted for 50 years or a cookie that existed until the browser closed. Apparently i guessed wrong If i set createPersistentCookie to false, i am logged out after 20 minutes. i...
4
1642
by: Stan Sainte-Rose | last post by:
First, I thank you Herfried. I have 3 tabpages in a tabcontrol. I would like to force the user to stay in the current tabpage until he doesn't correctly fill some textboxes. I know how to prevent bad entries but if I click onto another tabpage, I can leave the current tabpage. I try to use the select property but it doesn't work. Any idea ?
21
13627
by: PlainDave | last post by:
Hi, Is there a way to make windows tooltips stay up longer than the default 5 seconds using CSS in a web page? I'd prefer to have it stay visible as long as the mouse is over the "whatever." The reason: I've been creating web pages and using various javascripts for the tooltip popups, and they are fine and very "tweakable." But, I'd prefer to just use the "title" and/or the "alt" attribute and somehow alter it so that viewers to my...
0
1741
Niheel
by: Niheel | last post by:
How do you stay energized for the long hours of development, product launches, or just general work? Over the years I've heard of many ways people try to keep themselves focused and energized for work. Some people need the energy drinks, some people maintain a really healthy lifestyle (exercise and eat well), others lift weights, run to gather thoughts, listen to music, meditate, work in rooms by themselves, keep a task list, others just...
9
1069
by: Bob Homes | last post by:
This newgroup (Vb.net General Discussions) is the ONLY one I am using. I want to be able to get here quickly and stay awhile. But that doesn't seem possible. Am I missing something? To get here, I have to go through this long routine -- pick a language (English), then "Developer", then "Visual Tools" (or something like that), then "Visual Basic", and FINALLY, "VB.NET General Discussions". I can't find any shortcut -- each and every time...
0
9639
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, 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...
0
9479
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
10311
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
10080
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,...
1
7492
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
5378
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
5509
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4043
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
3639
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.