473,394 Members | 1,932 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,394 software developers and data experts.

UserControl can't catch WM_HELP message

I create a control that inherts UserControl, add it into a Form, it
can't receive WM_HELP that sent by HelpButton of Form. You can re-appear it
by following steps:
1. Create a control class UserControl1, inherts UserControl.
2. Add it into form Form1.
3. Set Form1 properties: MaximizeBox = false, MinimizeBox = false,
HelpButton = true.
4. Click the HelpButton in Form, then click UserControl1, UserControl1
can't recieve WM_HELP event. It can recieve WM_HELP event by press F1.
5. I can recieve the WM_HELP event if add the following code into
UserControl1:
protectec override CreateParams CreateParams
{
get {
CreateParams createParams = base.CreateParams;
createParams.ExtStyle &= ~0x10000; // WS_EX_CONTROLPARENT
return creatParams;
}
}

I don't what the reason is. Could you help me to explain it? And find a
method to solve it,but not inherit the control. Thanks.
Jerry

Nov 17 '05 #1
0 1189

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

Similar topics

10
by: Jeff | last post by:
I'm just starting to work with UserControls and have a question on the behavoir of exceptions within UserControls and VS.Net 2003. I have noticed that when a UserControl throws an exception from...
0
by: Jerry | last post by:
Hi, I send a message WM_HELP, but it return false. The code is: Point point = new Point(e.X, e.Y); Control child = GetChildAtPoint(point); if (child != null) { point = PointToScreen(point); ...
0
by: Jerry | last post by:
I create a control that inherts UserControl, add it into a Form, it can't receive WM_HELP that sent by HelpButton of Form. You can re-appear it by following steps: 1. Create a control class...
2
by: Benedict Teoh | last post by:
I created a dropdownlist containing day, month and year field and expose a property to assign a date. When I call from a aspx page and assign the value, the new date is not displayed until a submit...
5
by: Tarun Mistry | last post by:
Hi all, is it possible to update a usercontrol before it is rendered? In my scenario I have a Page with a usercontrol on it. When a button is clicked on the Page, I want to update the...
1
by: mfc130603 | last post by:
Hi, My MFC app has dialogs that handle the WM_HELP message. Each dialog has its own context-help string that opens a corresponding page in an HTML Help file. It all works fine - execpt if the...
5
by: Blue | last post by:
We have a custom word processing type editor built with C# and .NET 2.0 and we need to support typing in languages other than English. I want to be able to use the Windows IME to enter in text...
1
by: xke | last post by:
I have a base class which overrides CreateChildControls / Render. Inside CreateChildControls, based on a public property ShowLinks in this class, I can include/display a usercontrol (kind of set of...
13
by: Screaming Eagles 101 | last post by:
Hi, I have a solution containing two projects - main project with main form containing a statusstrip - second project containing a usercontrol. I have added the usercontrol to my main form,...
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.