Click here to Skip to main content
15,895,084 members
Home / Discussions / C#
   

C#

 
AnswerRe: Threading question Pin
carbon_golem5-May-08 4:05
carbon_golem5-May-08 4:05 
AnswerRe: Threading question Pin
S. Senthil Kumar5-May-08 4:11
S. Senthil Kumar5-May-08 4:11 
GeneralRe: Threading question Pin
kensai5-May-08 21:28
kensai5-May-08 21:28 
Questionrunning script using Sqlcmd Pin
Denver Thomas5-May-08 3:45
Denver Thomas5-May-08 3:45 
QuestionInvalid Cast Problem using Enterprise Library MS DAAB (with dynamic dll loading) Pin
Pankaj Chamria5-May-08 3:21
Pankaj Chamria5-May-08 3:21 
QuestionAdding Active Directory Users to local Groups Pin
André Stroebel5-May-08 3:05
André Stroebel5-May-08 3:05 
AnswerRe: Adding Active Directory Users to local Groups Pin
André Stroebel5-May-08 3:26
André Stroebel5-May-08 3:26 
QuestionDataGridView Selection Pin
stancrm5-May-08 3:03
stancrm5-May-08 3:03 
AnswerRe: DataGridView Selection Pin
Csharp™5-May-08 10:46
Csharp™5-May-08 10:46 
QuestionHow to global access from other forms? Pin
daden2035-May-08 2:53
daden2035-May-08 2:53 
AnswerRe: How to global access from other forms? Pin
Christian Graus5-May-08 2:54
protectorChristian Graus5-May-08 2:54 
GeneralRe: How to global access from other forms? Pin
daden2035-May-08 3:16
daden2035-May-08 3:16 
Questionwhat happens if value is longer than fieldlength Pin
stephan_0075-May-08 2:45
stephan_0075-May-08 2:45 
AnswerRe: what happens if value is longer than fieldlength Pin
Christian Graus5-May-08 2:55
protectorChristian Graus5-May-08 2:55 
AnswerRe: what happens if value is longer than fieldlength Pin
Gareth H5-May-08 2:55
Gareth H5-May-08 2:55 
GeneralRe: what happens if value is longer than fieldlength Pin
stephan_0075-May-08 3:00
stephan_0075-May-08 3:00 
GeneralRe: what happens if value is longer than fieldlength [modified] Pin
stephan_0075-May-08 3:03
stephan_0075-May-08 3:03 
AnswerRe: what happens if value is longer than fieldlength Pin
SomeGuyThatIsMe5-May-08 2:57
SomeGuyThatIsMe5-May-08 2:57 
GeneralRe: what happens if value is longer than fieldlength Pin
stephan_0075-May-08 3:16
stephan_0075-May-08 3:16 
GeneralRe: what happens if value is longer than fieldlength Pin
SomeGuyThatIsMe5-May-08 3:31
SomeGuyThatIsMe5-May-08 3:31 
QuestionUsing "DictationGrammar" to dictate a URL Pin
thoraia5-May-08 2:37
thoraia5-May-08 2:37 
QuestionDynamic workflow Project Pin
Thaer Hamael5-May-08 2:00
Thaer Hamael5-May-08 2:00 
AnswerCP Members: question already asked Pin
leckey5-May-08 17:40
leckey5-May-08 17:40 
QuestionLayout takes time to rearrange after rezise, how to fix? Pin
leeoze5-May-08 1:59
leeoze5-May-08 1:59 
AnswerRe: Layout takes time to rearrange after rezise, how to fix? Pin
Anthony Mushrow5-May-08 2:13
professionalAnthony Mushrow5-May-08 2:13 
Resize event doesn't quite work like that, it gets fired when the forms size has changed. So when you resize your form with your mouse, every time you see a visible change in the size of your form, then event has been fired.

Sadly you can't get the mouseDown mouseUp events for clicking on the border. The only way i know to get that information is to override WndProc and look at the messages, one of them is sent when you mouse down on the caption bar/border and other are sent when the mouse moves or the button is released.

But, i tried using SuspendLayout and ResumeLayout with docked controls, and i think after ResumeLayout the controls just stayed where they were. So you should check that.

Good news is though, if you also override the OnPaint event you can stop any drawing yourself. So if you use WndProc to work out when the form is being resized then you can set a bool to false or something, and have an if statement around base.OnPaint(e); in your OnPaint override. Of course even without drawing it will still try to reposition all of the controls every time the resize event is fired, so it may still end up going slow.

Well, good luck.

My current favourite word is: Bacon!
-SK Genius


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.