Paint App

Status
Not open for further replies.

asokfair

Member
Joined
Jan 13, 2013
Messages
22
Programming Experience
Beginner
Hi,

I would like to create paint application in vb.net.(i need only few brushes and default shapes)
But it should draw same like MS paint (windows 7). something like this below .. paint.png
 
Hi jmcilhinney!

I am able to draw the paint in Vb, but when i move the cursor fast its getting scatter , how do we avoid that?

my code is:
private void mouseMoveEventHandler(object sender, MouseEventArgs e)
{

Graphics g = this.CreateGraphics();
if (e.Button == MouseButtons.Left)
{
//do left stuff


// g.DrawEllipse(myPen, e.X -15, e.Y - 15, 15, 15);
g.FillEllipse(myBrush, e.X - 15, e.Y - 15, 15, 15);

}


here i attached the snap of output for your reference
scattering.jpg
 
This site is dedicated to VB.NET and you are posting C# code. If you have a question relating to C# then you should post it at our sister site dedicated to C#. There's a link at the top of this page but here's another:

C# Developer Forums

I'm going to close this thread but I will keep an eye out on the C# forum, where I am also a moderator. You should include a link back to this thread so that anyone viewing that thread can refer back here for information.
 
Status
Not open for further replies.
Back
Top