Re: Drag/Resize Samples

Tech-Archive recommends: Fix windows errors by optimizing your registry



I think I'll give up with this method Larry. There seem to be too many
problems with it

As well as the ghost image issue - which never went away, even after moving
the code from the Form to the UC - there's also a problem with the "move"
code losing the MouseUp events.

Also, if you TAB around multiple instances of the UC on a Form then the last
one created doesn't seem to get a transparent background, until it's been
moved once and then it works as intended. The background shows as white but
isn't selectable, implying that VB thinks it's transparent but some paint
even has been lost

Tony Proctor

"Tony Proctor" <tony_proctor@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:%23ut2vMCbJHA.4080@xxxxxxxxxxxxxxxxxxxxxxx
Sorry, forgot to add that my SendMessage is currently in the Form module.
This is more to do with the history of the experiment than a design choice
(i.e. I tried raw picturebox controls before I tried UCs)

I change it all around and see if that helps

Tony Proctor

"Larry Serflaten" <serflaten@xxxxxxxxxxxxxx> wrote in message
news:%23Je1DtBbJHA.1532@xxxxxxxxxxxxxxxxxxxxxxx

"Tony Proctor" <tony_proctor@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote
I was experimenting with this suggestion a bit more Larry, and it seemed
to
work OK with UserControls, right up to the point I changed to using a
UserControl array. After that, a movement of a control (which only
contained
a PictureBox and a TextBox inside it, and had a Transparent BackStyle)
left
ghost image behind. Is this another known problem?


I don't see that. With a backstyle transparent, the UC can't be clicked
on, can it?
In the quick test I did, the MouseDown event didn't fire, I had to use
the event
from the picturebox.

Are you calling Sendmessage from within the UC module, or the form's
module?
(I used the UC module, and as I said, saw no trouble)

LFS







.



Relevant Pages

  • Re: Which component to use to display mathematical graphs with VB6
    ... transparent image without flickering? ... You are already erasing the old set of lines before you draw the ... What's the advantage of using a PictureBox? ... Private Type PointAPI ...
    (comp.lang.basic.visual.misc)
  • Re: Second PictureBoxs background goes white when placed over another PictureBox
    ... positioning on the map) over the last PictureBox. ... transparent when it is over the form. ... simplest way to do that is to composite them outside the control. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: PictureBox transparency problem With 32 bit True Color
    ... PictureBox paints its background whether you like it or not. ... Creating a custom control to display a simple image is pretty easy. ... The Windows Forms Tips and Tricks page has information on truly transparent ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Displaying transparent images
    ... If you want white to be the transparent colour then this should be: ... but what you can do is draw an image to a picturebox and ... > public class CustomPictureBox: System.Windows.Forms.PictureBox ... > //declare the custom picturebox ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Can parts of an Image object be transparent?
    ... I'm writing a routine that generates an Image object. ... If PictureBox.Image is set equal to the generated Image the PictureBox ... >> Parts of an image can certainly be transparent. ...
    (microsoft.public.dotnet.framework.drawing)