|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Print contents of pictureboxIn my application, lines (shapes such as circles) and text are drawn in
a picturebox. I am struggling to find a way to print the text and shapes. There is no images in the picturebox. Could someone please show me the way. I am using Visual Studio 2005 (VB.Net) Operating System: XP Pro Thanks If you are drawing to a PictureBox as you state, you can access the
PictureBox's image via its Image property: Dim theImage As Image = PictureBox1.Image Show quoteHide quote "Christie" <c.mybu***@yahoo.com> wrote in message news:1157204995.295816.19590@m79g2000cwm.googlegroups.com... > In my application, lines (shapes such as circles) and text are drawn in > a picturebox. I am struggling to find a way to print the text and > shapes. There is no images in the picturebox. Could someone please > show me the way. > > I am using Visual Studio 2005 (VB.Net) > Operating System: XP Pro > > Thanks > "Mike McIntyre" <mik***@getdotnetcode.com> schrieb: This will only work if you assigned the image to the picturebox previously, > If you are drawing to a PictureBox as you state, you can access the > PictureBox's image via its Image property: > > Dim theImage As Image = PictureBox1.Image but it will fail if you painted onto the picturebox in its 'Paint' event handler, for example. -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Diff between 'n-tier' vs 'distributed architecture' vs. 'multi-layered programming'?
Structures, Classes for storing data Please, can anyone convert the following dot net snippet to pascal Validating emails how to add dynamic tooltip when dragging scrollbar of datagridview VB .NET FTP Convert Access Table to Text File using VB get create table script for a SQL Server object what is wrong with this StreamWriter, FileStream throwing uncatchable NullReferenceException |
|||||||||||||||||||||||