Re: Line on top of a user-defined control on a PictureBox
- From: "Mike Williams" <Mike@xxxxxxxxxxxxxxxxx>
- Date: Wed, 14 Jan 2009 16:13:00 -0000
"albertleng" <albertleng@xxxxxxxxx> wrote in message news:10ebc248-7bcc-4caf-b1c8-9efdbe486734@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
For the 2nd suggestion by setting PictureBox's Clipscontrol
to false during design time and draw using VB native drawing
method. I tried it and load another line during runtime from
line(0) i created in design time. The line's still under the user
control. is that what you mean by VB native drawing method?
I think I misread part of your question when I posted my earlier response and when I said, "Yes" [by which I meant Yes, you should use native VB drawing methods]". Looking at your question again I should of course have said, "No, you should not use Line Controls". The rest of my previous response is exactly as it already stands. Anyway, you will by now have seen my other response in which I posted some sample code showing how to perform your task by drawing lines using the native VB method Line (x1,y1)-(x2,y2) into a Form with its ClipControls property set to False, and you've also got Expvb's response in which he shows you how to perform essentially the same task using the API drawing methods, so you should be home and dry by now :-)
Mike
.
- References:
- Line on top of a user-defined control on a PictureBox
- From: albertleng
- Re: Line on top of a user-defined control on a PictureBox
- From: Mike Williams
- Re: Line on top of a user-defined control on a PictureBox
- From: albertleng
- Re: Line on top of a user-defined control on a PictureBox
- From: albertleng
- Line on top of a user-defined control on a PictureBox
- Prev by Date: Re: VB6 app in VB 2008 Express
- Next by Date: Re: VB6 app in VB 2008 Express
- Previous by thread: Re: Line on top of a user-defined control on a PictureBox
- Next by thread: Re: Line on top of a user-defined control on a PictureBox
- Index(es):
Relevant Pages
|