Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 2.0 and Visual Studio. 2005 > Visual Studio 2005
|
Visual Studio 2005 For discussing Visual Studio 2005. Please post code questions about a specific language (C#, VB, ASP.NET, etc) in the correct language forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Studio 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 9th, 2007, 01:58 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 224
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to ashu_from_india Send a message via Yahoo to ashu_from_india
Default how to create MS Paint like application ?

hi all

i am creating MS Paint like application in VB.NET 2005.

i am able to draw Lines on the Form using the Pen object,
but whenever i hide the Form and display it again, my drawing is GONE

how to retain tht drawing on the Form ?

thnx in advance,

ashu


 
Old July 9th, 2007, 08:02 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

I'm hardly an expert on this type of application but my first guess would be that when your form receives focus again, you should repaint the drawing canvas.

-Peter
 
Old July 10th, 2007, 06:40 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 224
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to ashu_from_india Send a message via Yahoo to ashu_from_india
Default

if i implement this thn i hv to SAVE "value for every pixel" of the Drawing Canvas :(
bcoz user can draw ANYTHING (literally)

if drawing is a shape (CIRCLE, RECTANGLE) thn i can store the Control Coordinates but in case of Random lines it can becum real slow to save all the Pixel values

thr must be some easy way...







Similar Threads
Thread Thread Starter Forum Replies Last Post
MS Data Grid control in ms access application roshla_p Access VBA 5 October 16th, 2006 02:37 AM
How do I paint a point onto th form alan2here Visual C++ 2005 0 April 4th, 2006 01:42 PM
Using MS Excel in application justshahid VS.NET 2002/2003 2 January 13th, 2005 11:56 AM
paint color cell in datagrid(c#) kobystud C# 0 August 1st, 2004 08:46 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.