Click here to Skip to main content
15,896,500 members
Home / Discussions / C#
   

C#

 
GeneralRe: Record sound from sound card Pin
Heath Stewart19-Feb-04 4:43
protectorHeath Stewart19-Feb-04 4:43 
GeneralEos: aspect-oriented extension for C# Pin
Hridesh Rajan18-Feb-04 15:08
Hridesh Rajan18-Feb-04 15:08 
GeneralAutomate Legacy 3270 Applications Pin
John Kuhn18-Feb-04 14:36
John Kuhn18-Feb-04 14:36 
Generalpostback problem Pin
pardu18-Feb-04 14:34
pardu18-Feb-04 14:34 
GeneralRe: postback problem Pin
Nick Parker18-Feb-04 18:17
protectorNick Parker18-Feb-04 18:17 
General"Minimize to tray" button in title bar Pin
josefg18-Feb-04 12:30
josefg18-Feb-04 12:30 
GeneralRe: "Minimize to tray" button in title bar Pin
Heath Stewart19-Feb-04 4:38
protectorHeath Stewart19-Feb-04 4:38 
GeneralRe: "Minimize to tray" button in title bar Pin
John Fisher19-Feb-04 5:16
John Fisher19-Feb-04 5:16 
There are two alternatives to Heath's reply, but his suggestion is the best.

Alternative 1: Show absolutely none of the border area (there are properties in Windows Forms that you can use to hide them). Then, draw all the content you want on your own, putting normal buttons wherever you want them. The problem is that you must handle "hit testing" in order to let the user drag or resize the window, since Windows no longer does that work for you. There are several places to find information about that. Look to handle the WM_NCHITTEST message.

Alternative 2: Create a separate form that floats over your main window. It would contain only the button(s) that you desire, with no border or spacing. Once that window is created, you can manually position it to sit wherever you like. The problem is that the window is free-floating, so you need to reposition it every time your main form is moved or resized. This is the ugliest solution, since the users can see this button lagging while the rest of the window moves nicely.

John

"You said a whole sentence with no words in it, and I understood you!" -- my wife as she cries about slowly becoming a geek.

GeneralControlling file permissions Pin
james-cxx18-Feb-04 12:05
james-cxx18-Feb-04 12:05 
GeneralRe: Controlling file permissions Pin
Russell Morris18-Feb-04 12:27
Russell Morris18-Feb-04 12:27 
GeneralRe: Controlling file permissions Pin
james-cxx19-Feb-04 6:51
james-cxx19-Feb-04 6:51 
GeneralWriting to MXL File Pin
Mr_Mike18-Feb-04 11:27
Mr_Mike18-Feb-04 11:27 
GeneralRe: Writing to MXL File Pin
Kentamanos18-Feb-04 12:50
Kentamanos18-Feb-04 12:50 
Generalgetting MX servers for mail validation Pin
blakeb_118-Feb-04 10:41
blakeb_118-Feb-04 10:41 
GeneralRe: getting MX servers for mail validation Pin
Heath Stewart18-Feb-04 11:11
protectorHeath Stewart18-Feb-04 11:11 
GeneralStrange remoting issue Pin
lustuyck18-Feb-04 9:40
lustuyck18-Feb-04 9:40 
GeneralRe: Strange remoting issue Pin
Heath Stewart19-Feb-04 3:34
protectorHeath Stewart19-Feb-04 3:34 
GeneralRe: Strange remoting issue Pin
lustuyck19-Feb-04 3:49
lustuyck19-Feb-04 3:49 
GeneralRe: Strange remoting issue Pin
Heath Stewart19-Feb-04 3:52
protectorHeath Stewart19-Feb-04 3:52 
GeneralRe: Strange remoting issue Pin
lustuyck19-Feb-04 3:59
lustuyck19-Feb-04 3:59 
Generalmultiple choice using if else Pin
notsosharp18-Feb-04 8:35
notsosharp18-Feb-04 8:35 
GeneralRe: multiple choice using if else Pin
Werdna18-Feb-04 9:45
Werdna18-Feb-04 9:45 
GeneralRe: multiple choice using if else Pin
LongRange.Shooter24-Feb-04 7:00
LongRange.Shooter24-Feb-04 7:00 
GeneralMultiple entrys in zip, memory not being released ! Pin
Daniel Negron18-Feb-04 8:04
Daniel Negron18-Feb-04 8:04 
GeneralRe: Multiple entrys in zip, memory not being released ! Pin
Daniel Negron18-Feb-04 11:12
Daniel Negron18-Feb-04 11:12 

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.