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

Visual Basic

 
GeneralRe: Word content not Properly shown in RichTextbox Pin
Dave Kreskowiak19-Feb-08 3:47
mveDave Kreskowiak19-Feb-08 3:47 
QuestionDatabinding slow [modified] Pin
Gr1mR33p3r18-Feb-08 19:44
Gr1mR33p3r18-Feb-08 19:44 
GeneralRe: Databinding slow Pin
Dave Kreskowiak19-Feb-08 3:45
mveDave Kreskowiak19-Feb-08 3:45 
Generalload controls in a tab control at runtime Pin
AAGTHosting18-Feb-08 11:39
AAGTHosting18-Feb-08 11:39 
GeneralRe: load controls in a tab control at runtime Pin
Christian Graus18-Feb-08 15:44
protectorChristian Graus18-Feb-08 15:44 
GeneralRe: load controls in a tab control at runtime Pin
AAGTHosting18-Feb-08 17:37
AAGTHosting18-Feb-08 17:37 
GeneralRe: load controls in a tab control at runtime Pin
Christian Graus18-Feb-08 17:38
protectorChristian Graus18-Feb-08 17:38 
GeneralTrouble with ChangeStartMode in InvokeMethod Pin
Matthew Calabresi18-Feb-08 9:24
Matthew Calabresi18-Feb-08 9:24 
Here's what I'm trying to do:
- Write a VB.NET app which will set a specific service to automatically start if it's not already. I know that there's an article on codeproject.com on how to do this in C#, but either I cannot translate it, or there's something else going on.

(Here's the link to the codeproject.com article: http://www.codeproject.com/KB/system/extendservicecontroller.aspx#WMIArch[^]

Anyway, here's my code:
Dim path As String
               Dim result As Integer

               path = "\\" + Me.MachineName + "\root\cimv2:Win32_Service.Name=""" + Me.ServiceName + """"

               Dim ManagementObj As New ManagementObject(path)

               Dim Parameters(1) As Object

               Parameters(0) = value.ToString()

               Try
                   result = ManagementObj.InvokeMethod("ChangeStartMode", Parameters)
               Catch ex As Exception
                   MessageBox.Show("Error Changing Start Mode", result.ToString(), MessageBoxButtons.OK)

               End Try


...and it's not working. I don't know how to see the result code that ChangeStartMode is returning.

TIA for any help rendered.

-MC-
GeneralNested DataGridView Problem Pin
ccotton33318-Feb-08 8:17
ccotton33318-Feb-08 8:17 
Questioncall DB2 stored procedure? Pin
jchigg200018-Feb-08 4:33
jchigg200018-Feb-08 4:33 
QuestionIntegrating flash 8 to VB.NET Pin
rcryptified18-Feb-08 4:29
rcryptified18-Feb-08 4:29 
GeneralRe: Integrating flash 8 to VB.NET Pin
Dave Kreskowiak19-Feb-08 3:29
mveDave Kreskowiak19-Feb-08 3:29 
Questionhow do you create a primary key through code in vb.net Pin
imonfiredammit18-Feb-08 4:26
imonfiredammit18-Feb-08 4:26 
AnswerRe: how do you create a primary key through code in vb.net Pin
cstrader23218-Feb-08 5:26
cstrader23218-Feb-08 5:26 
GeneralRe: how do you create a primary key through code in vb.net Pin
imonfiredammit18-Feb-08 7:33
imonfiredammit18-Feb-08 7:33 
AnswerRe: how do you create a primary key through code in vb.net Pin
Dave Kreskowiak19-Feb-08 3:24
mveDave Kreskowiak19-Feb-08 3:24 
QuestionHow to extract the list of exe paths of all installed programs(WIN XP) Pin
Gjm18-Feb-08 3:27
Gjm18-Feb-08 3:27 
GeneralRe: How to extract the list of exe paths of all installed programs(WIN XP) Pin
Dave Kreskowiak19-Feb-08 3:19
mveDave Kreskowiak19-Feb-08 3:19 
Generalrandom numbers Pin
bapu288918-Feb-08 3:19
bapu288918-Feb-08 3:19 
GeneralRe: random numbers Pin
CKnig18-Feb-08 3:58
CKnig18-Feb-08 3:58 
GeneralRe: random numbers Pin
bapu288918-Feb-08 4:53
bapu288918-Feb-08 4:53 
GeneralRe: random numbers Pin
Guffa18-Feb-08 9:41
Guffa18-Feb-08 9:41 
GeneralRe: random numbers Pin
bapu288919-Feb-08 7:08
bapu288919-Feb-08 7:08 
GeneralRe: random numbers Pin
Guffa19-Feb-08 9:52
Guffa19-Feb-08 9:52 
GeneralRe: random numbers Pin
bapu288920-Feb-08 8:26
bapu288920-Feb-08 8:26 

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.