I would like to find out what the current windows sleep mode setting is i.e. Is it switched on and what is the timer period. My preferences (in order) are:
.NET Managed Code
API
Read Registry Value
stop windows from going into sleep mode stop windows from going into sleep mode
This is part of this thread:
stop windows from going into sleep mode[URL]
This is the reason that the user gave: I have Windows 7, and if I don't keep continuously using my computer, it goes to sleep. Now I have to restart my computer, put in the password and start again.
When you hit the REPORT link you were told that reporting a post is for SPAM, harrasement and other violations of the Bytes guidelines.
It not a way to draw attention to your problem because you are impatient.
Next time you do it I'll just delete the threat for not following the rules after you have been warned.
i want to check if the computer is in sleep mode or not...Suppose my project is in normal state..I change the state to sleep mode,I want that now when the computer wakes from sleep mode,I want that my project is in minimized state..How to check dat?
I want to check if the computer is in sleep mode or not...Suppose my project is in normal state..I change the state to sleep mode,I want that now when the computer wakes from sleep mode,I want that my project is in minimized state.[code]....
i want to check if the computer is in sleep mode or not...Suppose my project is in normal state..I change the state to sleep mode,I want that now when the computer wakes from sleep mode,I want that my project is in minimized state..How to check dat?
I have searched on the google,But didnt find anything...
as we use sleep() mode in c++ or java, i want to use sleep mode in visual basic 2008 express edition. so kindly help me with a sample code which sleeps for 1000 milli seconds. Else provide alternative for sleep which delays / sleeps for 1000 milli seconds
I'm wondering if there is any code that I could use in VB.net so it can determine the computer's startup mode (such as safe mode or safe mode with networking).
I want to have My.Settings.Delay in seconds not milliseconds adding the 000 for the user. I tried My.Settings.Delay + 0 + 0 + 0. but can't sort how to do this.
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim var As Integer Dim startVal As Integer
why when I use My.Settings to Add items during design mode, they do not show up during run mode?
This is for a custom control.
I'm missing something between the control that exists on a Form during design-mode and the (apparently new) control that's created during run mode.
I can add items in design mode using the Application Settings editor (right-click on custom control, select Properties then Settings). But when I use code in a smart panel during design-mode along with My.Settings.MyProperty.Add() to add additional items, the new items show-up in design mode but revert back to the old set during run-mode.
How can i wake up pc from sleep? i found this project [URL] in c# but i can not convert it, i tried but it has error, can someone conver this code in vb.net?
Is anyone aware of a way that I can set application (or user) level settings in a .Net application that are conditional on the applications current development mode? IE: Debug/Release To be more specific, I have a url reference to my webservices held in my application settings. During release mode I would like those settings to point to [URL] during debug mode I would love those settings to be [URL]
Currently I'm using System.Threading.Thread.Sleep(5000) to let my app pause/sleep for some time. This works great but I can't open my app anymore when it's sleeping and it uses about 25% of my CPU. I guess there must be a better way to do this. I also tried using a timer but that didn't work out to well for me..
I am trying to build a string to copy some files from a flash drive to a computer, of course no computers drive letters are the same. How do I find out what the current drive letter of where the software is executing from?
here is my current code that will work when executing from the exe. When I am debugging it is looking the the directory where the sln file is located.
i bound four datetimepicker.value each to there own application setting using a unique name for each but the only one that will save it's value until the next resart of the program is the first one?
I have a custom control that as a custom property. The property has several preset values to chose from a drop down. The control can be added to a form. The property can be viewed and set in the properties box in the IDE. It all works fine.
Here's the problem: I can create new versions and recompile the control and/or the application without the properties preset value being lost as long as I do it in Debug mode. However, once I try to recompile in Release mode the custom property values predefined setting is lost. I first thought it was something with going from debug mode to release mode. But it seems to be ANY time I recompile in Release mode the custom property values are lost. Is this a quirk in VS that needs a configuration setting, etc. to get around it?
I don't have any idea if it is possible and how can I code it.I have created an application that needs to run on a non-administrator account on windows 7. It won't run if the PC goes sleep/ locked/ hybernate/ on-screensaver. So, I want to disable them programmatically using vb.net 2010. Can any one help me?
By the way, I already tried to edit the power settings of the PC so it will never sleep/ hybernate, etc. But unfortunately, it keeps on sleeping after few hours.
Is it possible to access the My.Settings of an other DLL referenced in the current Project? I have a Database project in which Settings the ConnectionString is stored. I need access to this Setting in an other Project(for Log-File).
I'm getting the following error:"Current thread must be set to single thread apartment sta mode before ole calls can be made"
I am using Speech.Recognition.SpeechRecognizer and using it to open various dialog boxes. It works fine for the first few but on the third one when it calls the InitializeComponent in the Dialog's New, it throws the above error.
Anybody have any clue what causes this or how to fix it? The SpeechRecognizer seems to run on its own thread, so that seems to be at the root of the problem. If I open thedialog with a button click I don't get an error.
I am working on a .NET Windows Service where I am trying to store settings that will be used when the service is started and while it is running. I have searched through posts on SO and found that using the Settings in the properties of the project is great for use with console and winforms applications. However, Google and SO are silent when it pertains to storing these settings with a windows service.
The problem is as follows: If Windows starts up in Safe Mode, no applications I make with VS 2010 will run. Even if I try to launch them, doubleclicking, running, almost everything I tried, the problem is that the application just doesn't show up. There is no window there, and I don't know (haven't checked) if a process related to the application is running.
I need to produce an error display message when the Windows Mobile PDA is in flight mode. The user will need to pull and push data from a SQL Server server; however when in flight mode this is not doable and a message needs to be displayed. Currently the message that is displayed is:
A request to send information the the computer using IIS has failed. For more results please see HRESULT.
I am programming using VB.Net and I am fairly new to it. I have searched for the past week on the Internet and come across information suggesting that I use TAPI, however I do not know what to import, or where the "flight mode detection" code would go in my application.
I have a windows service that I've written in vb.net using vs 2008 targeting ASP.NET 3.5. It appears that it's installing in a running state, but with the start mode set to manual. Is there a way I can have the service be initially stopped? I assume that it would be something in my service installer, but haven't been able to find it.