473,382 Members | 1,386 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

customizing how the help button works

using .NET IDE I can add a help button to the top right of the title bar next
to minimize/mazimize/close. This button lets the user point to a specific
control and then get help on that control, but I was wondering if I can
override this behavior so when someone clicks this button it just opens a new
dialog with general info of that dialog. I want to do this because I don't
want to take up any space in my dialog with a menu or a new icon... and this
button in the title bar would be perfect! I just don't want that whole
point-to-a-control-to-get-help routine.
Nov 16 '05 #1
1 1654
"MrNobody" <Mr******@discussions.microsoft.com> wrote in message
news:AD**********************************@microsof t.com...
using .NET IDE I can add a help button to the top right of the title bar
next
to minimize/mazimize/close. This button lets the user point to a specific
control and then get help on that control, but I was wondering if I can
override this behavior so when someone clicks this button it just opens a
new
dialog with general info of that dialog. I want to do this because I don't
want to take up any space in my dialog with a menu or a new icon... and
this
button in the title bar would be perfect! I just don't want that whole
point-to-a-control-to-get-help routine.


If you really want to do this, you can override the form's WndProc to
intercept the message generated when the button is pressed, as in the
example below, but bear in mind that your application will then not behave
as an experienced Windows user will expect.

protected override void WndProc(ref Message m) {
const int WM_SYSCOMMAND = 0x0112;
const int SC_CONTEXTHELP = 0xF180;

if (m.Msg == WM_SYSCOMMAND && ((int)m.WParam & 0xFFF0) ==
SC_CONTEXTHELP) {
MessageBox.Show("Display a help dialog here");
m.Result = IntPtr.Zero;
}
else
base.WndProc(ref m);
}

Chris Jobson
Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Jason | last post by:
Sorry for the post here but could not find an Exchange newgroup. I developed an application a year or 2 ago that sends SMTP email. The application allows the user to customize the text from...
1
by: kjcox | last post by:
I've been using DocBook and XML for quite some time now. It works great for making simple HTML pages, http://gnuware.com/icecast/. I normally use it on RHEL and do not customize anything other than...
2
by: hedrew3 | last post by:
I created a form with a subform using the Access 2000 Forms Wizard. Both the form and the subform have their individual standard navigation bars with the minimum buttons (First, Prev, etc). My...
4
by: VR | last post by:
I am trying to embed a check box into a FlexGrid's cell, but having a problem when I start scrolling the grid. Here is my MyCheckBox class... class MyCheckBox : CheckBox { void Init (...
0
by: Neven Klofutar | last post by:
Hi, I'm trying to customize Calendar control. I would like to create XX Buttons as Controls in a Cell of the selected Day. I succesfully added Buton, but I just can't get it to work with it's...
1
by: Charlie | last post by:
Hi: I'm having problems customizing layout of Wizard control. Doesn't seems to allow you to change locations of buttons and side bars. Any ideas? Thanks, Charlie
0
by: deoraj | last post by:
Hi everyone, Can anyone tell me how to lock / deactivate "Refresh" and "Back" button on browser. Problem is in voting application. Once we click for a vote application goes to next page and...
1
by: Kothandaram | last post by:
Hi Friends, In my application I am traversing across pages. In many places I display sucess message using dynamically added javascript alert. I use a HTML button named 'Back' which gets the...
5
by: jimhill10 | last post by:
I have a perl script that creates an email attachment file from POST data on a web page. This works just fine. I want to customize the email body to contain all of the text data from the file...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.