Click here to Skip to main content
15,907,326 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionTest For Null Pin
JasonD_S3-Aug-09 0:12
JasonD_S3-Aug-09 0:12 
AnswerRe: Test For Null Pin
dan!sh 3-Aug-09 0:21
professional dan!sh 3-Aug-09 0:21 
GeneralRe: Test For Null Pin
JasonD_S3-Aug-09 0:39
JasonD_S3-Aug-09 0:39 
GeneralRe: Test For Null Pin
dan!sh 3-Aug-09 1:01
professional dan!sh 3-Aug-09 1:01 
General[Message Deleted] Pin
Johan Hakkesteegt3-Aug-09 1:05
Johan Hakkesteegt3-Aug-09 1:05 
GeneralRe: Test For Null Pin
JasonD_S3-Aug-09 1:15
JasonD_S3-Aug-09 1:15 
GeneralRe: Test For Null Pin
Johan Hakkesteegt3-Aug-09 1:28
Johan Hakkesteegt3-Aug-09 1:28 
GeneralRe: Test For Null Pin
JasonD_S3-Aug-09 1:55
JasonD_S3-Aug-09 1:55 
AnswerRe: Test For Null Pin
Kschuler3-Aug-09 8:01
Kschuler3-Aug-09 8:01 
QuestionHow do i Multiply Bytes w/o overflow (Like char in c++) ? Pin
Kobi_Z2-Aug-09 21:38
Kobi_Z2-Aug-09 21:38 
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 

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.