473,654 Members | 3,076 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1676
"MrNobody" <Mr******@discu ssions.microsof t.com> wrote in message
news:AD******** *************** ***********@mic rosoft.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(re f 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
2626
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 address. is "My Custom Name" Jason@Yahoo.com. When the email was received into my companies Exchange 5.5 mail system the custom name was kept intact. Now that
1
1312
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 use the "docbook2html" command. It compiles my book and all chapters no problem. However, lately I have been needing to add custom fonts, unique colors to text and headers, and new items not normally covered under the...
2
3644
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 question is can you customize these navigation bars? I would like to add the New Record, Delete, etc. functionalities. I note that the Data Access Pages do have the navigation bar visible in design mode, but the Forms don't, so how do you do it?
4
6675
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 ( AxMSFlexGridLib.AxMSFlexGrid oGrid,
0
961
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 Command event. Please help, Neven ******************************************************
1
1727
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
1223
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 increament one vote in the database. But when we click on "Refresh" button on the browser, the query is fired again and again one vote is added un-necessarily..Only one vote should be posted from each pc / user. Same thing is with "Back" button on...
1
1191
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 user back to the previous page (using history.back();). Now the problem is after displaying a sucess alert message, when I do some other operation and click the HTML - 'Back' button I get the previous screen with the javascript alert message; I...
5
5296
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 itself. I thought this would be just a matter of using the $smtp->datasend($POSTvalues) with the $values coming from the names on the web page posting the data. Can someone show me what the correct code snippet would be? Here is my code: ...
0
8815
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8707
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8482
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7306
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6161
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5622
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4294
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1916
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1593
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.