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

C#

 
GeneralRe: New to C# Pin
parths1-Jul-03 16:23
parths1-Jul-03 16:23 
Generalstrange characters? how can i remove Pin
Asim N.30-Jun-03 22:50
Asim N.30-Jun-03 22:50 
GeneralRe: strange characters? how can i remove Pin
Philip Fitzsimons1-Jul-03 1:40
Philip Fitzsimons1-Jul-03 1:40 
GeneralRe: strange characters? how can i remove Pin
Asim N.2-Jul-03 22:50
Asim N.2-Jul-03 22:50 
GeneralHelp With Reading RSA Private Key From File (C#) Pin
yccheok30-Jun-03 21:56
yccheok30-Jun-03 21:56 
Generalreading a minimized form/window into a bitmap?how do i read a minimized form/window into a bitmap. Pin
peenu30-Jun-03 20:42
peenu30-Jun-03 20:42 
QuestionHow to upload a web-application? Pin
puppiesLover30-Jun-03 20:22
puppiesLover30-Jun-03 20:22 
QuestionConstrain form to horizontal resize only? Pin
james-cxx30-Jun-03 19:27
james-cxx30-Jun-03 19:27 
Can anyone suggest the best way to constrain a form to horizontal resizing only?

Delegating a Resize handler doesn't work so great. If I set Height=400; in the Resize handler, it does indeed force the window to a height of 400 (or whatever you like) but when the user drags the window border, the window momentarily resizes to fit the mouse, and then the handler kicks in and pushes it back to 400 and back and forth causes a nasty flicker.

I've seen some Win32 examples that process WM_NCHITTEST messages and return 0; but I don't see a way to do this with C# .NET Framework. Any ideas?


-- James --
AnswerRe: Constrain form to horizontal resize only? Pin
Jim Stewart30-Jun-03 19:59
Jim Stewart30-Jun-03 19:59 
AnswerRe: Constrain form to horizontal resize only? Pin
peenu30-Jun-03 21:46
peenu30-Jun-03 21:46 
GeneralRe: Constrain form to horizontal resize only? Pin
james-cxx1-Jul-03 5:12
james-cxx1-Jul-03 5:12 
GeneralGDI Tip of the Day Pin
leppie30-Jun-03 18:14
leppie30-Jun-03 18:14 
GeneralRe: GDI Tip of the Day Pin
Oleksandr Kucherenko30-Jun-03 21:44
Oleksandr Kucherenko30-Jun-03 21:44 
GeneralRe: GDI Tip of the Day Pin
Nathan Blomquist1-Jul-03 2:12
Nathan Blomquist1-Jul-03 2:12 
GeneralRe: GDI Tip of the Day Pin
Oleksandr Kucherenko1-Jul-03 2:21
Oleksandr Kucherenko1-Jul-03 2:21 
GeneralRe: GDI Tip of the Day Pin
Nathan Blomquist1-Jul-03 2:39
Nathan Blomquist1-Jul-03 2:39 
GeneralRe: GDI Tip of the Day Pin
leppie1-Jul-03 7:02
leppie1-Jul-03 7:02 
GeneralRe: GDI Tip of the Day Pin
leppie1-Jul-03 6:59
leppie1-Jul-03 6:59 
GeneralRe: GDI Tip of the Day Pin
Nathan Blomquist1-Jul-03 2:14
Nathan Blomquist1-Jul-03 2:14 
GeneralRe: GDI Tip of the Day Pin
leppie1-Jul-03 7:04
leppie1-Jul-03 7:04 
Generalabout WebBrowser in mdi Pin
benzite30-Jun-03 15:02
benzite30-Jun-03 15:02 
GeneralListView Column Width Pin
.gonad30-Jun-03 14:33
.gonad30-Jun-03 14:33 
GeneralPrint a web page Pin
nahumtakum30-Jun-03 11:08
nahumtakum30-Jun-03 11:08 
QuestionTimer + Thread = what? Pin
RB@Emphasys30-Jun-03 7:43
RB@Emphasys30-Jun-03 7:43 
AnswerRe: Timer + Thread = what? Pin
J. Dunlap30-Jun-03 7:57
J. Dunlap30-Jun-03 7:57 

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.