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

On Click show ToolTip

Ali Rizwan
925 512MB
Hi all,
I want to show tooltip when i click on a button.
And how can i show a multiline tooltip?
Thanx.
Oct 2 '07 #1
17 10351
Killer42
8,435 Expert 8TB
I want to show tooltip when I click on a button.
And how can I show a multiline tooltip?
I don't think you have any control over the formatting of a tooltip. VB (or Windows) just wraps it as required.

I think you also don't have much (if any) control over how/when to display them. If you want finer control over this stuff, then I guess you'll need to create your own by popping up a little window.

Let's see... I guess it would need to have Enabled = False so the user can't interact with it, and also be set to "stay on top" - I think you have to do an API call for that.
Oct 3 '07 #2
hariharanmca
1,977 1GB
Hi all,
I want to show tooltip when i click on a button.
And how can i show a multiline tooltip?
Thanx.
That doesn’t have any sense. When you click the command button then your command will be triggered. No use of showing tool tip after command executed.
Oct 3 '07 #3
Killer42
8,435 Expert 8TB
That doesn’t have any sense. When you click the command button then your command will be triggered. No use of showing tool tip after command executed.
Well, I suppose that depends on what the tooltip says, and what the button does.
Oct 3 '07 #4
Ali Rizwan
925 512MB
That doesn’t have any sense. When you click the command button then your command will be triggered. No use of showing tool tip after command executed.
Ok
Can we show a balloon instead of tooltip?
Oct 3 '07 #5
hariharanmca
1,977 1GB
Ok
Can we show a balloon instead of tooltip?
Can you explain, what that command will do and why you want to display on click?
Oct 3 '07 #6
Ali Rizwan
925 512MB
Can you explain, what that command will do and why you want to display on click?
Ok,
I have a textbox where only numbers will enter
I want when the textbox focuses a ballon will show with text "Only numbers can enter"
and when noninteger value entered this ballon also show instead of any msgbox.
thanx
Oct 3 '07 #7
hariharanmca
1,977 1GB
Ok,
I have a textbox where only numbers will enter
I want when the textbox focuses a balloon will show with text "Only numbers can enter"
and when noninteger value entered this balloon also show instead of any msgbox.
thanx
Keep a label near the text box and display your message. You can use balloon but I am not aware of that.
Oct 3 '07 #8
Ali Rizwan
925 512MB
Keep a label near the text box and display your message. You can use balloon but I am not aware of that.
I know the label thing
But I want a proper windows balloon.
If it is possible then tell otherwise thanks trying
Thanks.
Oct 3 '07 #9
Killer42
8,435 Expert 8TB
I'm confused. What's the difference between a "balloon" and a "tooltip"?
Oct 3 '07 #10
Killer42
8,435 Expert 8TB
Well in any case, try this little sample I just whipped up. It shows one possible method of doing your own "balloons". It's a VB6 project.
Attached Files
File Type: zip Home-made balloon tips.zip (1.8 KB, 957 views)
Oct 3 '07 #11
hariharanmca
1,977 1GB
Good idea but if i place some controls then this lable ZOrder will not come forward with text box, command button,...etc (Other controls).

He is looking for same like Tooltip.
Oct 3 '07 #12
Killer42
8,435 Expert 8TB
Good idea but if i place some controls then this lable ZOrder will not come forward with text box, command button,...etc (Other controls).

He is looking for same like Tooltip.
Yes, you would need to ensure somehow that your balloon was visible. Either by moving it in front of other controls (if that's possible with Shape controls) or by simply making sure that you keep that part of the form clear.

This was merely expanding on your suggestion to "keep a label near the text box".

This sample form wasn't intended to be a polished application, of course - merely an illustration of some principles.
Oct 3 '07 #13
Ali Rizwan
925 512MB
Hello Hari and Killer
I have a thing I have made some tooltips in which tooltips are in a circle with fade effects. It looks like a balloon.
Thank you both.
Thanks a lot for your company.
But if you find anything by which you can show windows balloon tip on form on any event then please tell me.
Thanks.
Oct 3 '07 #14
Killer42
8,435 Expert 8TB
I have a thing I have made some tooltips in which tooltips are in a circle with fade effects. It looks like a balloon.
Thank you both.
Any chance you could post it here? Sounds like fun.
Oct 4 '07 #15
Ali Rizwan
925 512MB
Any chance you could post it here? Sounds like fun.
Ok
Here is the attachment.
Try this and comment.
Attached Files
File Type: zip Custom Tool Tips.zip (27.6 KB, 591 views)
Oct 4 '07 #16
nev
251 100+
ali rizwan, you have a very good idea! i also wanna balloon instead of ol' tooltip.
Oct 4 '07 #17
Ali Rizwan
925 512MB
ali rizwan, you have a very good idea! i also wanna balloon instead of ol' tooltip.
Hi,
I'm trying to do this.
But you try my attachment it looks like balloon but not balloon.
Whenever I find I'll post it.
GOODLUCK
ALI
Oct 4 '07 #18

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

Similar topics

3
by: RJN | last post by:
Hi The texts in the dropdown are too long and the width is not sufficient to show the entire text. Increasing the width is not an option. Is there a way to show the selected item text as a...
2
by: tony | last post by:
I initally posted this July 29, 05 and did not get any replies: I have a Windows Forms UserControl that runs in a thick client. I am now deploying it within an IE web page. Everything works fine,...
1
by: Sakharam Phapale | last post by:
Hi All, I have developed my own user control and created custom mouse enter event. I need to show ToolTip on mouse enter event. I have written following code for that, but it doesn't show ToolTip....
0
by: NvrBst | last post by:
Hello. I'm trying to display a tooltip to an external window. I have a wrapper class public class WindowWrapper : System.Windows.Forms.IWin32Window { public WindowWrapper(IntPtr handle) {...
0
by: Lucian Wischik | last post by:
I'm using ToolTip.Show(x,y,..) to show my balloon-style tooltip at a specified coordinate. Most of the time it works fine and the "tip" of the balloon points exactly to my specified (x,y)...
2
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...
3
by: graphicsxp | last post by:
Hi, I would like to show a tooltip when the user move the mouse over the first column of my gridview. The tooltip should be bound to a field of the gridview's datasource that correspond to...
4
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...
8
by: starrysky | last post by:
I have a program which puts an icon in the notification area and has a menu associated with it available by right clicking on the icon. I want the menu items to be selected by single left clicks but...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
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:
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.