Fellow C-Sharp developers,
I have an application that must be able to display a message on a
desktop even if the screen saver has locked the computer. If you pass
"ServiceNotific ation" as a MessageBoxOptio n on the MessageBox.Show
method, the MessageBox will display even if there is not a user logged
in. Unfortunately, my users want to override the colors as well as
make other modifications to the MessageBox that cannot be done since
the MessageBox Class cannot easily be subclassed. Most people (as well
as myself) would recommend re-creating a standard window with
MessageBox-like functionality. The only problem is that I am having a
problem recreating the "ServiceNotific ation" functionality of the
MessageBox.
Does anybody have a clue, how this can be done in a C# application? I
have tried several different things like setting the parent during
window creation, setting style and ex-style bits during window
creation, but have not found the trick.
I would appreciate any insight anybody might have on this.
Thanks in advance,
Scott Numbers 1 4574
Thanks for the reply Nicholas. I was kind of hoping there was a trick
such as the window using a specific class or being a child of a
specific window or special styles bits. It can obviously be done since
MessageBox does it.
While using Spy++ on the windows to determine infomation about a
MessageBox window, I notice my C-Sharp form window had
'WindowsFormPar kingWindow' as the parent window. I would have thought
the parent window would have been none or the Desktop. What is the
purpose of this window?
Anyway, thanks again for the response.
Scott Numbers
"Nicholas Paldino [.NET/C# MVP]" <ni************ **@exisconsulti ng.com> wrote in message news:<et******* *******@TK2MSFT NGP11.phx.gbl>. .. Scott,
I don't believe that you can do this. I believe that the ServiceNotifica tion value is only interpreted by the MessageBox API, and not by regular windows. I can't find anything in MSDN about MB_SERVICE_NOTI FICATION which would indicate that kind of functionality is elsewhere.
Hope this helps.
-- - Nicholas Paldino [.NET/C# MVP] - ni************* *@exisconsultin g.com
"Scott Numbers" <nu*****@adelph ia.net> wrote in message news:dd******** *************** ***@posting.goo gle.com... Fellow C-Sharp developers,
I have an application that must be able to display a message on a desktop even if the screen saver has locked the computer. If you pass "ServiceNotific ation" as a MessageBoxOptio n on the MessageBox.Show method, the MessageBox will display even if there is not a user logged in. Unfortunately, my users want to override the colors as well as make other modifications to the MessageBox that cannot be done since the MessageBox Class cannot easily be subclassed. Most people (as well as myself) would recommend re-creating a standard window with MessageBox-like functionality. The only problem is that I am having a problem recreating the "ServiceNotific ation" functionality of the MessageBox.
Does anybody have a clue, how this can be done in a C# application? I have tried several different things like setting the parent during window creation, setting style and ex-style bits during window creation, but have not found the trick.
I would appreciate any insight anybody might have on this.
Thanks in advance, Scott Numbers This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: John Bailo |
last post by:
The war of the OSes was won a long time ago.
Unix has always been, and will continue to be, the Server OS in the form
of Linux.
Microsoft struggled mightily to win that battle -- creating a poor man's
DBMS, a broken email server and various other /application/ servers to
try and crack the Internet and IS markets.
In the case where they didn't spend their own money to get companies to
|
by: me |
last post by:
I have a Class Library that contains a Form and several helper classes. A
thread gets created that performs processing of data behind the scenes and
the Form never gets displayed (it is for debug puposes only and is not
normally visable to the user.) The Thread function is actually in the Form
class.
Now.. What I am seeing is that when I create an instance of this Class
Library's Form, which starts the worker thread, it seems to hose up...
|
by: Lalit |
last post by:
Hi Friends,
I have developed a Windows service. Now i need icon for this service in
systray and context menu fo this icon. Can i do this?
With regards,
Lalit
|
by: WJ |
last post by:
My app. has a dozen forms. Some of them are "Disposed()" when the user
clicks the top-right "X" button. Some are not purged (I use "purge" to mean
that the form/object is completely removed from the RAM) despite the "X"
button is touched.
In c#, I need to know how:
1. To show a list of form(s) that are currently active but not shown in the
desktop (yes, including the current active desktop one)
2. Check a form to see if it is already...
|
by: Stanley |
last post by:
Hi everyone! I can create Windows Service in VB .Net 2003 professional.
The problem is that when I try to show up a form in Service Start up
event, the form always show up and become stop responsible! Any idea?
Regards,
Stanley
| |
by: brandon |
last post by:
Anybody out there know how I could go about handling, in a systray'd
app, the windows message that the desktop is going to be locked? This
way the application can react whenever the Win+L or Ctrl+Alt+Del+L is
used to lock the computer. I realize this will probably involve some
Windows API work, and am aware of the LockWorkStation inside the
User32.dll which causes the locking of the computer, but don't know
where to start to find out how...
|
by: uuyytt |
last post by:
I have a Windows service from which I want to start Internet Explorer with a
particular URL as an argument. It can work well except when I run it on
windows 2003
I allowed services explicitly to interact with the desktop and
I tested with imporsonation but still not work.
I don't know why my code (shown below) doesn't work.
I know that IExplore.exe starts as I can see it in my task manager, but it
is not visible.
|
by: John Smith |
last post by:
How do i know if windows has been locked (via ctrl-alt-del)?
I need to know because I'm running my app as a service and I want to
suppress sounds when the desktop's locked (it currently plays them).
|
by: =?Utf-8?B?TVNU?= |
last post by:
To demonstrate my problem, I have a very simple VB Windows application. It
has a text box that is used to display a counter, a button to reset the
counter, and a timer that increments the counter every second.
I remote desktop to the computer hosting this application and run the
application. It starts up and displays the counter incrementing every
second. If I disconnect the network cable between the two computers for 10
seconds and...
|
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: 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...
|
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...
|
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...
|
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...
| |