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
correctly.
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
{
[STAThread]
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 0 2106 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 the problem
The overcome the problem I had to add the following to the CLOSING procedure in the...
|
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 data table. The lookup
|
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 regarding the DataGridView: The ToolTip doesn't show the whole value of
every Cell, but cuts it off when...
|
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 up pops the tooltip. I move away and the tooltp fades. I
hover again, and back comes the tooltip....
|
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 usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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...
|
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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...
|
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |