Click here to Skip to main content
16,004,991 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Control 'tabbing" problem Pin
Syed Abdul Khader28-Apr-04 0:25
Syed Abdul Khader28-Apr-04 0:25 
GeneralLogin Windows Programmatically Pin
Anonymous27-Apr-04 2:46
Anonymous27-Apr-04 2:46 
GeneralRe: Login Windows Programmatically Pin
Dave Kreskowiak28-Apr-04 1:30
mveDave Kreskowiak28-Apr-04 1:30 
Generalworking with MDI child forms ... Pin
Mohan G26-Apr-04 21:42
Mohan G26-Apr-04 21:42 
GeneralWindows Services Pin
Shenthil26-Apr-04 20:35
Shenthil26-Apr-04 20:35 
GeneralRe: Windows Services Pin
Dave Kreskowiak27-Apr-04 1:54
mveDave Kreskowiak27-Apr-04 1:54 
GeneralRe: Windows Services Pin
Shenthil27-Apr-04 2:51
Shenthil27-Apr-04 2:51 
GeneralRe: Windows Services Pin
Dave Kreskowiak27-Apr-04 3:07
mveDave Kreskowiak27-Apr-04 3:07 
VB6 with WMI: This will stop a service and it's dependants:
'  The "." mean the local computer.
strComputer = "."
 
'  We're going to stop the NetDDE service.
'  First, get the list of dependent services and stop them one by one.
Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colServiceList = objWMIService.ExecQuery("Associators of {Win32_Service.Name='NetDDE'} Where AssocClass=Win32_DependentService Role=Antecedent")
For each objService in colServiceList
	objService.StopService()
Next
 
'  We just told the dependent services to stop.  Now we'll wait about 20 seconds
'  before we tell the NetDDE service to stop.
Wscript.Sleep 20000
 
'  ...and, finally, stop the NetDDE service.
Set colServiceList = objWMIService.ExecQuery("Select * from Win32_Service where Name='NetDDE'")
For each objService in colServiceList
	errReturn = objService.StopService()
Next



RageInTheMachine9532
GeneralIRDA Pin
monn26-Apr-04 16:15
monn26-Apr-04 16:15 
GeneralRe: IRDA Pin
Dave Kreskowiak27-Apr-04 1:43
mveDave Kreskowiak27-Apr-04 1:43 
GeneralRe: IRDA Pin
monn27-Apr-04 5:12
monn27-Apr-04 5:12 
GeneralRe: IRDA Pin
Dave Kreskowiak27-Apr-04 7:35
mveDave Kreskowiak27-Apr-04 7:35 
GeneralRe: IRDA Pin
monn27-Apr-04 14:34
monn27-Apr-04 14:34 
GeneralRe: IRDA Pin
Dave Kreskowiak27-Apr-04 16:48
mveDave Kreskowiak27-Apr-04 16:48 
GeneralClosing All Child Forms Pin
LaptopBoy31126-Apr-04 12:33
LaptopBoy31126-Apr-04 12:33 
GeneralRe: Closing All Child Forms Pin
Dave Kreskowiak26-Apr-04 14:52
mveDave Kreskowiak26-Apr-04 14:52 
GeneralType casting in VB Pin
lnong26-Apr-04 11:19
lnong26-Apr-04 11:19 
GeneralRe: Type casting in VB Pin
Dave Kreskowiak26-Apr-04 11:45
mveDave Kreskowiak26-Apr-04 11:45 
GeneralVB.net App on absolute top Pin
QazYseult26-Apr-04 8:23
QazYseult26-Apr-04 8:23 
GeneralRe: VB.net App on absolute top Pin
Dave Kreskowiak26-Apr-04 12:00
mveDave Kreskowiak26-Apr-04 12:00 
GeneralRe: VB.net App on absolute top Pin
QazYseult26-Apr-04 18:57
QazYseult26-Apr-04 18:57 
GeneralProperty page Pin
I_Need_ Help26-Apr-04 5:59
sussI_Need_ Help26-Apr-04 5:59 
GeneralVB.NET Standard Pin
Richard Day26-Apr-04 5:15
Richard Day26-Apr-04 5:15 
GeneralRe: VB.NET Standard Pin
Dave Kreskowiak26-Apr-04 6:28
mveDave Kreskowiak26-Apr-04 6:28 
Generalprocesses and windows services Pin
stuartco00726-Apr-04 1:45
stuartco00726-Apr-04 1:45 

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.