Click here to Skip to main content
15,886,110 members
Home / Discussions / C#
   

C#

 
GeneralRe: Hiding Form on Startup Pin
Adam Durity31-Jul-03 8:35
Adam Durity31-Jul-03 8:35 
GeneralAutoScroll jumping to 0 Pin
S O S31-Jul-03 5:01
S O S31-Jul-03 5:01 
GeneralRe: AutoScroll jumping to 0 Pin
misterbear31-Jul-03 22:59
misterbear31-Jul-03 22:59 
GeneralListView and user click Pin
aeros31-Jul-03 4:21
aeros31-Jul-03 4:21 
GeneralRe: ListView and user click Pin
Rampas Tomas31-Jul-03 17:41
Rampas Tomas31-Jul-03 17:41 
GeneralRe: ListView and user click Pin
aeros31-Jul-03 22:44
aeros31-Jul-03 22:44 
GeneralRe: ListView and user click Pin
Rampas Tomas1-Aug-03 3:31
Rampas Tomas1-Aug-03 3:31 
Generalscaling text to fit into rectangle Pin
misterbear31-Jul-03 4:13
misterbear31-Jul-03 4:13 
I have a little problem...

I have a panel with controls on it, that i want to draw to the printer. the controls consist of smaller panels with text inside them, and listboxes with lines of text inside as well.
(class diagram editor)

Now the problem is that when I print this i scale it to fit to A4 (or whatever specified) paper size. No problem scaling a simple bounding rectangle to the textboxes and listboxes, but now I want the text to be printed inside these components as well, so the print-out will appear as on screen. How can i fit the text into these boxes, i.e. apply a scaling to the bounding rectangle of the text?

I have thought of two things:
Either change font size until something that fits is found
OR
Draw the text to a bitmap and scale this.

Is there any 'standard' way of doing things like this? Any suggestions?

Generalhelp!! about the ListView Pin
vvvmmmvvv31-Jul-03 4:10
vvvmmmvvv31-Jul-03 4:10 
GeneralRe: help!! about the ListView Pin
Rampas Tomas31-Jul-03 17:10
Rampas Tomas31-Jul-03 17:10 
GeneralConvert string into expression Pin
JM_FL31-Jul-03 3:22
JM_FL31-Jul-03 3:22 
GeneralRe: Convert string into expression Pin
Nick Seng31-Jul-03 15:34
Nick Seng31-Jul-03 15:34 
Generalwindows service written in C++, COM objects, call from C# Pin
alma31-Jul-03 3:11
alma31-Jul-03 3:11 
GeneralRe: windows service written in C++, COM objects, call from C# Pin
alma31-Jul-03 23:20
alma31-Jul-03 23:20 
Generalrunning function in Form from UserControl Pin
Hovik Melkomian31-Jul-03 1:23
Hovik Melkomian31-Jul-03 1:23 
GeneralRe: running function in Form from UserControl Pin
Rampas Tomas31-Jul-03 2:09
Rampas Tomas31-Jul-03 2:09 
GeneralRe: running function in Form from UserControl Pin
Hovik Melkomian3-Aug-03 2:40
Hovik Melkomian3-Aug-03 2:40 
GeneralRe: running function in Form from UserControl Pin
Rampas Tomas3-Aug-03 21:34
Rampas Tomas3-Aug-03 21:34 
GeneralRe: running function in Form from UserControl Pin
Hovik Melkomian4-Aug-03 2:54
Hovik Melkomian4-Aug-03 2:54 
GeneralRe: running function in Form from UserControl Pin
Rampas Tomas4-Aug-03 3:38
Rampas Tomas4-Aug-03 3:38 
GeneralRe: running function in Form from UserControl Pin
Hovik Melkomian4-Aug-03 3:53
Hovik Melkomian4-Aug-03 3:53 
GeneralRe: running function in Form from UserControl Pin
Hovik Melkomian4-Aug-03 3:22
Hovik Melkomian4-Aug-03 3:22 
GeneralRe: running function in Form from UserControl Pin
Rampas Tomas4-Aug-03 3:48
Rampas Tomas4-Aug-03 3:48 
GeneralRe: running function in Form from UserControl Pin
Hovik Melkomian4-Aug-03 4:13
Hovik Melkomian4-Aug-03 4:13 
GeneralRe: running function in Form from UserControl Pin
Hovik Melkomian16-Aug-03 5:28
Hovik Melkomian16-Aug-03 5: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.