I am creating a tool for monitor turn off function,I should be able to get wether monitor is switched on or switch off from my code.I got solutions only to switch on or switch off the monitor, any one can help me how can we dedect if a monitor is turned on or off?
2. User clicks go next to textbox with data entered, then button and a copy of form refered to as browse is created.
3. Form refered to as browse is directed to the url refered to on the form refered to as monitor, in the associated textbox(passed as a parameter to copyForm)
4. A timer is used to refresh the webpage every 10 seconds
What I wanted to happen was the program turn the associated picturebox in form1 green if page is loaded, and black is loading.
2. User clicks go next to textbox with data entered, then button and a copy of form refered to as browse is created.
3. Form refered to as browse is directed to the url refered to on the form refered to as monitor, in the associated textbox(passed as a parameter to copyForm)
4. A timer is used to refresh the webpage every 10 seconds
What I wanted to happen was the program turn the associated picturebox in form1 green if page is loaded, and black is loading.
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,
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..
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).
I want to be able to have the Level of my Mic in my Form. I want a Progressbar that tracks how high my voice is just like in Windows Movie Maker or In Msn Messinger when you are doing a voice Chat there is a Progressbar like object that shows how loud it is...
I was just wondering if mixing SyncLock blocks and Monitor.Enter/Exit statements is dangerous. I know SyncLock uses Monitor and a Try block in the background, but are there any problems with using the two together for thread synchronization?
[code]Seems to fetch data from my one and only internal IDE drive.The line objWriter.Write("Active: {0} ", queryObj("Active")) does not work if you change up the data in between the first set of quotes. Thus changing Active: {0} to Active: {1} causes an error that the Try Catch doesn't catch (this for...next is in a try catch).I assumed that the stuff inside the quotes was just text and could be changed to anything? Why doesn't the try catch catch it?Doesn't read a USB external drive when attached.i changed {0} to {1} and it crashes.
I have put together an app to monitor several directories. The basic principle is to replicate from a Master directory to a Shared directory when specific criteria is met (specific file types are changed, renamed or deleted within the Master directory)Everything seems to work fine with excpetion to MS Office documents. e.g. If I work on a .bmp and save it, it will trigger a changed event. However, with office documents (Word in this example), it appears to rename the MYDOC.DOC file to <freefile>.TMP then rename a different <freefile>.TMP to MYDOC.DOC. This would not be a problem if it was to trigger the Changed or Created event for MYDOC.DOC, but it doesn't. It wouldn't be so bad if the first TMP file was named the same as the second TMP file as I could mirror the process using the Renamed event.I can not filter out TMP files as we use TMP files within the Master directory, albeit for a different purpose.I would use an off the shelf produt, but the files need to be copied to different shared directories based on specific criteria so I can not seem to find a suitable product that fits my needs.
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?
i would like to program a little app that will change the colors of the screen. im not talking about the darkness. i want it to mimic what it would look like if for example you put on blue lenses or red lenses. so i would like to input the color and i want the screen to look as though i put on lenses of that particular color. well i actually need the program to semi-permanently change the users experience on the computer. i need the computer for the entire session that it is turned on to be changed this color
my code, i'm converting this code from vb to vb.net and seems i was missing something, seems EnumDisplaySetting can't read values and returning 0
Private Declare Function EnumDisplaySettings Lib "user32" Alias "EnumDisplaySettingsA" (ByVal lpszDeviceName As Integer, ByVal iModeNum As Integer, ByRef lpDevMode As DEVMODE) As Integer
I would like to get the screen dimensions so I can programatically change the size of a form upto these values. I'm new to .Net and things are little different then they used to be in earlier version of VB. How do I do it?
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
Second, I have a question which I have been trying to find answer for a wile but without any success.How can I monitor Windows Process for any change (create/kill) after run my app ? the only way I have think about it is that used two lists, the first one load the process list on it and the second refresh each 1 sec to get the new one and compare the two to know the difference, but its useless because you cant know who killed or created the process and other information.
As I have been read before, I guess there is a need to implement windows API, hook to detect process changes ? Is there any idea or solution for this?
I am now building a project where I need to regulate the monitor brightness from software using vbnet.I have now put 2 buttons (+ and -) but I cannot adjust brightess monitor from code usinf these buttons!=!=!=!
I am trying to write some code that will minimize all windows on my main monitor only? I have two other monitors, one on each side, but I just want the windows on the middle monitor to be minimized.
I have 2 monitors and I'm trying to mirror the display from the first monitor to the second.You know that when you connect a second monitor, Windows gives you the choice to mirror the monitors or to expand the display over both monitors.Well that's what I want to do, I want to mirror the monitors.
How can I monitor how many times a switch open and close? I am planning to add a label13 to my form and use the LPT port so every time the switch goes high (1) it will add 1 to my label13.text. The Printer Adaptor address in the target PC is 0x378. using pin 10 (ACK) or pin 2 (D0).
manage some equipment which adds a new record to a csv log file every 15 mins. Whenever the value in the fourth column in that log changes to or from 0 (regardless of what it changes to or from), I want to fire an email off (two different emails - one for the value changing to 0 - i.e. turning off, and a different email for it changing from 0 - i.e. turning on). Can anyone point me in the right direction for some code for that?
I need to monitor KeyDowns outside of my application (probably running in a NotifyIcon) so I can detect a certain key combination to do something. How can I do this? I read somewhere before about using a process.
I have VB2008 Express.I have a main form. From the main form you are eventually lead to form 2.
Main Form - Form 1 - Form 2 - Form 3 I want to monitor how many times someone gets to Form 2. How many times Form 2 is opened but then closed without proceeding to Form 3. I do have an "exit" button on form 2, that will go back to Form 1.
I am making my first application which involves WMI.. Using the documentation provided by MSDN and the Forums I have managed to get data related to the Win32 Class (Computer Name, Physical Memory, IP Address, etc..) Now I would like to get the Serial number of the monitor. I believe I have to use the WmiMonitorID Class. However, I do not know the Syntax to access the property of the same. I had used the code below for the win32 class. How do I modify it for the WmiMonitorID Class?
Public Function OpSys() As String() Dim Str(4) As String ' ManagementObjectSearcher retrieves a collection of WMI objects based on[code]........