473,786 Members | 2,375 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Question about Images

Hi all,

My problem is, I have created a form with a background Image assigned to it.
On top of it, I have an instance which is a subclass of PictureBox. I
overrided the PictureBox OnMouseMove method so that it moves along with the
mouse movement. Though there is no problem when moving the PictureBox, as
the PictureBox moves, the form's background Image doesn't update the area
under the PictureBox, there are still some images remain on the screen after
the PictureBox change its location. Can anyone tell me how to solve this
problem?

Thanks in advance.

Tony
Nov 16 '05 #1
1 1077
Someone answered this over in the drawing forum. Please don't multi-post so
much.

--
Bob Powell [MVP]
Visual C#, System.Drawing

The Image Transition Library wraps up and LED style instrumentation is
available in the June of Well Formed for C# or VB programmers
http://www.bobpowell.net/currentissue.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

The GDI+ FAQ RSS feed: http://www.bobpowell.net/faqfeed.xml
Windows Forms Tips and Tricks RSS: http://www.bobpowell.net/tipstricks.xml
Bob's Blog: http://bobpowelldotnet.blogspot.com/atom.xml


"Tony" <to**@askme.com > wrote in message
news:u0******** ******@TK2MSFTN GP10.phx.gbl...
Hi all,

My problem is, I have created a form with a background Image assigned to it. On top of it, I have an instance which is a subclass of PictureBox. I
overrided the PictureBox OnMouseMove method so that it moves along with the mouse movement. Though there is no problem when moving the PictureBox, as
the PictureBox moves, the form's background Image doesn't update the area
under the PictureBox, there are still some images remain on the screen after the PictureBox change its location. Can anyone tell me how to solve this
problem?

Thanks in advance.

Tony

Nov 16 '05 #2

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

Similar topics

5
3483
by: Al Davis | last post by:
Note: I tried cross-posting this message to several newsgoups, including comp.lang.perl.misc, c.l.p.moderated, comp.infosystems.www.authoring.cgi, comp.lang.javascript and comp.lang.php. Nothing appeared on my news server, so I'm trying again - this time posting a separate copy of the message to each group. I'm thinking this should be fairly easy to accomplish - a quick and dirty ... what? ... script? program?
4
1275
by: Ben | last post by:
This is probably a very simple question (I hope), but my usually great web searching abilities have not turned up the answer I am looking for. I have a php page that includes a file for example index.php has an include for menu.htm. Inside menu.htm are some images in the same directory. All works great in that scenario. Here's where the trouble begins. If I want to include menu.htm inside a php file that is in another directory (say...
1
1694
by: Russell Silva | last post by:
I have a program set up something like this: class A { //(...) } class B : public A { //(...) public: void not_in_class_A();
5
3449
by: Brian Angliss | last post by:
I'm relatively new to scripting in JavaScript, so I'm not too surprised I'm having difficulty scripting up an animation effect for my personal site. What I'm trying to do is the following: When I go onMouseOver on a button in a nav bar, I want that button to switch to a different image while at the same time another blank image changes as an animation to an associated image. When I go onMouseOut, the bar image reverts back to the...
4
1701
by: seven | last post by:
This might be a newbie question or otherwise easy stuff for some of you, but it's tweaking me ... can't seem to get it to work right. I am working with a script that basically creates two arrays, and with a single call in the html, randomly inserts a graphic (which is linked to another page, as defined in the second array). The working example is http://seven.postmodern.com/insight/tarot/1cardreading.html What I would like to do is...
1
1680
by: Aaron | last post by:
I'm trying to do my site without table unless absolutely necessary, and I've run into a problem I'm not sure how to get around. I have a div with float:right that contains some images (the outer edges) and a div sandwiched between two of them. The sandwiched div has a background image which is to tile based upon it's width. The thing is, divs are normally set to display:block, which causes it to be placed on it's own line. If I set it's...
35
2676
by: Stan Sainte-Rose | last post by:
Hi, What is the better way to save image into a database ? Just save the path into a field or save the image itself ? I have 20 000 images (~ 10/12 Ko per image ) to save. Stan
15
1462
by: Prophet | last post by:
I am using the following for a different picture to show up every day.... <script language="JavaScript"> <!-- function adspic() { var mydate=new Date() var day=mydate.getDay() var month=mydate.getMonth() var daym=mydate.getDate()
21
1573
by: DP | last post by:
Hi, I'm not sure if this is the right group to ask. I am developing a small image library and I don't know how to hide the actual path to the image. So I go to the stock photo library websites to see how they hide their images. This is what I see from gettyimages.com <img src="http://cache2.asset-cache.net/xc/200186170-001.jpg? v=1&amp;c=NewsMaker&amp;k=2&amp;d=1EF4EE1EFB3A2CD3E55FD7668143826B10621193DB58D674" id="ctl12_ctlComp_imgThumb"...
5
1381
by: Computer Guy | last post by:
I know this is not actually a PHP question, but I figured this would be the place to go to get a good answer. I have a website for the neighborhood I live in and people's main concern is security. All the pages I made in PHP and I have a login for users and all sensitive information requires users to be logged in. I would like to post images on the page, but I know that if I put them on a page that is behind the login the images are...
0
9647
marktang
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10360
Oralloy
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10163
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10108
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9960
tracyyun
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5397
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5532
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3668
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.