Adding a ToolTip to a Picture Control in VB.Net


So here is a quick one. I was recently developing a small application written in VB.Net and went to add a tool tip to a picture control displaying the Windows UAC Shield but found that I couldn’t.  So after a litle poke around I found that I could initialise the ToolTip method and apply to the control that I wanted.  The following snippet is assigning the tooltip to my picture control (in this case picShield):

Dim tt As New ToolTip()
tt.SetToolTip(picShield, "Requires Administrative Privilages")

The above will then attach itself at run time to the control you specify and instance a Tool Tip for it.


Leave a Reply

More Posts

How to spoof or mimic a hardware or MAC Address of another device on an interface on a FortiGate

I was recently out at a client and they were in the process of getting another link installed, which happened to be Cable internet which they were using for redundancy.  We put their cable modem in Bridge mode but the connection wasn’t coming up after connecting everything up.   Most cable providers authenticate with certificates […]

Server Side E-Mail Validation with PHP

Validation is one of the most important things which can be done on a public-facing website. It prevents users from entering required information incorrectly or even worse attempting to damage your site via some form of script or SQL Injection attack. Recently I was developing a website for a Real Estate firm, as a legal […]

Random password prompts with users running Windows Phone / Mobile Active Sync for Exchange through ISA 2006 or TMG Reverse Proxy

So I recently came across an issue where some end users were getting prompted for their password when running a Windows Phone device (Android and Apple devices seem immune).  The client had recently had an Office 365 hybrid configuration completed and where using ISA / TMG as a reverse proxy to authenticate to their local […]