473,786 Members | 2,771 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to change the ToolTip location?

Hello,

I have written a Custom Control which inherits from ToolTip and it is an
OwnerDraw tooltip.

In the Popup event I calculate the size of the tooltip I need to display
(rather large tooltip) and resize it using the ToolTipSize property.

In the Draw event, I draw my tooltip.

All that works well, but when I hover over a control associated with my
tooltip, if the control is closer to the right edge of the screen than my
tooltip is wide, my tooltip gets parly displayed off the screen.

I have 2 questions:

1. isn't a tooltip normally supposed to auto-adapt its position so that it
always stays entirely visible, even if the control which displays it is
close to a screen edge?

2. is there a way I can programmaticall y change the tooltip location (after
the Popup event fired and just before its gets displayed)?

It looks like C# computes the tooltip location BEFORE I change the tooltip
size in the Popup event and does NOT adapt the tooltip location when I
change its size in the Popup event!

Thanks for help!

Eric
Jan 25 '06 #1
0 4531

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

Similar topics

1
1364
by: mphanke | last post by:
Hi, I would like to place an Icon on an Image. If the mouse is over this Icon, I want to display the associated text in a tooltip. How would I do this? Any ideas? My last request wasn't answered so I give it a second try. Best regards,
2
4763
by: Alexander Bolotnov | last post by:
Good day to everyone, I am trying to make a ToolTip for a couple of TextBoxes. What I do is: create a new ToolTip and make it a Balloon: ToolTip myToolTip = new ToolTip(); myToolTip.IsBalloon = true; then I add the title and show it:
5
12041
by: Nikolay Petrov | last post by:
I have a ListBox, which is binded to a DataTable. I would like to display a tooltip when the mouse cursor hovers over the items in the ListBox. I don't know how to find the index if ListBox item, on which mouse cursor is over and how to display the tooltip. Any suggestions? TIA
0
980
by: Boni | last post by:
Dear all, is it possible to set a tooltip location, to other coordinates than cursor location? Thanks, Boni
0
2142
by: EricL | last post by:
Hello, I have written a Custom Control which inherits from ToolTip and it is an OwnerDraw tooltip. In the Popup event I calculate the size of the tooltip I need to display (rather large tooltip) and resize it using the ToolTipSize property. In the Draw event, I draw my tooltip.
0
1234
by: mscdex | last post by:
I have a tooltip control added to my form as well as a treeview control. By using a Microsoft KB article (http://support.microsoft.com/kb/319963) as a guide, I was able to add tooltip support for individual treeview nodes. However, I noticed that using the method shown in the KB article made the tooltip pop-up such that the cursor was in the center of the tooltip instead of the usual behavior where the tooltip's upper-left corner is placed...
12
1771
by: CJM | last post by:
I want a semantically-appropriate way of providing a tooltip or similar mechanism when a user hovers over a particular cell in a table. Specifically, I have an intranet application that enables users to find out about tooling equipment, and when they hover over the Board No cell, I want the location of that board to be displayed in a tooltip or similar. I think using an ABBR or ACRONYM tag would achieve what I want, but it's not really...
0
2105
by: Jake Montgomery | last post by:
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...
1
7987
by: Tao | last post by:
hi. Group, Does somebody here know how to change font (including font, font size) in tooltip. thanks
0
9655
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, 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...
0
9497
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,...
1
10110
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
9964
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 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...
0
8993
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...
0
6749
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
5398
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...
1
4067
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2894
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.