Click here to Skip to main content
15,919,479 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionRun Time Design Image Pin
Anubhava Dimri23-Aug-09 19:31
Anubhava Dimri23-Aug-09 19:31 
AnswerRe: Run Time Design Image Pin
Christian Graus23-Aug-09 21:22
protectorChristian Graus23-Aug-09 21:22 
GeneralRe: Run Time Design Image Pin
Dave Kreskowiak24-Aug-09 3:35
mveDave Kreskowiak24-Aug-09 3:35 
GeneralRe: Run Time Design Image Pin
Nagy Vilmos24-Aug-09 3:59
professionalNagy Vilmos24-Aug-09 3:59 
AnswerRe: Run Time Design Image Pin
Luc Pattyn24-Aug-09 5:59
sitebuilderLuc Pattyn24-Aug-09 5:59 
Questionhow to mention paper size in pragmatically ? [modified] Pin
JC.KaNNaN23-Aug-09 19:29
JC.KaNNaN23-Aug-09 19:29 
QuestionServices Management Visual Basic Pin
Dennis Huisman23-Aug-09 0:12
Dennis Huisman23-Aug-09 0:12 
AnswerRe: Services Management Visual Basic Pin
Luc Pattyn23-Aug-09 0:51
sitebuilderLuc Pattyn23-Aug-09 0:51 
Hi,

when getting info from WMI one tends to call ToString to show it;
in VB.NET this isn't even necessary, it will happen implicitly.
When setting info through WMI the type must be correct, StartMode isn't a string, it is a ServiceStartMode value.

Hence:
1. add a reference to System.ServiceProcess
2. do something like (not tested):

ServiceStartMode mode=ServiceStartMode.Parse(Me.cbStartMode.Text)
ob.SetPropertyValue("StartMode", mode)


alternatively add real ServiceStartMode values to the combobox, that would avoid the parsing.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.

GeneralRe: Services Management Visual Basic Pin
Dennis Huisman23-Aug-09 20:31
Dennis Huisman23-Aug-09 20:31 
GeneralRe: Services Management Visual Basic Pin
Dennis Huisman1-Sep-09 4:54
Dennis Huisman1-Sep-09 4:54 
QuestionVb 6 and Crystal Reports 8 Pin
sivaraman_sankaranarayanan22-Aug-09 21:27
sivaraman_sankaranarayanan22-Aug-09 21:27 
AnswerRe: Vb 6 and Crystal Reports 8 Pin
Christian Graus23-Aug-09 1:14
protectorChristian Graus23-Aug-09 1:14 
AnswerRe: Vb 6 and Crystal Reports 8 Pin
εїзεїзεїз23-Aug-09 1:45
εїзεїзεїз23-Aug-09 1:45 
QuestionHow do I programmatically add data to a report - and how do I draw the report? Pin
BluesEnd22-Aug-09 17:35
BluesEnd22-Aug-09 17:35 
AnswerRe: How do I programmatically add data to a report - and how do I draw the report? Pin
Mycroft Holmes22-Aug-09 18:15
professionalMycroft Holmes22-Aug-09 18:15 
GeneralRe: How do I programmatically add data to a report - and how do I draw the report? Pin
BluesEnd23-Aug-09 3:09
BluesEnd23-Aug-09 3:09 
GeneralRe: How do I programmatically add data to a report - and how do I draw the report? Pin
Mycroft Holmes23-Aug-09 14:13
professionalMycroft Holmes23-Aug-09 14:13 
QuestionGet Picture if background is transparent Pin
Anubhava Dimri21-Aug-09 21:51
Anubhava Dimri21-Aug-09 21:51 
AnswerRe: Get Picture if background is transparent Pin
Eddy Vluggen22-Aug-09 2:17
professionalEddy Vluggen22-Aug-09 2:17 
GeneralRe: Get Picture if background is transparent Pin
Anubhava Dimri22-Aug-09 2:45
Anubhava Dimri22-Aug-09 2:45 
GeneralRe: Get Picture if background is transparent Pin
Eddy Vluggen22-Aug-09 3:22
professionalEddy Vluggen22-Aug-09 3:22 
GeneralRe: Get Picture if background is transparent Pin
Anubhava Dimri23-Aug-09 18:54
Anubhava Dimri23-Aug-09 18:54 
GeneralRe: Get Picture if background is transparent Pin
Eddy Vluggen23-Aug-09 21:06
professionalEddy Vluggen23-Aug-09 21:06 
QuestionCheck box Error Message Pin
Bob Beaubien21-Aug-09 16:51
Bob Beaubien21-Aug-09 16:51 
AnswerRe: Check box Error Message Pin
Mycroft Holmes21-Aug-09 17:38
professionalMycroft Holmes21-Aug-09 17:38 

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.