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

C#

 
GeneralUpdate assembly reference Pin
paulb5-Apr-04 14:39
paulb5-Apr-04 14:39 
GeneralRe: Update assembly reference Pin
Heath Stewart5-Apr-04 17:52
protectorHeath Stewart5-Apr-04 17:52 
QuestionHow to use SortedList.Item Property Pin
Member 9576655-Apr-04 14:23
Member 9576655-Apr-04 14:23 
AnswerRe: How to use SortedList.Item Property Pin
Spanky35-Apr-04 15:40
Spanky35-Apr-04 15:40 
AnswerRe: How to use SortedList.Item Property Pin
Heath Stewart5-Apr-04 17:42
protectorHeath Stewart5-Apr-04 17:42 
GeneralRe: How to use SortedList.Item Property Pin
Member 9576656-Apr-04 5:57
Member 9576656-Apr-04 5:57 
GeneralRe: How to use SortedList.Item Property Pin
Heath Stewart6-Apr-04 6:07
protectorHeath Stewart6-Apr-04 6:07 
QuestionSuspendLayout() - Does this work? Pin
Tristan Rhodes5-Apr-04 13:56
Tristan Rhodes5-Apr-04 13:56 
I've played around with suspendlayout.

I believe it's there to stop changes to layout being applied before you have done all the changes that you need.

However, i've used the two following pieces of code, and they produce dramaticaly different effects in terms of rendering:

Code one: Low Flicker, Pretty neat solution
<br />
			//Apply Changes<br />
			this.SuspendLayout();<br />
			this.Size = new Size(newWidth,newHeight);<br />
			this.Location = new Point(newXLoc, newYLoc);	<br />
		this.ResumeLayout(true);


Code two: High Flicker, massive jerking to either side of resize points.
<br />
			//Apply Changes<br />
			this.SuspendLayout();<br />
			this.Location = new Point(newXLoc, newYLoc);<br />
			this.Size = new Size(newWidth,newHeight);	<br />
		this.ResumeLayout(true);


Any ideas why this is if they are only applied after ResumeLayout is run?

Cata
AnswerRe: SuspendLayout() - Does this work? Pin
Heath Stewart5-Apr-04 17:37
protectorHeath Stewart5-Apr-04 17:37 
GeneralRe: SuspendLayout() - Does this work? Pin
Tristan Rhodes5-Apr-04 22:32
Tristan Rhodes5-Apr-04 22:32 
GeneraloleDbDataAdapter and dataSet Pin
DougW485-Apr-04 13:10
DougW485-Apr-04 13:10 
GeneralRe: oleDbDataAdapter and dataSet Pin
Heath Stewart5-Apr-04 17:29
protectorHeath Stewart5-Apr-04 17:29 
GeneralRe: oleDbDataAdapter and dataSet Pin
MeterMan5-Apr-04 23:14
MeterMan5-Apr-04 23:14 
Generalassembly's dll extension Pin
Anonymous5-Apr-04 11:09
Anonymous5-Apr-04 11:09 
GeneralRe: assembly's dll extension Pin
Dave Kreskowiak5-Apr-04 11:25
mveDave Kreskowiak5-Apr-04 11:25 
GeneralRe: assembly's dll extension Pin
Heath Stewart5-Apr-04 11:34
protectorHeath Stewart5-Apr-04 11:34 
GeneralRe: assembly's dll extension Pin
Anonymous5-Apr-04 13:16
Anonymous5-Apr-04 13:16 
GeneralRe: assembly's dll extension Pin
Heath Stewart5-Apr-04 17:18
protectorHeath Stewart5-Apr-04 17:18 
GeneralRe: assembly's dll extension Pin
CWIZO6-Apr-04 2:47
CWIZO6-Apr-04 2:47 
GeneralRe: assembly's dll extension Pin
Heath Stewart6-Apr-04 2:52
protectorHeath Stewart6-Apr-04 2:52 
QuestionCatch Windows KeyPress Events? Pin
Verdant1235-Apr-04 9:32
Verdant1235-Apr-04 9:32 
AnswerRe: Catch Windows KeyPress Events? Pin
LongRange.Shooter5-Apr-04 9:43
LongRange.Shooter5-Apr-04 9:43 
AnswerRe: Catch Windows KeyPress Events? Pin
Heath Stewart5-Apr-04 9:50
protectorHeath Stewart5-Apr-04 9:50 
GeneralRe: Catch Windows KeyPress Events? Pin
Verdant1235-Apr-04 10:27
Verdant1235-Apr-04 10:27 
GeneralRe: Catch Windows KeyPress Events? Pin
Heath Stewart5-Apr-04 10:43
protectorHeath Stewart5-Apr-04 10:43 

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.