Click here to Skip to main content
15,887,485 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How do i Multiply Bytes w/o overflow (Like char in c++) ? Pin
Christian Graus2-Aug-09 22:00
protectorChristian Graus2-Aug-09 22:00 
GeneralRe: How do i Multiply Bytes w/o overflow (Like char in c++) ? Pin
Kobi_Z2-Aug-09 22:25
Kobi_Z2-Aug-09 22:25 
GeneralRe: How do i Multiply Bytes w/o overflow (Like char in c++) ? Pin
Christian Graus2-Aug-09 22:28
protectorChristian Graus2-Aug-09 22:28 
GeneralRe: How do i Multiply Bytes w/o overflow (Like char in c++) ? Pin
riced2-Aug-09 23:41
riced2-Aug-09 23:41 
AnswerRe: How do i Multiply Bytes w/o overflow (Like char in c++) ? Pin
dan!sh 2-Aug-09 22:43
professional dan!sh 2-Aug-09 22:43 
GeneralRe: How do i Multiply Bytes w/o overflow (Like char in c++) ? Pin
Kobi_Z3-Aug-09 0:22
Kobi_Z3-Aug-09 0:22 
AnswerRe: How do i Multiply Bytes w/o overflow (Like char in c++) ? Pin
KarstenK3-Aug-09 0:39
mveKarstenK3-Aug-09 0:39 
QuestionWhich is the best and sure way to shutdown systems Pin
Amer Rehman2-Aug-09 20:55
Amer Rehman2-Aug-09 20:55 
Hi
I need to shutdown remote systems running on windows xp with Dotnet Framework 1.1 installed. The user is limited on these machines.

I have used the following methods to shutdown the systems.

1. wmi

Dim oOS, oOperatingSystem As Object
                        oOS = GetObject("winmgmts:{(Shutdown)}").ExecQuery("Select * from Win32_OperatingSystem")

                        For Each oOperatingSystem In oOS
                              oOperatingSystem.Win32Shutdown(nForcePowerDown)
                        Next

2. shutdown.exe of xp

The problem is using the wmi sometime fails for reasons I don't know. The other method needs Admin privileges. Which is also an overhead.
What should I do? Use the API or there is some other way?

Please help as search over internet has not helped me much.

Thanks

reman

AnswerRe: Which is the best and sure way to shutdown systems Pin
Johan Hakkesteegt3-Aug-09 1:41
Johan Hakkesteegt3-Aug-09 1:41 
AnswerRe: Which is the best and sure way to shutdown systems Pin
Dave Kreskowiak3-Aug-09 2:03
mveDave Kreskowiak3-Aug-09 2:03 
Questionhaving problems (Public Shared Sub ShowTcpStatistics) Statement cannot within method body. End of method assumed// which is affecting my txtbox.Text Pin
that_dude_tj2-Aug-09 10:59
that_dude_tj2-Aug-09 10:59 
AnswerRe: having problems (Public Shared Sub ShowTcpStatistics) Statement cannot within method body. End of method assumed// which is affecting my txtbox.Text Pin
Christian Graus2-Aug-09 11:45
protectorChristian Graus2-Aug-09 11:45 
AnswerRe: having problems (Public Shared Sub ShowTcpStatistics) Statement cannot within method body. End of method assumed// which is affecting my txtbox.Text Pin
Dave Kreskowiak2-Aug-09 11:46
mveDave Kreskowiak2-Aug-09 11:46 
Generaltxtbox.Text ="" Cannot refer to an instance member of a class from within a shared method or shared member initializerxt without an explicit instance of the class. Pin
that_dude_tj2-Aug-09 12:32
that_dude_tj2-Aug-09 12:32 
GeneralRe: txtbox.Text ="" Cannot refer to an instance member of a class from within a shared method or shared member initializerxt without an explicit instance of the class. Pin
Christian Graus2-Aug-09 13:58
protectorChristian Graus2-Aug-09 13:58 
GeneralRe: txtbox.Text ="" Cannot refer to an instance member of a class from within a shared method or shared member initializerxt without an explicit instance of the class. Pin
nlarson112-Aug-09 16:26
nlarson112-Aug-09 16:26 
GeneralRe: txtbox.Text ="" Cannot refer to an instance member of a class from within a shared method or shared member initializerxt without an explicit instance of the class. Pin
Christian Graus2-Aug-09 16:42
protectorChristian Graus2-Aug-09 16:42 
GeneralRe: txtbox.Text ="" Cannot refer to an instance member of a class from within a shared method or shared member initializerxt without an explicit instance of the class. Pin
nlarson112-Aug-09 17:13
nlarson112-Aug-09 17:13 
GeneralRe: txtbox.Text ="" Cannot refer to an instance member of a class from within a shared method or shared member initializerxt without an explicit instance of the class. Pin
0x3c03-Aug-09 0:57
0x3c03-Aug-09 0:57 
GeneralRe: txtbox.Text ="" Cannot refer to an instance member of a class from within a shared method or shared member initializerxt without an explicit instance of the class. Pin
that_dude_tj2-Aug-09 17:11
that_dude_tj2-Aug-09 17:11 
GeneralRe: txtbox.Text ="" Cannot refer to an instance member of a class from within a shared method or shared member initializerxt without an explicit instance of the class. Pin
Dave Kreskowiak2-Aug-09 16:56
mveDave Kreskowiak2-Aug-09 16:56 
GeneralRe: txtbox.Text ="" Cannot refer to an instance member of a class from within a shared method or shared member initializerxt without an explicit instance of the class. Pin
that_dude_tj2-Aug-09 17:01
that_dude_tj2-Aug-09 17:01 
GeneralRe: txtbox.Text ="" Cannot refer to an instance member of a class from within a shared method or shared member initializerxt without an explicit instance of the class. Pin
Christian Graus2-Aug-09 17:07
protectorChristian Graus2-Aug-09 17:07 
GeneralRe: txtbox.Text ="" Cannot refer to an instance member of a class from within a shared method or shared member initializerxt without an explicit instance of the class. Pin
that_dude_tj2-Aug-09 17:12
that_dude_tj2-Aug-09 17:12 
GeneralRe: txtbox.Text ="" Cannot refer to an instance member of a class from within a shared method or shared member initializerxt without an explicit instance of the class. Pin
Dave Kreskowiak3-Aug-09 2:01
mveDave Kreskowiak3-Aug-09 2:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.