Show Bid Request
Code to turn off monitor in VB.NET & WinXP
Bid Request Id: 41607
|
|
|
Posted by: |
kosta (2 ratings)
(Software buyer rating 10)
|
Non-action Ratio: |
Above Average - 42.86%
|
Posted: |
Dec 30, 2002 1:30:47 PM EDT
|
Bidding Closes: |
Jan 5, 2003 1:42:56 PM EDT
|
Viewed (by coders): |
371 times
|
Deadline: |
1/10/2003
TIME EXPIRED
|
|
|
|
Description:
Hello,
I need code that works in VB.NET and WINDOWS XP:
I'm trying to find the code that will put a monitor in a powered-off or suspended state, like power save mode. I'd like to actually turn off the monitor, and also have the option to put it in standby mode. I have the code that works in VB6 and Windows 9x. It does not work in NT/2000/XP and I cannot port it over to .NET:
Option Explicit
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Const WM_SYSCOMMAND = &H112
Const SC_MONITORPOWER = &HF170
Private Sub Command1_Click()
' Turn Monitor Off
SendMessage Me.hWnd, WM_SYSCOMMAND, SC_MONITORPOWER, ByVal -1&
End Sub
Private Sub Command2_Click()
' Turn monitor on
SendMessage Me.hWnd, WM_SYSCOMMAND, SC_MONITORPOWER, ByVal 0&
End Sub
Another example is attached.
The code can be in the form of a class or module. All code must be well commented.
Deliverables: 1) Complete and fully-functional working component as well as complete source code of all work done.
2) Complete ownership and distribution copyrights to all work purchased.
Platform:
Windows 2000/XP using Visual Basic .NET
Must be 100% finished and received by buyer on:
Jan 10, 2003 EDT
Deadline legal notes: All times are expressed in the time zone of the site EDT (UT - 5). If the buyer omitted a time, then the deadline is 11:59:59 PM EDT on the indicated date.
Special Conditions / Other:
Deadline must be met: 01/10/2003
Additional Files:
This bid request includes IMPORTANT additional attached files. Please download and read fully before bidding.
Remember that contacting the other party outside of the site (by email, phone, etc.) on all business projects < $500 (before the buyer's money is escrowed) is a violation of both the software buyer and seller agreements.
We monitor all site activity for such violations and can instantly expel transgressers on the spot, so we thank you in advance for your cooperation.
If you notice a violation please help out the site and report it. Thanks for your help.
|
|
Bidding/Comments:
|
All monetary amounts on the site are in United States dollars.
Rent a Coder is a closed auction, so coders can only see their own bids and comments. Buyers can view every posting made on their bid requests. |
See all rejected bids (and all comments)
Name |
Bid Amount |
Date |
Coder Rating |
|
|
This bid was accepted by the buyer!
|
$49 (USD)
|
Dec 30, 2002 4:16:13 PM EDT
|
9.8
(Excellent)
|
|
|
We can make tbis for you on VB.Net
JEI (Microsoft Certified Partner)
Quality makes the difference
|
|
|
|
|
|