Click here to Skip to main content
15,799,186 members
Home / Discussions / C#
   

C#

 
Generalcreating an array of existing WinForm controls Pin
Roman Nurik26-Apr-04 14:48
Roman Nurik26-Apr-04 14:48 
GeneralRe: creating an array of existing WinForm controls Pin
Roman Nurik26-Apr-04 14:51
Roman Nurik26-Apr-04 14:51 
GeneralRe: creating an array of existing WinForm controls Pin
Mike Dimmick27-Apr-04 0:43
Mike Dimmick27-Apr-04 0:43 
GeneralRe: creating an array of existing WinForm controls Pin
Mike Ellison26-Apr-04 18:03
Mike Ellison26-Apr-04 18:03 
GeneralRe: creating an array of existing WinForm controls Pin
Heath Stewart27-Apr-04 5:17
protectorHeath Stewart27-Apr-04 5:17 
GeneralLabel question... Pin
spoon vs fork26-Apr-04 14:47
spoon vs fork26-Apr-04 14:47 
GeneralRe: Label question... Pin
Roman Rodov26-Apr-04 15:55
Roman Rodov26-Apr-04 15:55 
GeneralRe: Label question... Pin
Jay Shankar26-Apr-04 16:43
Jay Shankar26-Apr-04 16:43 
you can achieve this by overriding OnPaint of System.Windows.Forms.Label.
Below code will help you in this direction.

protected override void OnPaint(PaintEventArgs e)<br />
{<br />
	Graphics g=e.Graphics ;<br />
<br />
	StringFormat stringFormat=new StringFormat ();<br />
	stringFormat.Alignment =StringAlignment.Center ;<br />
	stringFormat.Trimming =StringTrimming.None ;<br />
	stringFormat.FormatFlags =StringFormatFlags.DirectionVertical ;<br />
	Brush textBrush=new SolidBrush (this.ForeColor );<br />
	Matrix storeState=g.Transform ;<br />
<br />
	g.RotateTransform(0.0F, MatrixOrder.Append);<br />
	g.TranslateTransform(100.0F, 0.0F, MatrixOrder.Append);<br />
	g.DrawString (this.Text,this.Font ,textBrush,ClientRectangle ,stringFormat );<br />
	g.Transform =storeState;<br />
<br />
}


Do revert back, whether you could achieve the functionality.
(tomorrow and day after tomorrow(28th and 29th) I am on leave)

Regards,

Jay.
GeneralListView and Inserting Subitems Pin
valikac26-Apr-04 13:17
valikac26-Apr-04 13:17 
GeneralRe: ListView and Inserting Subitems Pin
Jon G26-Apr-04 13:59
Jon G26-Apr-04 13:59 
GeneralRe: ListView and Inserting Subitems Pin
valikac26-Apr-04 15:40
valikac26-Apr-04 15:40 
GeneralRe: ListView and Inserting Subitems Pin
osto26-Apr-04 18:17
osto26-Apr-04 18:17 
GeneralRe: ListView and Inserting Subitems Pin
valikac26-Apr-04 19:10
valikac26-Apr-04 19:10 
GeneralUsing Bitmap and got exception in dispose Pin
kobyb26-Apr-04 12:28
kobyb26-Apr-04 12:28 
Generalconditional operator (?:) performance Pin
Anonymous26-Apr-04 11:53
Anonymous26-Apr-04 11:53 
GeneralRe: conditional operator (?:) performance Pin
Daniel Turini26-Apr-04 12:21
Daniel Turini26-Apr-04 12:21 
GeneralRe: conditional operator (?:) performance Pin
Mike Dimmick27-Apr-04 0:53
Mike Dimmick27-Apr-04 0:53 
GeneralRe: conditional operator (?:) performance Pin
Anonymous27-Apr-04 3:49
Anonymous27-Apr-04 3:49 
GeneralDataGrid row: RowState unchange problem Pin
Chris#26-Apr-04 11:47
Chris#26-Apr-04 11:47 
GeneralRe: DataGrid row: RowState unchange problem Pin
Heath Stewart26-Apr-04 12:50
protectorHeath Stewart26-Apr-04 12:50 
GeneralRe: DataGrid row: RowState unchange problem Pin
Chris#27-Apr-04 5:49
Chris#27-Apr-04 5:49 
GeneralGarbage collector Pin
Ruchi Gupta26-Apr-04 11:39
Ruchi Gupta26-Apr-04 11:39 
GeneralRe: Garbage collector Pin
SJ_Phoenix26-Apr-04 20:16
SJ_Phoenix26-Apr-04 20:16 
GeneralRe: Garbage collector Pin
Stefan Troschuetz26-Apr-04 21:40
Stefan Troschuetz26-Apr-04 21:40 
GeneralRe: Garbage collector Pin
Mike Dimmick27-Apr-04 1:04
Mike Dimmick27-Apr-04 1:04 

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.