16,019,509 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Visual Basic questions
View Javascript questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by John Smith 27 (Top 27 by date)
John Smith 27
14-Aug-24 11:28am
View
I found the answer with your guidance.
Thx.
John Smith 27
3-May-23 13:22pm
View
I want to make sure that you don't think that I'm talking about the CMD window... it doesn't appear, what appears is the installation of the mouse cursors on the top left side of the screen with a gray background form.
John Smith 27
3-May-23 12:20pm
View
I did it, see the updated question, but it opens a window each time when installing each cursor set, and for 279 sets it's bothering.
John Smith 27
3-May-23 12:20pm
View
I did it, see the updated question, but it opens a window each time when installing each cursor set, and for 279 sets it's bothering.
John Smith 27
3-May-23 11:50am
View
I know this one, it runs the inf files in notepad, not like right clicking and choosing: "Install".
John Smith 27
25-Apr-23 10:20am
View
Sorry, I'm only a hobbyist and this seems complicated for me...
John Smith 27
25-Apr-23 5:37am
View
This prevents the formMains's KeyDown from firing the arrows down:
private void buttonRestart_Enter(object sender, EventArgs e)
{
ActiveControl = label1;
}
even when label1.Visible = true;
John Smith 27
6-Apr-23 12:10pm
View
Accepted but plz change the arguments like the ones I made in my answer, the ones in your answer don't work, these work:
PostMessage(
new HandleRef(null, new IntPtr((int)SpecialHandles.HWND_BROADCAST)),
WM_SYSCOMMAND,
new IntPtr( SC_SCREENSAVE),
new IntPtr( 0));
John Smith 27
6-Apr-23 11:33am
View
The one with TurnOnScreenSaver();
John Smith 27
6-Apr-23 11:02am
View
I changed it to work correctly, duplicate my answer of your code and I will accept it plz, thx a lot.
John Smith 27
6-Apr-23 9:59am
View
I get an error that can't convert "null" to HandleRef.
John Smith 27
6-Apr-23 9:44am
View
[DllImport("User32.dll")]
public static extern int SendMessage (IntPtr hWnd, uint Msg, uint wParam, uint lParam);
[DllImport("User32.dll")]
static extern bool PostMessage(HandleRef hWnd, uint Msg, IntPtr wParam, IntPtr lParam);
John Smith 27
6-Apr-23 9:30am
View
The arguments you provided for PostMessage aren't correct, please provide correct arguments for this:
[DllImport("user32.dll")]
static extern bool PostMessage(HandleRef hWnd, uint Msg, IntPtr wParam, IntPtr lParam);
John Smith 27
6-Apr-23 9:06am
View
See the code in the new answer I submitted plz.
John Smith 27
6-Apr-23 8:47am
View
I have 2 programs, 2 Visual Studio solutions each in a separate File Explorer folder, one I made and one entirely from your code, but the exe that is entirely from your code keeps open after it has finished its job there's still an open thread in it that keeps running in the background in Windows after I log in to Windows and it should exit and not keep running in the background eating up RAM from the computer without doing a job as it has ran the screensaver and locked the screen and when I log in Windows it should exit.
John Smith 27
6-Apr-23 8:29am
View
In Visual Studio, when I run the app it shows the screensaver, and when I exit the screensaver and log into Windows, I still see the program open as it doesn't exit when it finished its job, it keeps showing me that it's running and its RAM usage statistics while it's still running instead of having exited after I logged in to Windows and the exe's job is finished.
John Smith 27
6-Apr-23 8:23am
View
It works but it keeps open in the system even after the screen is unlocked.
John Smith 27
6-Apr-23 8:22am
View
The first should be a HandleRef.
John Smith 27
6-Apr-23 8:12am
View
And what would be its parameters that to be sent then?
[DllImport("user32.dll")]
static extern bool PostMessage(HandleRef hWnd, uint Msg, IntPtr wParam, IntPtr lParam);
John Smith 27
6-Apr-23 7:54am
View
But the application keeps running and doesn't exit after login, how to fix that?
John Smith 27
6-Apr-23 7:50am
View
Actually it works like magic I'm sorry I didn't understand it first, submit as an answer plz.
John Smith 27
6-Apr-23 7:03am
View
It didn't help, sorry.
John Smith 27
18-Nov-22 0:36am
View
https://prnt.sc/bko6iQlP_B-j this doesn't make my form pass mouse clicks to what's behind it, I made the image stay for 1 second (the form) and when I click on it the click doesn't pass through... maybe I need to do the same for the picturebox? EDIT: I tested without the picturebox covering and the click still doesn't pass through.
John Smith 27
17-Nov-22 18:31pm
View
How can I make it click-throughable while it's not transparent and is showing an image on top of other windows plz?
John Smith 27
5-Nov-22 8:38am
View
But why is that? I'm using the ID numbers for these events I found in Google, would you please have a look at them? (please see the simplified question)
John Smith 27
4-Nov-22 11:15am
View
They are not, and there are many numbers of events and no names like: "Session locked" or "Session unlocked", there's "User account management" which has a lot of it and no fine explanation in its window, I cannot figure out the numbers and the numbers I find in Google don't work for me, Windows 10 - 64bit - 21H2. I'm looking in Security in Event Viewer.
John Smith 27
4-Nov-22 8:34am
View
Thx, see the updated question please.
Show More