Run Code When Computer In Log Off Mode?
Oct 28, 2011Is possible to run code while computer is in log off mode? How can i do this?
View 1 RepliesIs possible to run code while computer is in log off mode? How can i do this?
View 1 RepliesI have a program where I want to stop the "www" service at night to keep users out of a website while some night jobs are running.
I know how to stop and start the service from VB.Net but I need to put the computer in maintenance mode before stopping the service to prevent work tickets from being automatically generated.
Is there a way to put a computer in maintenance mode from VB.Net? And also to take it out of maintenance mode?
How can i put a application running while computer is in the log off mode?
View 1 RepliesWhat is the real mode , protected mode , supervisor mode and the hypervisor mode ?
View 1 RepliesI'm trying to make an alarm clock. When the computer is in sleep mode, when the alarm is triggered i want the computer to wake up and play the alarm.
View 2 RepliesThis line of code freezes on my Win7 dev computer but not my XP dev computer.I am using Visual Studio 2003.
strOutputFile = "c: est.mp3"
in the begining i cold the database (accdb 2007) (AGC)and the table(telp)
in form declaration
Dim cn As New OleDb.OleDbConnection Dim cmd As New OleDb.OleDbCommand Dim ad As New OleDb.OleDbDataAdapter Dim cmdb As New OleDbCommandBuilder Dim dbs As New DataSet
[code].....
I am using Visual Basic 2010 Express. I have a form with some text boxes on it. There was some code on that form which was giving errors. So I deleted the whole code. Now the problem is, I cannot see the form Design mode button to view it in design mode. But when I hit F5, I can see all the text boxes (in Run mode). I want to add some more controls on form. How to resolve this problem?
View 2 RepliesWhen I am in break mode, I cannot update code.I receive message "Cannot currently modify this text in the editor. It is read only." Can anyone explain why I get this message?
View 1 Repliesi wrote a piece of code to write some data to a card reader, and read back from that device, filling a form with the data (after reformat).When I step through the code while debugging (using F5, F8 for stepping forward) the form is filled correctly.However, when I run the code (Ctrl-F5), the program seems to hang for about 5 sec and then throws an exception: 'Length should be >0' When looking further during debug - it seems that the program calls 2x the Sub Frm_Read_Display(). I
Imports System.Windows.Forms
Imports System
Imports System.IO.Ports
Imports System.Threading
[code]....
In the Visual Basic 2010 development environment... i.e. cannot edit code when running in 64 bit mode.
View 2 RepliesHow can i test that the code executes in debug mode.
Here is what i would like to do in pseudocode
if not debugMode then
Do something()
[code].....
Is it possible to switch Visual Basic 2010 Express to MDI mode so I can view the code behind alongside the form design?
View 2 RepliesI'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).
View 1 Repliesi am using visual studio 2005 on win 7 with office 2007. i have developed win application. i am using microsoft activex spreadsheet component in my program. so it automatically creates reference to AxInterop.OWC11.dll When i run program in debug mode (open program and click RUN in toolbar it works) but if i run directly .exe (go to bin elease doubleclick .exe) it give error at loading point of that component. It says "Attempted to read or write protected memory. This is often an indication that other memory has been corrupted." An unhandled exception occurrs.
[Code]...
I work for a shop that maintains a fairly new app. The app still has its fair share of bugs, with numerous tickets coming in daily. The error information we're given with those tickets is not as useful as it might be because the application was compiled in Release mode, which I read is smaller and faster (makes sense).
Are there any ramifications to deploying a .NET application to production that was compiled in Debug mode? I would expect it would be a bit slower, but I've read the difference is nominal. This would assure us that when we get errors on tickets we have line number associated with those errors and this, of course, makes debugging much easier. major red flags that would prevent you from doing this? I'm tasked with researching the possibility.
This is applicable to C# and VB.Net. I am writing a console application, but one aspect of it I want to make representable in a GUI (that being downloads running, with progress bars). is it possible to write a console mode application that can also have a form in it that can be called from code inside the console component?
View 3 Replieswhat is the code to make search in the computer?
View 5 Replieshow i can run .net framework on my pc tell me necessary requirements
View 3 RepliesI am working on an OpenGL Visual Basic 2010 Express project using Tao.dlls.My computer has crashed a few times while I was last working on my code.Since then There has been some side effects such as intelisense and autocomplete not working when I load the project, even after checking the options and settings for them.When I start a new project on the other hand the features work again.Also when this OpenGL code is run:
Code:
glutMotionFunc(AddressOf MouseMotionGUI)
I get:
BadImageFormatException unhandeld
An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
This code was working fine before my computer crashed and probably corrupted some files.
I was just wondering if anyone had come across this issue before or anything. I just downloaded Visual Studios 2008 professional trial version (ISO) and when I try to run it or open it, I get a "The operation could not be completed. Access is denied." message. I tried doing everything.I disabled my antivirus, uninstalled a previous version of VS 2008, I still get this message.
View 4 RepliesI need to give input to the VB code by outlook express ie the command to shut down the computer will be imported from OUTLOOK EXPRESS
View 2 RepliesCode:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim Counter As Integer
[CODE]...
The code is suposed to go through all the computer names in a list box and ping them.
It is working with vb6 but when I used vb.net 2008 it is not working
Private Declare Function GetComputerName Lib "kernel32" _
Alias "GetComputerNameA" (ByVal lpBuffer As String, ByVal nSize As _
Long) As Long
Public Function ComputerName() As String
Dim sBuffer As String
[Code] .....
The program consists of a datagridview with data loaded from our sql server.Once in a great while, the up and down arrows on the scroll bar will be blanked out and I am not able to click on them. When I try scrolling using the scroll bar, the datagridview is resized instead of scrolling.
NOTE: This isn't a program I wrote, just one that I'm using. It was developed with VB 2005 Express, framework 2.0.
Make a code to view the processes that are running to a remote computer and how to kill them by select one...
View 6 RepliesI'm running the string on "Can I run a VB.net application on a website"Nothing seem to work after trying to install web developer, it would not install. So i uninstalled VB express and tried to install Visual Studio 2008 which did not successfully install so I tried 2010 and still nothing. Why am I having problems installing Visual studio? Also I cant install windows xpsp3? error messages says not compatible?
View 2 RepliesI need an example snippet of code in which the computer displays a message about every 20 seconds until a key is pressed.
View 3 Repliesi have a task to create a TCP Server (a program that is listening on its network card interfaces for incoming data stream).I have search on the internet and i found that i can use two methods : Socket or TCPListener class.I have created an example for Socket class, but i wondering how could i test it? I need to check that if another computer in the network send some string data to the listener computer , then this message should be displayed.Here is the example from microsoft that i am using for TCP Server using Socket:
Public Shared Sub Main()
' Data buffer for incoming data.
Dim data = nothingc[code]....
But it does not work because of the PORT setting.If in the TCP Server i have "Dim localEndPoint As New IPEndPoint(ipAddress, 0)" the client crashes, but if i change the port from any (0) to 11000 for example,the client works fine.Do you know why?
Later edit2:Maybe i should have started with this question:Which method is recommended for my scope?asynchronous or synchronous method ?
I am developing a computer application designed to monitor the network and CPU statistics on a computer remotely. The monitored computer would have my program installed and the monitoring computer would display, in a form, the information being sent from the remote client.The application does not send any information regarding packets, user names, passwords, etc. It is solely meant for monitoring CPU performance and Network resources remotely.
What would be the best method to send this information over to my host machine?I am programing in Visual Studio 2008 on windows XP. The client machine is also XP. I know this sounds a little shady, but it is required for my little business (http://www.iquorum.net) to monitor what and when something happens on our machines when I and my employees are away.