Click here to Skip to main content
15,914,013 members
Home / Discussions / Windows Forms
   

Windows Forms

 
Questionhelp on DOS commands needed Pin
nithin24822-Mar-07 11:13
nithin24822-Mar-07 11:13 
QuestionHow to enumerate a ToolStripMenuItems's events Pin
hellspawnfr22-Mar-07 9:54
hellspawnfr22-Mar-07 9:54 
QuestionHelp me Pin
sureshmyway22-Mar-07 4:16
sureshmyway22-Mar-07 4:16 
QuestionText box validation Pin
Ruchi0322-Mar-07 0:49
Ruchi0322-Mar-07 0:49 
AnswerRe: Text box validation Pin
Pete O'Hanlon22-Mar-07 2:30
mvePete O'Hanlon22-Mar-07 2:30 
GeneralRe: Text box validation Pin
Ruchi0322-Mar-07 17:05
Ruchi0322-Mar-07 17:05 
QuestionHelp with a HelpButton Pin
PIEBALDconsult21-Mar-07 7:36
mvePIEBALDconsult21-Mar-07 7:36 
AnswerRe: Help with a HelpButton Pin
Mike Dimmick22-Mar-07 5:50
Mike Dimmick22-Mar-07 5:50 
It's not an easy workaround: you'll need to paint it on the title bar yourself. For that you need to handle the WM_NCPAINT and WM_NCHITTEST messages. See DrawFrameControl for how to draw a Windows 2000-style help button (DFC_CAPTION and DFCS_CAPTIONHELP) and DrawThemeBackground/DrawThemeIcon (part WP_HELPBUTTON and the appropriate state) for Windows XP-style themed buttons.

For Windows Vista it probably won't work very well since Aero draws the title bars normally, if in 3D mode; if you handle WM_NCPAINT it will turn off the standard frame painting for that window, I believe. You'd probably have to start playing with the Glass API to make it still look like a Windows Vista window.

The limitation is from Windows itself: the documentation for CreateWindowEx says "WS_EX_CONTEXTHELP cannot be used with the WS_MAXIMIZEBOX or WS_MINIMIZEBOX styles." In other words, Microsoft did not intend it to be used like this.

Edit: yes, I realise this is the Windows Forms forum. You need to override the WndProc method to handle messages that Windows Forms doesn't already translate to method calls/events.

Stability. What an interesting concept. -- Chris Maunder

Questionapplication is not starting up at windows startup Pin
sainyam20-Mar-07 22:14
sainyam20-Mar-07 22:14 
AnswerRe: application is not starting up at windows startup Pin
Tirthadip20-Mar-07 23:42
Tirthadip20-Mar-07 23:42 
AnswerRe: application is not starting up at windows startup Pin
Dave Kreskowiak21-Mar-07 3:54
mveDave Kreskowiak21-Mar-07 3:54 
QuestionQuestion about C++ and C# ... Pin
Yanshof20-Mar-07 20:23
Yanshof20-Mar-07 20:23 
AnswerRe: Question about C++ and C# ... Pin
Christian Graus23-Mar-07 4:44
protectorChristian Graus23-Mar-07 4:44 
QuestionHow to define a visual scheme for a GUI *including* text? Pin
KeironN20-Mar-07 0:59
KeironN20-Mar-07 0:59 
AnswerRe: How to define a visual scheme for a GUI *including* text? Pin
Pete O'Hanlon20-Mar-07 1:46
mvePete O'Hanlon20-Mar-07 1:46 
GeneralRe: How to define a visual scheme for a GUI *including* text? Pin
KeironN20-Mar-07 8:11
KeironN20-Mar-07 8:11 
QuestionDataGridView not updating when DataSource updates Pin
mmfranke19-Mar-07 9:56
mmfranke19-Mar-07 9:56 
AnswerRe: DataGridView not updating when DataSource updates Pin
RabidHamster19-Mar-07 14:49
RabidHamster19-Mar-07 14:49 
GeneralRe: DataGridView not updating when DataSource updates Pin
mmfranke20-Mar-07 3:00
mmfranke20-Mar-07 3:00 
GeneralRe: DataGridView not updating when DataSource updates Pin
mmfranke20-Mar-07 3:09
mmfranke20-Mar-07 3:09 
QuestionHow to convert existing C# Windows Application to C# Web Application.. Pin
MPS_DotNet18-Mar-07 21:08
MPS_DotNet18-Mar-07 21:08 
AnswerRe: How to convert existing C# Windows Application to C# Web Application.. Pin
Colin Angus Mackay19-Mar-07 1:19
Colin Angus Mackay19-Mar-07 1:19 
AnswerRe: How to convert existing C# Windows Application to C# Web Application.. Pin
Dave Kreskowiak19-Mar-07 1:43
mveDave Kreskowiak19-Mar-07 1:43 
QuestionUse Reflection to control winforms user permissions? Pin
nzmike18-Mar-07 20:21
nzmike18-Mar-07 20:21 
AnswerRe: Use Reflection to control winforms user permissions? Pin
Pete O'Hanlon19-Mar-07 0:27
mvePete O'Hanlon19-Mar-07 0:27 

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.