Click here to Skip to main content
15,893,381 members
Home / Discussions / C#
   

C#

 
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 
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 
Lev Danielyan wrote:
I still don't get why are you getting the internal data via ToString.

hehe because you didnt read code carefully, the code needs to rip one char from string then convert it to int then Enum. eg here is my string "1234"

i dont need 1234 as number, i'll need 1, 2, 3 and 4, so without converting it to string it wont happen. And i use this.ToString() because its same as data[..............].ToString(), i didnt use it because the line will be larger because i use some calculation to get the index.eg.

Override ToString()
{
return data[long .............. calculation].ToString();
}


Now which is better in appearing

Convert.ToIn32(data[long .............. calculation].ToString().Substring(0,1)); // long calculation again, breaking OOPS rule
or
Convert.ToIn32(this.ToString().Substring(0,1));

both does same, just last one calls one more method that is this.ToString() and i dont think its a bad idea

hope you got me Wink | ;)

TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i’TV.C\y<pŠjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can

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 
AnswerRe: Class inference Pin
Christian Graus16-Dec-08 10:00
protectorChristian Graus16-Dec-08 10:00 
AnswerRe: Class inference Pin
Wendelius16-Dec-08 11:47
mentorWendelius16-Dec-08 11:47 
AnswerRe: Class inference Pin
Chamadness16-Dec-08 20:53
Chamadness16-Dec-08 20:53 
QuestionProblem drawing shapes when form is clicked Pin
SilentCodingOne16-Dec-08 8:42
SilentCodingOne16-Dec-08 8:42 
AnswerRe: Problem drawing shapes when form is clicked Pin
Christian Graus16-Dec-08 8:51
protectorChristian Graus16-Dec-08 8:51 
GeneralRe: Problem drawing shapes when form is clicked Pin
SilentCodingOne16-Dec-08 10:28
SilentCodingOne16-Dec-08 10: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.