VB 2008 Code To Turn Off Monitor
Jan 26, 2010
I found many solutions in C++ however they seems fail to satisfy my requirement. I need code to turn off monitor when i'm away and if i want it to turn on, i must type specified key instead of any key press or mouse movement as usual.
View 5 Replies
ADVERTISEMENT
Jun 3, 2011
How do I turn off a monitor using VB.NET code? OK, actually I found the C# solution. But I need the VB.NET solution. I have tried an online C# to VB.NET converter, but the converter is complaining that there are errors in it.How can the following C# code be translated to VB.NET?
[Code]...
View 2 Replies
Feb 26, 2010
Im currently working on application where i need to monitor LPT printer port for traffic. Now i need to found the way how to monitor LPT prints and turn them to the file. Anyone can help me out please. I have try to search on google and also here but not success, only what i found was example in VC++ but i need it in VB.NET or at least in C#.[URL]
View 1 Replies
Oct 17, 2009
I built a power saver program that makes the screen turn black when you're not standing over the keyboard, but it only makes the screen turn black and that probably won't save much (or any) power
View 7 Replies
Jun 9, 2012
Public Declare Function PostMessage Lib "user32.dll" _
Alias "PostMessageA" _
(ByVal hwnd As IntPtr, _
[code]....
And here is the actual code to do the task:
PostMessage(Me.Handle, WM_SYSCOMMAND, SC_MONITORPOWER, 2&)
This puts the monitor into standby. Can I please have some help to modify the code to turn the monitor off, and also the code to turn it back on.
View 10 Replies
Nov 11, 2011
I will build a EXE file without form, this EXE file will turn off monitor, then invoke this EXE from command line.The turn off monitor code is below
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As IntPtr, ByVal wMsg As Integer, ByVal wParam As Integer, ByVal lParam As Integer) As Integer
Private Const WM_SYSCOMMAND As Integer = &H112
[code]....
I want to know what about the MainHandle, because there is no the form in the EXE file (Me.Handles invalid), and only invoke the EXE from command line, in other words, there is no the invoke form (FindWindowA is invalid), how to write the MainHandle?
View 2 Replies
Sep 9, 2010
I want to make a process monitor tool with WMI that monitor the processes created or deleted, but the code will not work. Note to reference System.Management,
CODE:
Code dowload:
CODE:
View 4 Replies
Aug 16, 2011
I am not exactly sure what I am looking for here.. So I have this code to disable the close button on a form (Red X):
Protected Overrides ReadOnly Property CreateParams() As CreateParams
Get
Dim cp As CreateParams = MyBase.CreateParams
Const CS_NOCLOSE As Integer = &H200
cp.ClassStyle = cp.ClassStyle Or CS_NOCLOSE
[Code]...
View 10 Replies
Feb 11, 2012
My current code: Server: Imports System.IO Imports System.Text Imports System.Threading
[Code]...
View 9 Replies
Mar 24, 2012
How do access a code to do something for only the last clicked text box and turn it into an If...ElseIf...End If statement?
View 3 Replies
Aug 27, 2010
I am using Visual Basic 2008. However, the Report a Bug function does not work, which in itself is a major bug.While I am typing in the code editor, these annoying popups keep popping up and completely blocking my view of the code. I have no idea what these popups are showing and do not need them. I have not been able to find any way of turning them off. I consider this another major bug.
View 7 Replies
Mar 6, 2012
I'm tutoring a student in VB 2010 at a local college.i'm trying to explain to the student that he needs to learn the technique or art of knowing how to start coding in VB to accommodate a simple forms program.Is there a name or term that is used to describe the thought process a programmer goes through to convert what the user is expecting into the code that needs to be implemented to accomplish the task?A simple example is a form with a textbox on it and an OK button.When the user clicks the OK button, the program should check the textbox to make sure it is a number and not alphanumeric.The student I am tutoring has a hard time knowing what the first line of code should be to make that kind of test.He has a problem translating what needs to be done into code.I was wondering if anybody knows what that is called and if there is anything written about it.
View 15 Replies
Feb 17, 2012
Right now I can add background music in my program by using this code
My.Computer.Audio.Play(My.Resources.Music_3, AudioPlayMode.Background)
I can also turn it off and change the music by using this code
My.Computer.Audio.Stop()
My.Computer.Audio.Play(My.Resources.Another_Music, AudioPlayMode.BackgroundLoop)
Is it possible to pause the music then if I resume the music it will just continue the flow? I mean if I pause the background music in 33 seconds and the music has 50 seconds and I resume it will just continue playing in 33,34,35 etc.. seconds?
View 2 Replies
Sep 1, 2009
I was wondering if their was a way to for me to turn off events and then turn them back on in my program or just queue them up until i am ready for them to be excuted. Kinda like how a OS turns on and off interupts. Is this one of those general programming no-nos?
View 1 Replies
Jan 31, 2011
Can I monitor the registry for changes similar to how sysinternals process monitor does it in VB? I have checked many different articles and C# samples but not come any closer to getting an answer, I would like to know if there an easier way (a VB sample perhaps)that you folks can share. Ultimately I'd like to be able monitor other things too like file system, processes etc but wonder most about how the registry can be done in VB...Would using system.management be a start? Or WMI? if so is there a nice VB sample..
View 3 Replies
Apr 14, 2011
i'm working on a game where when your character (in a picture box) collides with anthother charachter (also in a picturebox), the character disappears. i want the computer to generate characters as you play. I'm trying to figure out how the computer will know if the player character has collided with a computer generated character. as the computer generates characters it puts their names in a list box. what i'm not sure how to do is pull the names out of the list box and have the computer check the location property of the picture box with the name that corresponds.
View 3 Replies
Oct 13, 2009
Why is it so important to turn option strict on? I admit I am not a professional programmer, but I have written a great number of useful applications...I am fairly well (although self) educated in object oriented programming... I even write programs for my business...I always have felt that I am missing some background theory that is probably really important (I have a grad degree in math, no comp sci)...I have never turned on Option Strict for any project I have ever written, and I guess I just want to know, theoretically why is it important?
View 10 Replies
Oct 22, 2009
How would i make it so my application can turn/off the hidden folder option?
View 9 Replies
Feb 10, 2009
1st. I want to programatically turn on/off the backlight on my laptop. I believe it can be done with the user32.dll, but I can't find the exact code.
2nd I want to programatically turn on/off my WiFi adaptor, just to interupt my internet connection for a few seconds.
View 4 Replies
May 12, 2009
Im really bored an I can't think of another program to make but im going to give it a shot. Im trying to make a program that can turn on caps lock when you push button 1(Yes I know theres already a caps lock button on the keyboard Lol) and turn on off caps lock with button2. Im am also trying to see everytime i push button 3 it will hold shift down for as long as o dont let go of the left mouse button but when I let go of the left mouse button it will let go of button 3 and shift will be off O.o. Is there a way to do this?
View 1 Replies
Jul 6, 2009
I have a small problem, When i Start Debugging my program a lot of windows popping up such as: Watch 1 - 4, Memory 1 - 4,Autos And Registers. What should I turn off to make them stop popping on debugging?
View 4 Replies
May 27, 2010
I have the following windows service file:
Imports System.ServiceProcess
Imports System.IO
Public Class fswService
[Code].....
2 problems: first, intellisense error saying: 'fswService' is a type and cannot be used as an expression. second, I can not figure out a way to pass on to the service the path of the folder to watch (which is stored at My.Settings.userPath).
View 2 Replies
Oct 28, 2009
I am working on a little project for my phone creating some sort of remote to turn up/down my system volume via wifi. The phone will send data to a text field on the website lets say such as "vol up" and the vb app sitting on the computer will be constantly reading this text field for key words like "vol up", "vol down". when it see's a recognized command it reacts by turning the volume up and so on. And one more thing: Is it possible to have a vb app that uses http? E.g., sits on port 80 itself and can be accessed via local ip.
View 8 Replies
Aug 3, 2009
I Trying to make my own fast steam client but I wonder how I turn of the windows style so it looks like the real steam window
View 7 Replies
Apr 14, 2011
I am making an antivirus program in VB 2008.Everything has gone well,but I am having trouble with web browser monitor.The following are the tasks of web browser monitor:
1 - Whenever the user tries to open a web page in any web browser,it must return the url and html code of the web page to the antivirus.In my program, i have the following function to check whether a given string contains virus codes
[Code]...
View 10 Replies
Apr 28, 2010
Right so I want the following to be achieved. Working with the Windows media player COM Form loads up into second monitor, my current screen res is 1400 x 900 Form stays on primary monitor, but video feed from windowsmedia player is on secondary monitorI have been googling all day and haven't found my answer, can you help? Basically I have everything set up but just need to figure out how to bring in a second monitor into the equation. As everyhting seems to be stuck on my main display
View 2 Replies
Oct 27, 2009
I am using the following code to start a CMD process, my question is.My application starts up a CMD, and then the CMD commands a php file to start up and run. How can I track both of these process, so I can start and stop them?
vb.net Public Class Form1
[Code]...
View 23 Replies
Jun 15, 2011
So I got this idea to write a very small application for a school project that raises a balloon from the system tray everytime a new process is getting launched or an existing process quits.
With my current code, I am getting the list of processes using a timer.This list needs to be compared with the previous list and detect differences (if this is possible, or should I use a different concept)? I have no clue how to do this.
I currently have:A ListView (ListView1), with the View property to "Details" A Timer (at a 5000ms interval), with the following
[Code]...
View 6 Replies
Jul 7, 2011
how to make a program to split the monitor into 4 unequal parts?
View 1 Replies
Jan 6, 2010
I'm looking for a way to monitor drive activity using Visual Basic 2008. I want to create a small utility to simulate an LED in the system tray for drive read/write activity. I've found several such utilities that do this, but they all lack one thing or another, or they are over bloated with stuff I don't want or need, etc. I want to write my own so it will be like I want it. To get started, I need to know how to monitor drive activity.
View 4 Replies