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

No MouseHover event for Flat buttons on dialog redisplay

My application is written in C# and has several dialog Windows Forms. All
button objects on all forms are using FlatStyle=Flat. I have background
colors on each button and tool-tips describing the use of each button. The
forms are all instantiated at start-up, but only the main form is displayed
(the other sub-forms need time to access resources on initial load, so they
are instantiated early, shown only when needed, and not destroyed and
re-instantiated). All tool-tips and button color-shade features on the main
form work fine all the time.

The problem is with the sub-forms. When shown for the first time, all
buttons and tool-tips work fine. However, once the form has been interacted
with and hidden (i.e. DialogResult=OK or Cancel) and then re-displayed later
for more interaction, the button tool-tips never again display and the button
colors stop changing as the mouse passes over. I tracked it down and have
found that the MouseHover event simply stops firing for sub-form buttons
after the first display-hide-display cycle.

This seems to be a system bug. Has anyone seen this besides me? Is there a
work-around or patch (short of having to destroy and re-create each form as
it is needed)?

Thanks in advance.

Nov 22 '05 #1
0 1280

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

Similar topics

0
by: JJay | last post by:
My application is written in C# and has several dialog Windows Forms. All button objects on all forms are using FlatStyle=Flat. I have background colors on each button and tool-tips describing...
0
by: jaxCtiDev | last post by:
My application is written in C# and has several dialog Windows Forms. All button objects on all forms are using FlatStyle=Flat. I have background colors on each button and tool-tips describing...
1
by: Natan | last post by:
I was playing with control events and noticed that if try to change the color of a button or text in a MouseHover event, it is slow to respond. It takes about half a second to notice that the mouse...
1
by: Phenix Smith | last post by:
I am working on the component and would like to change a display when the user stops moving the mouse inside the control. I used the MouseHover and MouseMove to change the status, but the...
1
by: Earl Teigrob | last post by:
I did a ton of searching to try and find a simple solution to this issue and finally wrote my own, which I am sharing with everyone. In my searching, I did find a very complete and robust solution at...
0
by: Thomas Wegener | last post by:
I created a nonmodal dialog with a PropertyGrid control. I added an Enter-, Click-, MouseClick and MouseHover event If I start the dialog the enter event are called If I leave dialog and reenter...
6
by: Joseph Geretz | last post by:
Writing an Outlook AddIn with C#. For the user interface within Outlook I'm adding matching pairs of Toolbar buttons and Menu items. All of the buttons and menu items are wired up to send events to...
3
by: Marc | last post by:
Hi, I create buttons dynamically at runtime in my application. I want to open a messgae box when the user hovers over a button.how can i do this? i need something like the below(which doesnt...
12
by: Marc | last post by:
Hi, How can i increase the mousehover event timer? AddHandler NewBtn.MouseHover, AddressOf Shownotes Private Sub Shownotes(ByVal sender As System.Object, ByVal e As System.EventArgs)...
1
by: analfabete | last post by:
Hello everybody! I have a program with a button. When I click on this button a wx.dialog open. However on my new windows there are two button "Valider" and "Annuler", can you tell me why they...
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...
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...
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
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,...
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
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...
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.