473,549 Members | 2,777 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Tooltip on Combobox disappears - Windows Forms bug?

I am using .NET 2.0 forms and running on Windows XP SP2. When I have a
tooltip on a combo box, and the combo box is expanded (“dropped down”)
using the arrow, it will no longer display it’s tooltip, no matter how
long I hover. Even if I move off the control and back it will still not
display its tooltip. If I then go to another control that has tootips,
then back to the combobox, it will again display its tooltip, until the
next time it is expanded.

Below is a small sample that has this bug (on my machine anyway.) It is
simply the standard VS8.0 generated code, condensed. Strangely, if I
remove the EnableVisualSty les() line, then the tootips seem to work

I could not find any information about this bug. I am curious if anyone
else has come across it, and if there is a solution? Any help appreciated.
======= Buildable Code Sample Below

using System;
using System.Collecti ons.Generic;
using System.Windows. Forms;

namespace ComboTest
static class Program
static void Main()
Application.Ena bleVisualStyles ();
Application.Run (new Form1());

class Form1 : Form
public Form1()
InitializeCompo nent();

private System.Componen tModel.IContain er components = null;
protected override void Dispose(bool disposing)
if (disposing && (components != null))
components.Disp ose();
base.Dispose(di sposing);

private void InitializeCompo nent()
this.components = new System.Componen tModel.Containe r();
this.comboBox1 = new System.Windows. Forms.ComboBox( );
this.toolTip1 = new System.Windows. Forms.ToolTip(t his.components) ;
this.button1 = new System.Windows. Forms.Button();
this.SuspendLay out();
// comboBox1
this.comboBox1. DropDownStyle =
System.Windows. Forms.ComboBoxS tyle.DropDownLi st;
this.comboBox1. FormattingEnabl ed = true;
this.comboBox1. Location = new System.Drawing. Point(12, 59);
this.comboBox1. Name = "comboBox1" ;
this.comboBox1. Size = new System.Drawing. Size(121, 21);
this.comboBox1. TabIndex = 0;
this.toolTip1.S etToolTip(this. comboBox1, "Combo Tooltip");
// button1
this.button1.Lo cation = new System.Drawing. Point(12, 12);
this.button1.Na me = "button1";
this.button1.Si ze = new System.Drawing. Size(75, 23);
this.button1.Ta bIndex = 1;
this.button1.Te xt = "button1";
this.toolTip1.S etToolTip(this. button1, "Button tip.");
this.button1.Us eVisualStyleBac kColor = true;
// Form1
this.AutoScaleD imensions = new System.Drawing. SizeF(6F, 13F);
this.AutoScaleM ode = System.Windows. Forms.AutoScale Mode.Font;
this.ClientSize = new System.Drawing. Size(292, 266);
this.Controls.A dd(this.button1 );
this.Controls.A dd(this.comboBo x1);
this.Name = "Form1";
this.Text = "Form1";
this.ResumeLayo ut(false);
private System.Windows. Forms.ComboBox comboBox1;
private System.Windows. Forms.ToolTip toolTip1;
private System.Windows. Forms.Button button1;
====== END Code Sample

Feb 6 '07 #1
0 2084

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

Similar topics

by: Simon Richardson | last post by:
I recently found that one of my application was leaking memory every time I closed a MDIChild form. The garbage collector never reclaimed it and my windows handles kept increasing and increasing until eventually the application crashed After three days of looking through all of my code I found that it was the TOOLTIP component that was causing...
by: JerryP | last post by:
Hi Group, Id like to have a tooltip for each col in the datagrid. Is there a way to do that ? Thanks ! Jerry
by: Timo Kunze | last post by:
Hi! If you move the mouse over an item that's part of a treeview and wider than the treeview, a tooltip showing the full item text will be displayed. I try to do this for ListBoxes and ComboBoxes. For ListBoxes I got it working, but not for the ListBox part of ComboBoxes. Do you know any sample code? Thanks in advance! Timo
by: dbuchanan | last post by:
VS2005 I've been reading all the help I can on the topic (MSDN, other) but I can't make sense of this. Desired behavior; The user is to choose from the displayed list of the databound combobox and the coresponding 'Id' from the lookup table is to be inserted into the field of the new record. I have two simple tables. "tblPerson" is the...
by: Paul E Collins | last post by:
How can I show a tooltip programmatically? I want to make it appear over a particular control at the specific time I choose, and not rely on the user's mouse movements. I don't mind using some Windows API call for this, if somebody can explain the parameters. Eq.
by: Pieter | last post by:
Hi, Using VB.NET 2.0, Windows Forms. I want the ToolTip to be shown on every TextBox, ComboBox and DataGridView continuously, and show the contence of these controls. Is there a way to add the ToolTip automaticly for all these controls, without having to link it the whole time to them for every new Control I put on my Forms? And...
by: sonu | last post by:
Hi all, I am experiencing a strange problem for the call setToolTip while running my application on frmaework 2.0. I have found 2 messages on google discussing the same issue but there are no replys It dumps saying something like System.InvalidOperationException: Adding the tip to the native ToolTip control did not succeed.
by: =?Utf-8?B?cGV0ZTE5Njk=?= | last post by:
I use Visual Studio 2005 and created a very simple Form with one button. I added a Tooltip for that button. It shows fine the first time I hover over that button. But if I let it disappear by the maximum time it should be displayed, it never shows again over that button. Is that intended? And what can I do to make it show again?
by: Charles Law | last post by:
I have to take this personally now. Tooltips have been flakey since the dawn of .NET, but to still have to put up with a disappearing tooltip in VS 2008 is getting beyond a joke. Tooltips have always done this, so isn't it about time they were fixed? I have a tooltip that I assign to a button control on my form. I hover over the button and...
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
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. ...
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...
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...
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
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...
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
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...

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.