Show Alert using tooltip in vb.net - vb.net

I have a small application in which I need to show alerts if a particular condition is met. I have an mdi form and several child forms. Now the best way to show an alert is to show a tooltip on the right side corner of my mdi form. Though this works, but the problem is I want user to close the tooltip once he has read.
Now the tooltip that vb.net provide does not support click events. If I give a long time duration the tooltip would be open all the time and if I give a short duration then it will close quickly.
What can I do ?
Help will be appreciated.
Thanks,
GR

You might consider a statusbar at the bottom of the window instead of a tooltip (like at the bottom of Word). You can intercept clicks on those, split the bar into several sections as necessary, etc.
Alternately, I'd probably code up a little pop up form with no border, min/max.close buttons etc, like a toast message, and show it as necessary, Stick an RTF control on it and you're "tooltips" can be very richly formatted, add a timer and the window can disappear after a short timeout, or intecept the click and close it manually.

Related

Datagrid inside tooltip using VB.NET

What will be the best approach to embed a datagridview like thing inside tooltip.
I would like to display useful information in an organized way inside tooltip control on MsChart rather than just displaying simple text info using callout or standard tooltip
I have tried using form as a tooltip but the main form gets focus lost when tooltip form is displayed.
Can anyone point me in right direction or give an approach which will be same in behavior as standard tooltip.
Thanks.

How to add tooltip on everything? vb.net

I have a program with a lot of buttons, and need to put a tooltip on every single button. Every buttton has its own text describing what it does. I would put a tooltip on every button, and add the text to the tooltip, but I guess that its not a very efficient way to do it. What would be the best way to put a tooltip on every item I wish with its own text?
thanks

Is there a way to pin a TabPage so it will be visible even when scrolling?

I have a TabControl in a Form. I'm adding tabs programatically to it. The Multiline property is false, so when they don't fit the area, the left and right arrows appear. But the first couple of tabs are special ones, they should not moved to the left when the right arrow is clicked, they should remain where they are. Is there a way to do this, like pinning a tab in a browser?
I was thinkig about catching the event of clicking the tabheader arrows, and positioning the first tabs to their original location, but I don't know which event can handle that, and the repositioning would really work.
Thanks for any ideas!

VB Datagrid Disable AutoScrolling Focus on Selected column

Kinda new here but needed help and a good friend suggested this site.
My problem is I have a data grid in Visual Basic, it works fine but as the columns extend past the width of the window I needed a scroll bar. This is where the problem arose. When a column past the 4th is clicked the scrollbar will shift to give it focus. As there are check boxes here they are constantly clicked and when they are the scroll bar shifts but the button isn't checked and must be clicked again.
I was hoping there was a way to disable this Auto focus so clicking a column will not cause the scrollbar to move.
Any help would be greatly appreciated. ^__^
There is no real autoscroll in vb, one of the sub method was causing it to jump by checking another cell off the screen then defaulting back to the one shown which had the appearance of a jump.

cocoa mousedown on a window and mouse up in another

I am developping a Cocoa application and I have a special need. In my main window, when I mouse down on a certain area, a new window (like a complex tooltip) appears. I want to be able to do:
- mouse down on the main window (mouse button stay pressed)
- user moves the mouse on the "tooltip" window and mouseup on it.
My issue is that the tooltip window does nto get any mousevent until the mouseup.
How can I fix this?
Thanks in advance for your help,
Regards,
And it won't since mouse is tracked by the main window. However, you can process mouseUp in the main window, transform click coordinates into the desktop space, get tooltip window frame and check whether the click occurred on the tooltip. After that, you can send a message to the tooltip window manually.
Or you can try to find another way to implement the final goal :) It is usually better to follow the rules, in this case - mouse tracking.