Re: Line on top of a user-defined control on a PictureBox

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



"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



.



Relevant Pages

  • Re: PDF output
    ... very nice effect by drawing the text in the desired fill colour ... that's what my wife says. ... One other thing I've just thought of that doesn't appear to be there and that I imagine will be on top of the "wanted list" you eventually receive after you have distributed your code is an "actual size" view of the page so that the user can see the entire page in detail using scroll bars. ... By the way, I thought you would have had a better response than you've had with your request for feedback regarding "real world" printer output and possible code additions, especially after posting such very useful code. ...
    (microsoft.public.vb.general.discussion)
  • Re: Required fields upon saving
    ... move the code that assigns the drawing number into Form_BeforeUpdate so that it occus at the last possible instant (after any MsgBox you use in that event.) That reduces the chance of a clash. ... Private Sub Form_Error(DataErr As Integer, Response As Integer) ...
    (microsoft.public.access.formscoding)
  • Re: Related question
    ... before drawing conclusions. ... JoAnn ka7suz ... It still amazes me how many people do nor READ a post before ... slamming off a response. ...
    (soc.genealogy.methods)
  • Re: Line on top of a user-defined control on a PictureBox
    ... linei created in design time. ... is that what you mean by VB native drawing method? ... You should draw the lines using the standard native VB Line method or the alternative API LineTo method. ... If this is a problem for you then there are various ways of drawing anti aliased diagonal lines, but personally I've always found such things a bit "fuzzy" and less pleasing on the eye than a standard line (the same goes for smoothed screen fonts unless they are very large). ...
    (microsoft.public.vb.general.discussion)
  • Rotating text
    ... Now we have the LogFont class in Microsoft.WindowCE.Forms to allow ... drawing of rotated text. ... So I created a control that draws rotated ... Does anyone have a clue how to draw rotated text at design time? ...
    (microsoft.public.dotnet.framework.compactframework)