Click here to Skip to main content
15,892,809 members
Home / Discussions / C#
   

C#

 
QuestionStretch to parent control Pin
Zaegra18-Nov-09 7:19
Zaegra18-Nov-09 7:19 
AnswerRe: Stretch to parent control Pin
LimitedAtonement18-Nov-09 7:44
LimitedAtonement18-Nov-09 7:44 
GeneralRe: Stretch to parent control Pin
Zaegra18-Nov-09 8:34
Zaegra18-Nov-09 8:34 
GeneralRe: Stretch to parent control Pin
Abhishek Sur18-Nov-09 9:49
professionalAbhishek Sur18-Nov-09 9:49 
GeneralRe: Stretch to parent control Pin
0x3c018-Nov-09 10:01
0x3c018-Nov-09 10:01 
AnswerRe: Stretch to parent control Pin
Abhishek Sur18-Nov-09 9:51
professionalAbhishek Sur18-Nov-09 9:51 
GeneralRe: Stretch to parent control Pin
Zaegra18-Nov-09 10:04
Zaegra18-Nov-09 10:04 
AnswerRe: Stretch to parent control Pin
Luc Pattyn18-Nov-09 10:08
sitebuilderLuc Pattyn18-Nov-09 10:08 
Hi,

1.
You don't need GC.Collect(), using it is a bad idea most of the time.
You should however Dispose() of all disposable objects when you no longer need them; prime candidates might be Graphics, Image, Bitmap, Font and then some.

2.
I'm not sure I understand your question. If what you need is a non-functional small Control, that slowly grows, and only becomes functional in its final size, then I suggest you:
- create the final Control on a Panel "panelCanvas" that is NOT shown on your Form;
- turn it into a Bitmap once;
- show an empty Panel "panelEmpty" on your Form, onto which you paint the Bitmap in varying sizes until you reach the final size (use Paint handler, a Windows.Forms.Timer and Panel.Invalidate)
- finally remove panelEmpty and add panelCanvas to Controls.
Of course you should do all of this with a Form that is double-buffered.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages


GeneralRe: Stretch to parent control Pin
Zaegra18-Nov-09 10:45
Zaegra18-Nov-09 10:45 
GeneralRe: Stretch to parent control Pin
LimitedAtonement18-Nov-09 11:12
LimitedAtonement18-Nov-09 11:12 
GeneralRe: Stretch to parent control Pin
Luc Pattyn18-Nov-09 13:42
sitebuilderLuc Pattyn18-Nov-09 13:42 
GeneralRe: Stretch to parent control Pin
Zaegra18-Nov-09 19:23
Zaegra18-Nov-09 19:23 
NewsRe: Stretch to parent control Pin
LimitedAtonement20-Nov-09 6:20
LimitedAtonement20-Nov-09 6:20 
GeneralRe: Stretch to parent control Pin
Luc Pattyn20-Nov-09 7:29
sitebuilderLuc Pattyn20-Nov-09 7:29 
QuestionProgressBar like a ruler Pin
stancrm18-Nov-09 6:31
stancrm18-Nov-09 6:31 
AnswerRe: ProgressBar like a ruler Pin
musefan18-Nov-09 7:02
musefan18-Nov-09 7:02 
AnswerRe: ProgressBar like a ruler Pin
The Man from U.N.C.L.E.18-Nov-09 7:46
The Man from U.N.C.L.E.18-Nov-09 7:46 
QuestionHow to get Caller ID from Tapi3lib? Pin
grefu18-Nov-09 6:02
grefu18-Nov-09 6:02 
AnswerRe: How to get Caller ID from Tapi3lib? Pin
Richard MacCutchan18-Nov-09 11:52
mveRichard MacCutchan18-Nov-09 11:52 
GeneralRe: How to get Caller ID from Tapi3lib? [modified] Pin
grefu18-Nov-09 21:18
grefu18-Nov-09 21:18 
GeneralRe: How to get Caller ID from Tapi3lib? Pin
Richard MacCutchan18-Nov-09 21:45
mveRichard MacCutchan18-Nov-09 21:45 
GeneralRe: How to get Caller ID from Tapi3lib? Pin
grefu19-Nov-09 2:34
grefu19-Nov-09 2:34 
GeneralRe: How to get Caller ID from Tapi3lib? Pin
Richard MacCutchan19-Nov-09 6:28
mveRichard MacCutchan19-Nov-09 6:28 
Questiongraphs for compactframework Pin
benjamin yap18-Nov-09 5:44
benjamin yap18-Nov-09 5:44 
AnswerRe: graphs for compactframework Pin
cdpace18-Nov-09 11:02
cdpace18-Nov-09 11:02 

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.