Click here to Skip to main content
15,896,201 members
Home / Discussions / C#
   

C#

 
GeneralRe: Upload file Pin
Polis Pilavas4-May-05 10:59
Polis Pilavas4-May-05 10:59 
GeneralTableLayoutPanel (Whidbey) Pin
Gregory Bush4-May-05 7:18
Gregory Bush4-May-05 7:18 
GeneralRe: TableLayoutPanel (Whidbey) Pin
Judah Gabriel Himango4-May-05 8:14
sponsorJudah Gabriel Himango4-May-05 8:14 
GeneralAppDomain Pin
pgoel764-May-05 6:04
pgoel764-May-05 6:04 
Generalgetting the ONLY the Filename from FileInfo Pin
Green Fuze4-May-05 5:43
Green Fuze4-May-05 5:43 
GeneralRe: getting the ONLY the Filename from FileInfo Pin
Claudio Grazioli4-May-05 5:56
Claudio Grazioli4-May-05 5:56 
GeneralRe: getting the ONLY the Filename from FileInfo Pin
Green Fuze4-May-05 11:32
Green Fuze4-May-05 11:32 
GeneralMy EllipseLabel - wrapping text question Pin
Anonymous4-May-05 5:25
Anonymous4-May-05 5:25 
I wrote my first own control, it derives from Windows.Forms.Control, and it's a simple ellipse label. The code for drawing:

<br />
protected override void OnPaint(PaintEventArgs pe) {<br />
    Graphics g = pe.Graphics;<br />
    Brush foreBrush = new SolidBrush(ForeColor);<br />
    Brush backBrush = new SolidBrush(BackColor);<br />
    g.FillEllipse(backBrush, ClientRectangle);<br />
<br />
    StringFormat fmt = new StringFormat();<br />
    fmt.Alignment = StringAlignment.Center;<br />
    fmt.LineAlignment = StringAlignment.Center;<br />
    g.DrawString(Text, Font, foreBrush, ClientRectangle, fmt);<br />
<br />
    base.OnPaint(pe);<br />
  }<br />
}<br />

The question - how to implement so that the label wraps text if it is to long to fit in a single line?
GeneralRe: My EllipseLabel - wrapping text question Pin
keith maddox4-May-05 9:56
keith maddox4-May-05 9:56 
GeneralRe: My EllipseLabel - wrapping text question Pin
ICustomTypeDescriptor4-May-05 11:00
ICustomTypeDescriptor4-May-05 11:00 
GeneralSMS from a website Pin
Trance Junkie4-May-05 4:15
Trance Junkie4-May-05 4:15 
GeneralRe: SMS from a website Pin
Judah Gabriel Himango4-May-05 8:17
sponsorJudah Gabriel Himango4-May-05 8:17 
GeneralRe: SMS from a website Pin
Shashidharreddy6-May-05 23:15
Shashidharreddy6-May-05 23:15 
GeneralICustomTypeDescriptor - implementation Pin
Anonymous4-May-05 3:45
Anonymous4-May-05 3:45 
GeneralRe: ICustomTypeDescriptor - implementation Pin
Anonymous4-May-05 4:48
Anonymous4-May-05 4:48 
GeneralRe: ICustomTypeDescriptor - implementation Pin
Anonymous4-May-05 5:10
Anonymous4-May-05 5:10 
GeneralRe: ICustomTypeDescriptor - implementation Pin
Mathew Hall4-May-05 15:48
Mathew Hall4-May-05 15:48 
Questionhow to convert text inro rtf and display the same in a richtextbox?? Pin
reachme_saurabh4-May-05 3:27
reachme_saurabh4-May-05 3:27 
AnswerRe: how to convert text inro rtf and display the same in a richtextbox?? Pin
Judah Gabriel Himango4-May-05 4:33
sponsorJudah Gabriel Himango4-May-05 4:33 
GeneralRe: how to convert text inro rtf and display the same in a richtextbox?? Pin
Anonymous4-May-05 20:18
Anonymous4-May-05 20:18 
GeneralRe: how to convert text inro rtf and display the same in a richtextbox?? Pin
Judah Gabriel Himango5-May-05 4:06
sponsorJudah Gabriel Himango5-May-05 4:06 
GeneralDirectShow with C# Pin
rajshukla1234-May-05 3:18
rajshukla1234-May-05 3:18 
GeneralRe: DirectShow with C# Pin
MoustafaS4-May-05 4:09
MoustafaS4-May-05 4:09 
GeneralRe: DirectShow with C# Pin
Judah Gabriel Himango4-May-05 4:32
sponsorJudah Gabriel Himango4-May-05 4:32 
GeneralCustomLabel class deriving from Label and CustomBehaviuor classes Pin
Anonymous4-May-05 2:46
Anonymous4-May-05 2:46 

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.