Re: Image Editor tool bar
From: Carlos J. Quintero [MVP] (carlosq_at_NOSPAMsogecable.com)
Date: 04/14/04
- Next message: Carlos J. Quintero [MVP]: "Re: scanner"
- Previous message: Michael Giagnocavo [MVP]: "Re: VS.NET 2004?"
- In reply to: Alex Bombino: "Image Editor tool bar"
- Next in thread: Alex Bombino: "Re: Image Editor tool bar"
- Reply: Alex Bombino: "Re: Image Editor tool bar"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 14 Apr 2004 15:25:29 +0200
The image editor is intended to draw on bitmap or icon resources, not in
forms. In your case, you can override the OnPaint procedure and make your
drawings there. For example (VB.NET):
Protected Overrides Sub OnPaint(ByVal e As
System.Windows.Forms.PaintEventArgs)
e.Graphics.DrawLine(System.Drawing.Pens.Blue, 0, 0, 100, 100)
End Sub
-- Carlos J. Quintero (Visual Developer - .NET MVP) FAQs, Knowledge Base, Files, Docs, Articles, Utilities, etc. for .NET addins: http://groups.yahoo.com/group/vsnetaddin/ (free join) "Alex Bombino" <anonymous@discussions.microsoft.com> escribió en el mensaje news:1c35401c421cf$4d559de0$a301280a@phx.gbl... > Hi guys, > > I am new in VB.net and I like so far. This is an easy > question but I just don't know how to draw a simple line > in a form. In a design mode I made the image editor tool > bar to display but all the icons are disable. How can I > make the icons in the image editor enable so I can use the > line button to draw the line in a form ? > > Thanks in advance.
- Next message: Carlos J. Quintero [MVP]: "Re: scanner"
- Previous message: Michael Giagnocavo [MVP]: "Re: VS.NET 2004?"
- In reply to: Alex Bombino: "Image Editor tool bar"
- Next in thread: Alex Bombino: "Re: Image Editor tool bar"
- Reply: Alex Bombino: "Re: Image Editor tool bar"
- Messages sorted by: [ date ] [ thread ]