Datagrid inside tooltip using VB.NET - 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.

Related

Object reference in vb. Net when clicking icon

I have a panel that fills with icons of characters. I have a second panel I would like to fill with icons from which character is selected. What is the best way to know which character was selected? Both panels are flow layout panels. I can hover over the character and display the name but I need a good way to reference which character is clicked. The entire object is a user control and another object that retrieves the champion icons to fill the first panel. Thank you.
You need to handle the form.KeyPress event.
Control.KeyPress Event
Examine the KeyEventArgs and go from there.

Change the button hover color in VB.net

I'm creating a windows store app and i want to
change the button color when the mouse hover on the button
use an image as a button
I am using VS 2012 and using VB.net.
Thanks
You can create a mousehover event in your code behind and in that you can do whatever you want.
A perfect and precise answer of both of your questions is the following video
Click here

Update image on button VB.net

I’m trying to make a button that displays an image, that’s easy, but the image is an editable icon so I want the image on the button to be updated every time the form is started how can this be done?
I am making the assumption that you are using WinForms and saving your editied icon to a file.
Take a look at this MSDN page on ButtonBase.Image Property.
From above link:
button1.Image = Image.FromFile("C:\Graphics\MyBitmap.bmp")
You can put this in the New Subroutine after the InitializeComponent Statement. or in your Form Load event.
Use Graphics method and also handle the Paint event of Button. You can add text and primitive drawing on Image or Button region.

Show Alert using tooltip in 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.

Silverlight - Create expanding side panel

I'd like to know how I can make a side panel which when collapsed only shows a button that upon click will be pushed out by an expanded area which contains a control of choice. Clicking the button again will collapse the expanded area and the only thing you'll see is the button at the edge of the screen again.
I don't have any good examples of something similar so I hope you understand what I mean.
in toolbox there is a control called Expander, which is exactly for that purpose