Click here to Skip to main content
15,887,135 members
Home / Discussions / C#
   

C#

 
AnswerRe: Load image that really are 2 images into imagelist Pin
Mark Salsbery31-May-11 11:19
Mark Salsbery31-May-11 11:19 
GeneralRe: Load image that really are 2 images into imagelist Pin
manchukuo31-May-11 11:28
manchukuo31-May-11 11:28 
Questionhow to put imagens randomly? Pin
Rapsten31-May-11 5:56
Rapsten31-May-11 5:56 
AnswerRe: how to put imagens randomly? Pin
RobCroll31-May-11 13:15
RobCroll31-May-11 13:15 
QuestionRectanlgeF.Parse(string s) extension method? Pin
Chesnokov Yuriy31-May-11 1:58
professionalChesnokov Yuriy31-May-11 1:58 
AnswerRe: RectanlgeF.Parse(string s) extension method? Pin
Not Active31-May-11 2:03
mentorNot Active31-May-11 2:03 
AnswerRe: RectanlgeF.Parse(string s) extension method? Pin
Chesnokov Yuriy31-May-11 2:22
professionalChesnokov Yuriy31-May-11 2:22 
AnswerRe: RectanlgeF.Parse(string s) extension method? [modified] Pin
musefan31-May-11 2:26
musefan31-May-11 2:26 
maybe...

public static RectangleF Parse(this RectangleF rect, string s)
{
//do something with s
}


very easy to Google this one[^]


EDIT: I got this one a bit wrong. I think thou you just need to return a new instance that is parsed

public static RectangleF Parse(string s)
{
    RectangleF result = new RectangleF();
    //apply parsed values
    return result;
}


In use...

RectangleF rect = RectangleF.Parse("0,0,100,50");


...but as no one else has posted, maybe I have missed the point again
I may or may not be responsible for my own actions
modified on Tuesday, May 31, 2011 11:40 AM

GeneralRe: RectanlgeF.Parse(string s) extension method? Pin
Pete O'Hanlon31-May-11 2:33
mvePete O'Hanlon31-May-11 2:33 
GeneralRe: RectanlgeF.Parse(string s) extension method? Pin
musefan31-May-11 2:42
musefan31-May-11 2:42 
AnswerRe: RectanlgeF.Parse(string s) extension method? Pin
Luc Pattyn31-May-11 2:42
sitebuilderLuc Pattyn31-May-11 2:42 
AnswerRe: RectanlgeF.Parse(string s) extension method? Pin
Chesnokov Yuriy31-May-11 2:47
professionalChesnokov Yuriy31-May-11 2:47 
AnswerRe: RectanlgeF.Parse(string s) extension method? Pin
Luc Pattyn31-May-11 2:55
sitebuilderLuc Pattyn31-May-11 2:55 
GeneralRe: RectanlgeF.Parse(string s) extension method? Pin
BobJanova31-May-11 3:04
BobJanova31-May-11 3:04 
AnswerRe: RectanlgeF.Parse(string s) extension method? Pin
Luc Pattyn31-May-11 4:00
sitebuilderLuc Pattyn31-May-11 4:00 
GeneralRe: RectanlgeF.Parse(string s) extension method? Pin
BobJanova31-May-11 23:09
BobJanova31-May-11 23:09 
AnswerRe: RectanlgeF.Parse(string s) extension method? Pin
Luc Pattyn1-Jun-11 0:17
sitebuilderLuc Pattyn1-Jun-11 0:17 
AnswerRe: RectanlgeF.Parse(string s) extension method? Pin
Shameel31-May-11 3:05
professionalShameel31-May-11 3:05 
GeneralRe: RectanlgeF.Parse(string s) extension method? Pin
Pete O'Hanlon31-May-11 3:39
mvePete O'Hanlon31-May-11 3:39 
QuestionClicking a button with SendMessage [modified] Pin
musefan30-May-11 23:36
musefan30-May-11 23:36 
AnswerRe: Clicking a button with SendMessage Pin
Shameel31-May-11 0:15
professionalShameel31-May-11 0:15 
GeneralRe: Clicking a button with SendMessage Pin
musefan31-May-11 0:42
musefan31-May-11 0:42 
GeneralRe: Clicking a button with SendMessage Pin
Shameel31-May-11 0:55
professionalShameel31-May-11 0:55 
GeneralRe: Clicking a button with SendMessage Pin
Shameel31-May-11 0:58
professionalShameel31-May-11 0:58 
GeneralRe: Clicking a button with SendMessage Pin
musefan31-May-11 2:22
musefan31-May-11 2:22 

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.