473,583 Members | 3,437 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Highlight a PictureBox OnMouseEnter

I have a PictureBox that we're using like a button. Is there a way to apply
a sort of highlighting to the image in the MouseEnter event?

I was thinking something like changing the color of all the pixels by a
slight factor.

Any suggestions?

Jan 19 '06 #1
2 3853
You may be able to pick up something from Bob Powell's GDI+ FAQ.

Tim Wilson
..NET Compact Framework MVP

"Joe" <jb*******@noem ail.noemail> wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
I have a PictureBox that we're using like a button. Is there a way to apply a sort of highlighting to the image in the MouseEnter event?

I was thinking something like changing the color of all the pixels by a
slight factor.

Any suggestions?


Jan 19 '06 #2
Hi Joe,

Thanks for posting!

For your issue, as Tim mentioned, there is an article that demonstrates how
to make GIF images transparent by using GDI+:

However, I don¡¯t think this is an easy method to implement because we need
to repaint the images by calling more complex functions.

Based on my experience for designing, I suggest you create another image
file which is highlighted by using some tools like PhotoShop or Fireworks.
Then, you can change the Image property of the PictureBox control when the
MouseEnter event is firing.

I appreciate your understanding and hope the above information helps, if
you have any issues or concerns please let me know. I will be happy to be
of further assistance.


Yuan Ren [MSFT]
Microsoft Online Support

Jan 20 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: Pavils Jurjans | last post by:
Hallo, I have entered some event handling hell... I want to mimic the functionality of IE5.5 onmouseenter and onmouseleave events, using DOM-standard onmouseover and onmouseout events. The subject element is a table cell that can contain any freestyle html. I need to fire some JS when user enters the cell with his mouse, and fire some...
by: Bob | last post by:
This is a bug that affects all controls, not just the ones that it's screwing up in my app. I really need a workaround. Anyone? Please? Before I regret letting my MSDN subscription run out and pay the hundred bucks or so to get MS tech support so they can tell me how to get around their own bug? Bob P.S. I meant to say "there are only two...
by: SamSpade | last post by:
I have a usercontrol that contains a picturebox. The user can obtain (creategraphics) a picturebox graphics object and draw on the picturebox. She could do gr.GraphincInit.Millimeter and then draw using millimeters as the measurement. But he would still have to dimension the Picture box using pixels (Clientsize for example). He changes the...
by: akh | last post by:
I want to use de Drag and Drop ´s event to move a picture box from a form and within a Picture Box. But I have behaviour if the MyPBox As PictureBox as the Globale varible or not Thanks for your help, Here is the code.
by: Tom | last post by:
I have a picturebox on my VB.NET form. The picturebox size mode is set to stretched. I then load an image into that form and display it. As the user moves the mouse over the form, I want to get and display (in the status bar) the image coordinates of the mouse location. However, if I use the picturebox's MouseMove event, I am getting the...
by: munibe | last post by:
Hi, i have a problem about picturebox control. if you may help me, i will be so happy. i have a picturebox named pic_map, and i added a button named customer_button, my wish is to add a new small picturebox on the map_picture and the new added picturebox should have click event to get the location of it when it is clicked. i have written some...
by: kirk | last post by:
I have a form with a PictureBox control on it. The .Image property is set to a PNG file(which shows the picture of the US map) with some transparency in it. The .BackColor property is set to Transparent. This so far, works perfect. I now, would like to put another PNG image(an arrow showing positioning on the map) over the last...
by: =?Utf-8?B?R29yZnk=?= | last post by:
Hey all, having an interesting time understanding this custom button class I am making. Here is a section of the code: protected override void OnMouseEnter(EventArgs e) { base.OnMouseEnter(e); if (pulsingStart == false) { pulsingStart = true;
by: AWW | last post by:
XP VB 2005 running an example from help that creates a picturebox in code - the picturebox is not created. If I comment out the "Dim Box as New PictureBox" and create it in Design mode - the example works. I have tried Show, Enabled, Visible, and even BackColor. Why does a help example not work? and why does Design creation work? Thanks - I...
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.