msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ServiceController Example Needed in VB 2005

 
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Syntax
Author Message
Brauck-man



Joined: 04 Oct 2007
Posts: 1

PostPosted: Sun Jun 03, 2007 7:51 pm    Post subject: ServiceController Example Needed in VB 2005 Reply with quote

Hello all. I am relearning my VB and was trying to write a program
to
stop and start one specific service.

I have been all over the place looking for code samples but they all
seem to want to use a listbox interface to let you choose the
service.


All I want is to stop and start one service that I define
programatically.


Does anyone have a quick sample on how to do this?


Much appreciated.


Craig

Archived from group: microsoft>public>vb>syntax
Back to top
View user's profile Send private message
Bob Butler



Joined: 04 Oct 2007
Posts: 1081

PostPosted: Sun Jun 03, 2007 1:34 pm    Post subject: Re: ServiceController Example Needed in VB 2005 Reply with quote

"Brauck-man" wrote in message @p77g2000hsh.googlegroups.com...
> Hello all. I am relearning my VB

VB 2005 is not the same as VB

--
You need to ask in a newsgroup with "dotnet" in the name. This group id for
VB 6.0 and earlier and does not include VB.Net or VB 200x.

Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
COMPUTER NAME (ID) needed... I have been trying for quite some time now to determine how to get the COMPUTER NAME or ID. I am using Visual Basic 5.0 - which seems to avoid the whole concept. If anyone can help me with this your assistance will be greatly appreciated.

help needed with syntax .a.value = "!"&arfields(i).name i need help on the way to do this before i use for exporting to excel the field ex. 15).value = !placa i have all data in an array and i want to use like this for x = 1 to 17 15).value = "!"&ar

Pivot Table Macro Code Needed I have used the Wizard to create a pivot table. I was unable to find how to create two column headings. I can get the wizard to use either 'Account ID' or 'Description' but NOT both. Can someone suggest the macro code that would add 'Description' to an ex

VB 2005 question I am trying to use the (using VB 2005) to update five tables (one at a time) depicted in five DataGridViews (one table on each TabPage). Each table loads into its DataGridView properly. The "MyEray" table will update but all others recei

VB 2005 - Binding Source question VB Gerus, I am new to VB 2005 and am receiving the "Update requires a valid UpdateCommand when passed DataRow collection with modified rows." message tied to the TableAdapter line when trying to save data modified in a DataGridView. MyEray is the table n
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Syntax All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group