Click here to Skip to main content
15,890,512 members
Home / Discussions / C#
   

C#

 
GeneralRe: find if word doc is already open (c# win app) Pin
fady_sayegh27-Dec-05 4:27
fady_sayegh27-Dec-05 4:27 
QuestionLinkLabels array Pin
tray_gator27-Dec-05 2:25
tray_gator27-Dec-05 2:25 
AnswerRe: LinkLabels array Pin
gashach27-Dec-05 6:13
gashach27-Dec-05 6:13 
GeneralRe: LinkLabels array Pin
tray_gator27-Dec-05 22:37
tray_gator27-Dec-05 22:37 
QuestionMinimize problem Pin
CoolASL27-Dec-05 2:19
CoolASL27-Dec-05 2:19 
AnswerRe: Minimize problem Pin
peshkunta27-Dec-05 3:15
peshkunta27-Dec-05 3:15 
GeneralRe: Minimize problem Pin
CoolASL27-Dec-05 18:20
CoolASL27-Dec-05 18:20 
GeneralRe: Minimize problem Pin
peshkunta27-Dec-05 19:04
peshkunta27-Dec-05 19:04 
I think the problem is in the event handler functions Form1_Resize, and the others:

this.Resize += new System.EventHandler(this.Form1_Resize);
this.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Form1_MouseDown);
this.Load += new System.EventHandler(this.Form1_Load);
this.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Form1_MouseUp);
this.Paint += new System.Windows.Forms.PaintEventHandler(this.Form1_Paint);this.MouseMove += new System.Windows.Forms.MouseEventHandler(this.Form1_MouseMove);

If you can, I would like to see the code in those. I was wondering what method/way you use to minimize the form/dialog since your dialog has no border. Are you using a button, or just a hit-test location on the form to click? If you want to have your own custom minimize button, one easy way to do it is to create a normal button and set it to Flat style, with no text and your image in the button that can change when you press for button being pressed, etc. Make sure the Flat button BorderSize is set to 0 otherwise there will be a border there. And make sure the MouseDownBackColor and MouseOverBackColor are set to Transperent.

-- modified at 1:05 Wednesday 28th December, 2005
GeneralRe: Minimize problem Pin
CoolASL27-Dec-05 19:43
CoolASL27-Dec-05 19:43 
GeneralRe: Minimize problem Pin
peshkunta27-Dec-05 20:15
peshkunta27-Dec-05 20:15 
GeneralRe: Minimize problem Pin
CoolASL27-Dec-05 20:21
CoolASL27-Dec-05 20:21 
GeneralRe: Minimize problem Pin
peshkunta27-Dec-05 20:45
peshkunta27-Dec-05 20:45 
GeneralRe: Minimize problem Pin
CoolASL27-Dec-05 20:58
CoolASL27-Dec-05 20:58 
GeneralRe: Minimize problem Pin
peshkunta27-Dec-05 21:35
peshkunta27-Dec-05 21:35 
GeneralRe: Minimize problem Pin
CoolASL27-Dec-05 21:44
CoolASL27-Dec-05 21:44 
GeneralRe: Minimize problem Pin
peshkunta27-Dec-05 21:59
peshkunta27-Dec-05 21:59 
GeneralRe: Minimize problem Pin
CoolASL27-Dec-05 23:27
CoolASL27-Dec-05 23:27 
GeneralRe: Minimize problem Pin
CoolASL27-Dec-05 18:40
CoolASL27-Dec-05 18:40 
QuestionPrinting in Winforms App - Help!!! Pin
Srirampasham27-Dec-05 1:23
Srirampasham27-Dec-05 1:23 
AnswerRe: Printing in Winforms App - Help!!! Pin
peshkunta27-Dec-05 1:42
peshkunta27-Dec-05 1:42 
QuestionPreventing File Creation Pin
Shanila12327-Dec-05 1:15
Shanila12327-Dec-05 1:15 
AnswerRe: Preventing File Creation Pin
Rob Philpott27-Dec-05 2:09
Rob Philpott27-Dec-05 2:09 
QuestionOn line help Pin
mipooo27-Dec-05 0:57
mipooo27-Dec-05 0:57 
QuestionExtended Textbox Pin
Greeky26-Dec-05 23:57
Greeky26-Dec-05 23:57 
AnswerRe: Extended Textbox Pin
cbhkenshin27-Dec-05 0:03
cbhkenshin27-Dec-05 0:03 

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.