I would use the drawstring version that accepts a rectangle. Add the
<anonymous@discussions.microsoft.com> wrote in message
news:245e201c45f8b$2173da30$a301280a@phx.gbl:
> Hi Herfried,
>
> Thanks for your reply. It seems to me that I did not make
> the question clear in my post. I want to know a easy way
> to tell which rectangles are clicked, not the way to pop
> up a new window. I can do it by determining my mouse
> position in the picturebox_click event if I know the
> position of the rectangles. The problem is I do not know
> the positions. I know there are labels for the rectangles
> and wonder if there is way to tell the strings by mouse
> clicking on it. These strings are generated by DrawString
> method not VB lables or textboxes. Thanks.
>
> Hugh
>
>
> >-----Original Message-----
> >* "Hugh" <HYPERLINK
> >"mailto:anonymous@discussions.microsoft.com"anonymous@discussions.microsoft.
> >com> scripsit:
>
> >> My application has a user interface with pictureBox
>
> shown
>
> >> many rectangles. I want a window to pop up when user
> >> clicks certain rectangles (not everyone) to show
>
> detailed
>
> >> information. What is the best way to do this?
> >
>
> >\\\
> >Dim f As New FooForm()
> >f.Show()
> >///
> >
> >???
> >
> >--
> >Herfried K. Wagner [MVP]
> ><URL:
http://dotnet.mvps.org/> > >.
> >
>
Outgoing mail is certified Virus Free.
).
Version: 7.0.230 / Virus Database: 263.3.6 - Release Date: 6/25/2004