Click here to Skip to main content
15,891,943 members
Home / Discussions / C#
   

C#

 
QuestionRe: Casting Pin
jojoba20108-Feb-10 21:06
jojoba20108-Feb-10 21:06 
AnswerRe: Casting Pin
SeMartens8-Feb-10 21:09
SeMartens8-Feb-10 21:09 
QuestionRe: Casting Pin
jojoba20108-Feb-10 21:12
jojoba20108-Feb-10 21:12 
AnswerRe: Casting Pin
SeMartens8-Feb-10 21:15
SeMartens8-Feb-10 21:15 
AnswerRe: Casting Pin
AspDotNetDev8-Feb-10 23:14
protectorAspDotNetDev8-Feb-10 23:14 
AnswerRe: Casting Pin
Jaime Olivares8-Feb-10 21:06
Jaime Olivares8-Feb-10 21:06 
QuestionRe: Casting Pin
jojoba20108-Feb-10 21:10
jojoba20108-Feb-10 21:10 
AnswerRe: Casting Pin
Richard MacCutchan8-Feb-10 21:30
mveRichard MacCutchan8-Feb-10 21:30 
jojoba2010 wrote:
I have string and want to cast it to (color,point,font,...)


You cannot do this, a string is just a collection of characters. If you want to create some other object from it then you need to parse the string, extracting the relevant fields and create new objects based on that data.

Read the documentation on what casting is, it does not convert one object to another.
MVP 2010 - are they mad?

GeneralRe: Casting Pin
ThatsAlok9-Feb-10 0:17
ThatsAlok9-Feb-10 0:17 
GeneralRe: Casting Pin
Richard MacCutchan9-Feb-10 0:18
mveRichard MacCutchan9-Feb-10 0:18 
AnswerRe: Casting Pin
ThatsAlok9-Feb-10 0:16
ThatsAlok9-Feb-10 0:16 
AnswerRe: Casting Pin
V.8-Feb-10 21:24
professionalV.8-Feb-10 21:24 
AnswerRe: Casting Pin
AspDotNetDev8-Feb-10 23:10
protectorAspDotNetDev8-Feb-10 23:10 
QuestionHow to get DB Backup & Restore in Client machine Pin
Sivaooty8-Feb-10 20:03
Sivaooty8-Feb-10 20:03 
AnswerRe: How to get DB Backup & Restore in Client machine Pin
Gaurav Dudeja India8-Feb-10 20:06
Gaurav Dudeja India8-Feb-10 20:06 
GeneralRe: How to get DB Backup & Restore in Client machine Pin
Sivaooty8-Feb-10 22:17
Sivaooty8-Feb-10 22:17 
Questionstring to Font [modified] Pin
jojoba20108-Feb-10 19:57
jojoba20108-Feb-10 19:57 
AnswerRe: string to Font Pin
SeMartens8-Feb-10 20:49
SeMartens8-Feb-10 20:49 
QuestionNHibernate problem with inserting data: error performing isolated work [modified] Pin
dift8-Feb-10 19:33
dift8-Feb-10 19:33 
AnswerRe: NHibernate problem with inserting data: error performing isolated work Pin
dift8-Feb-10 19:50
dift8-Feb-10 19:50 
Questiongetcellbounds() of datagridviewcheckboxcell Pin
prithaa8-Feb-10 19:32
prithaa8-Feb-10 19:32 
Questionshell extention problem on 64 bit PC Pin
Nematjon Rahmanov8-Feb-10 17:38
Nematjon Rahmanov8-Feb-10 17:38 
AnswerDon't point back to a previous post Pin
Not Active8-Feb-10 17:47
mentorNot Active8-Feb-10 17:47 
GeneralRe: Don't point back to a previous post Pin
Nematjon Rahmanov8-Feb-10 19:11
Nematjon Rahmanov8-Feb-10 19:11 
AnswerRe: shell extention problem on 64 bit PC Pin
Dave Kreskowiak9-Feb-10 2:30
mveDave Kreskowiak9-Feb-10 2:30 

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.