473,394 Members | 1,734 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.

Custom Tooltip using a Panel

Samishii23
246 100+
With my current project I am in need of a custom tool tip, not just a simple 1 sentence line with what the ToolTip .Net Class provides.

I am putting together a prototype Panel with 3 Label, and 1 TextBox controls. The TextBox control will have the longest content, ranging from a 5-7 word sentence to a full paragraph.

What I need to account for is the program window boundary. This tool tip box can and will go out of the windows boundary, unless I can make it overlap the window, which I highly doubt... Or stop it from pushing past the windows visible range. I have no idea how to do this.

Any suggestions?
Mar 30 '10 #1

✓ answered by tlhintoq

Get the .Bounds of the window.
Make the tool tip
Set the location to Bounds.Right - MyToolTip.Width, Bounds.Bottom - MyToolTip.Height
That should put it in the lower right corner

1 4661
tlhintoq
3,525 Expert 2GB
Get the .Bounds of the window.
Make the tool tip
Set the location to Bounds.Right - MyToolTip.Width, Bounds.Bottom - MyToolTip.Height
That should put it in the lower right corner
Mar 30 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: suresh | last post by:
hi, how do we define the custom data using solutionXML tag in Visio XML file. I have opened the already existing XML file and defined the data as the code given below. <SolutionXML...
0
by: ABC | last post by:
How to write custom IFilter using C# or VB.NET? What is the requirements? Is there any examples? Thanks
1
by: kellydotnetnewbie | last post by:
Does anyone know why, when adding a panel to a web form, the text boxes, labels, buttons, etc. are hidden behind the panel, but drop-down lists are not? Every time I make my panel visible...
0
by: amessimon | last post by:
Hi I have a long form - around 80 fields - which i have decided to break up into more manageable sections using the <asp:Panel> control. Basically i have three panels (stages) containing...
2
by: | last post by:
Today I learned that creating cookies inside of a custom class in ASP.NET 2.0 requires that you prefix it with HttpContext.Current..., e.g. : ...
2
by: topdawg147 | last post by:
I'm trying to build a custom control that includes a panel control on it. However, in design-time when I drag a new control (e.g. a textbox, etc) into the panel, it's not added in the panel--just...
1
by: valeria.audivert | last post by:
I'm trying to implement a Calendar control using the OnDayRender to get event information from an XML file. For the days that have special events, I'd like to make the day bold red and show a...
5
by: rajdevramasamy | last post by:
Hi, In my webpage, i am adding my user control using rendercontrol() using the following code: Dim NumericEditControl As New Control NumericEditControl =...
1
by: Vikas Paliwal | last post by:
I am using tooltip in php using ajax,but problem is that tooltip is not displaying in well manner ,i am trying to apply class "cont tooltip ui-corner-all" ,but its not working my code is ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: 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
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
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
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...

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.