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

C#

 
QuestionLoading an assembly from a new AppDoamin Pin
ThetaClear9-Feb-10 20:28
ThetaClear9-Feb-10 20:28 
AnswerRe: Loading an assembly from a new AppDoamin Pin
Rob Philpott10-Feb-10 0:11
Rob Philpott10-Feb-10 0:11 
GeneralRe: Loading an assembly from a new AppDoamin Pin
ThetaClear10-Feb-10 9:53
ThetaClear10-Feb-10 9:53 
QuestionRSync Pin
satsumatable9-Feb-10 19:22
satsumatable9-Feb-10 19:22 
QuestionPreventing the dropdown from being opened when drop down button pressed in combobox? Pin
Ron.bharath9-Feb-10 18:53
Ron.bharath9-Feb-10 18:53 
AnswerRe: Preventing the dropdown from being opened when drop down button pressed in combobox? Pin
Hessam Jalali10-Feb-10 1:25
Hessam Jalali10-Feb-10 1:25 
QuestionSuspendLayout ResumeLayout Question Pin
Douglas Kirk9-Feb-10 18:52
Douglas Kirk9-Feb-10 18:52 
AnswerRe: SuspendLayout ResumeLayout Question Pin
Dave Kreskowiak10-Feb-10 2:07
mveDave Kreskowiak10-Feb-10 2:07 
Douglas Kirk wrote:
I notice that when the Visual C# produces code it will put the "new" declarations before the SuspendLayout statement.


So what? The new control hasn't been added to the form's Controls collection yet, so it's not going to affect the layout of the form. it's perfectly logical to place the new outside of the suspend/resume layout block.


Douglas Kirk wrote:
this is simple for a one of object, but when you have an array of them can you put the new commands within the bounds of the Suspend/Resume??


You can, but it doesn't change anything at all.


Douglas Kirk wrote:
Could the way I am using the Suspend/Resume be the root cause of my slow refreshing?


No. Creating controls is a very expensive operation. If you're doing this on every refresh of the form, your creating a ton of controls every time something is dragged over your form.

A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008
But no longer in 2009...




AnswerRe: SuspendLayout ResumeLayout Question Pin
Luc Pattyn10-Feb-10 2:09
sitebuilderLuc Pattyn10-Feb-10 2:09 
QuestionRss Pin
kk.tvm9-Feb-10 18:21
kk.tvm9-Feb-10 18:21 
AnswerRe: Rss Pin
Arun Jacob9-Feb-10 19:13
Arun Jacob9-Feb-10 19:13 
AnswerRe: Rss Pin
Giorgi Dalakishvili9-Feb-10 19:32
mentorGiorgi Dalakishvili9-Feb-10 19:32 
QuestionIEnumerable Min() not working as expected Pin
Member 39190499-Feb-10 16:43
Member 39190499-Feb-10 16:43 
AnswerRe: IEnumerable Min() not working as expected Pin
Dave Kreskowiak10-Feb-10 2:02
mveDave Kreskowiak10-Feb-10 2:02 
QuestionWhat is the use of e.Handled in the KeyDown event Pin
Kalvin @ Work9-Feb-10 11:04
Kalvin @ Work9-Feb-10 11:04 
AnswerRe: What is the use of e.Handled in the KeyDown event Pin
loyal ginger9-Feb-10 11:22
loyal ginger9-Feb-10 11:22 
QuestionDatagridview C# Editable combo box control. Pin
Omersayeed9-Feb-10 7:45
Omersayeed9-Feb-10 7:45 
QuestionSQL select on two tables takes too long Pin
TheJudeDude9-Feb-10 7:42
TheJudeDude9-Feb-10 7:42 
AnswerRe: SQL select on two tables takes too long Pin
Jeremy Hutchinson9-Feb-10 8:37
professionalJeremy Hutchinson9-Feb-10 8:37 
GeneralRe: SQL select on two tables takes too long Pin
TheJudeDude9-Feb-10 9:46
TheJudeDude9-Feb-10 9:46 
AnswerRe: SQL select on two tables takes too long Pin
kevinnicol9-Feb-10 8:56
kevinnicol9-Feb-10 8:56 
GeneralRe: SQL select on two tables takes too long Pin
TheJudeDude9-Feb-10 9:45
TheJudeDude9-Feb-10 9:45 
GeneralRe: SQL select on two tables takes too long Pin
TheJudeDude9-Feb-10 10:02
TheJudeDude9-Feb-10 10:02 
GeneralRe: SQL select on two tables takes too long Pin
kevinnicol9-Feb-10 10:12
kevinnicol9-Feb-10 10:12 
GeneralRe: SQL select on two tables takes too long Pin
TheJudeDude9-Feb-10 10:54
TheJudeDude9-Feb-10 10:54 

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.