Click here to Skip to main content
15,892,965 members
Home / Discussions / C#
   

C#

 
GeneralRe: Extracting a block of text from a line Pin
Muammar©16-Dec-08 23:15
Muammar©16-Dec-08 23:15 
GeneralRe: Extracting a block of text from a line Pin
#realJSOP17-Dec-08 0:31
mve#realJSOP17-Dec-08 0:31 
QuestionEnum problem in PropertyGrid Pin
Xmen Real 16-Dec-08 17:56
professional Xmen Real 16-Dec-08 17:56 
AnswerRe: Enum problem in PropertyGrid Pin
Lev Danielyan16-Dec-08 18:55
Lev Danielyan16-Dec-08 18:55 
GeneralRe: Enum problem in PropertyGrid Pin
Xmen Real 16-Dec-08 18:59
professional Xmen Real 16-Dec-08 18:59 
AnswerRe: Enum problem in PropertyGrid Pin
Lev Danielyan16-Dec-08 19:10
Lev Danielyan16-Dec-08 19:10 
GeneralRe: Enum problem in PropertyGrid Pin
Xmen Real 16-Dec-08 19:19
professional Xmen Real 16-Dec-08 19:19 
GeneralRe: Enum problem in PropertyGrid Pin
Lev Danielyan16-Dec-08 19:57
Lev Danielyan16-Dec-08 19:57 
Xmen wrote:
nope, you cannot Convert direct from object to int32 AFAIK because its type string...


It is not string in your code, it is object. Convert.Toint32 has an overloaded version to get object, even if it didn't it will work if you have strings or any other types that toint32 "understands".

Xmen wrote:
what you mean by works great ? doest it shows the selected enum or still blank ?


When I ran you code the current selection was blank, but it wouldn't let me choose any other option (when i was clicking on any combo item it wasn't "fixing" it as current selection), in the code I posted the initial selection was also blank but it was keeping the selection from combo items. Isn't it what you wanted?

Regards,
Lev

GeneralRe: Enum problem in PropertyGrid Pin
Xmen Real 16-Dec-08 20:02
professional Xmen Real 16-Dec-08 20:02 
GeneralRe: Enum problem in PropertyGrid Pin
Lev Danielyan16-Dec-08 20:14
Lev Danielyan16-Dec-08 20:14 
GeneralRe: Enum problem in PropertyGrid Pin
Xmen Real 16-Dec-08 20:18
professional Xmen Real 16-Dec-08 20:18 
GeneralRe: Enum problem in PropertyGrid Pin
Xmen Real 16-Dec-08 20:37
professional Xmen Real 16-Dec-08 20:37 
GeneralRe: Enum problem in PropertyGrid Pin
Lev Danielyan16-Dec-08 21:26
Lev Danielyan16-Dec-08 21:26 
GeneralRe: Enum problem in PropertyGrid Pin
Xmen Real 17-Dec-08 1:49
professional Xmen Real 17-Dec-08 1:49 
GeneralRe: Enum problem in PropertyGrid Pin
Lev Danielyan17-Dec-08 2:13
Lev Danielyan17-Dec-08 2:13 
GeneralRe: Enum problem in PropertyGrid Pin
Xmen Real 17-Dec-08 2:16
professional Xmen Real 17-Dec-08 2:16 
GeneralRe: Enum problem in PropertyGrid Pin
Lev Danielyan16-Dec-08 19:59
Lev Danielyan16-Dec-08 19:59 
QuestionProblem using Process.Start("notepad.exe") ... Process (notepad) is launched with no appearance of notepad! Pin
fulbright16-Dec-08 17:17
fulbright16-Dec-08 17:17 
AnswerRe: Problem using Process.Start("notepad.exe") ... Process (notepad) is launched with no appearance of notepad! Pin
Expert Coming16-Dec-08 17:22
Expert Coming16-Dec-08 17:22 
GeneralRe: Problem using Process.Start("notepad.exe") ... Process (notepad) is launched with no appearance of notepad! Pin
fulbright16-Dec-08 17:56
fulbright16-Dec-08 17:56 
AnswerRe: Problem using Process.Start("notepad.exe") ... Process (notepad) is launched with no appearance of notepad! Pin
Dave Kreskowiak16-Dec-08 17:34
mveDave Kreskowiak16-Dec-08 17:34 
GeneralRe: Problem using Process.Start("notepad.exe") ... Process (notepad) is launched with no appearance of notepad! Pin
fulbright16-Dec-08 18:06
fulbright16-Dec-08 18:06 
GeneralRe: Problem using Process.Start("notepad.exe") ... Process (notepad) is launched with no appearance of notepad! Pin
Dave Kreskowiak17-Dec-08 2:06
mveDave Kreskowiak17-Dec-08 2:06 
QuestionDetecting a USB drive arrival/removal, whose Drive Letter has been removed Pin
G. Myers16-Dec-08 11:19
G. Myers16-Dec-08 11:19 
QuestionClass inference Pin
DwR16-Dec-08 9:28
DwR16-Dec-08 9:28 

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.