How To Mahe Eraser In Paint Application Using .net
Oct 10, 2010[code].....
View 2 Replies[code].....
View 2 Repliesi am working on chatting application in which i developed a white board having pencil and and eraser using JQuery. Now i want to show this board to the online users accessing this page. What would be the best approach to so?
View 1 Repliesi am making a program that can paint something.the painting code is easy to do, but i cannot find out how can i make the clearing of what i have drew.in this code u can see that i made it on the mouse click/down and while moving it it will draw a line.
private shouldpaint as boolean = false
Private Sub Form1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseDown
[code]......
my dream project is to create a vb.net program that will able to input applications and then run it and erase it after a given month/day/time.it will allow you to add applications that you can erase after a period of time or do u have applications that able you to input applications then block/erase in period of time?
View 3 RepliesI've used this example to create a paint application in vb express 2008, however the example can only open and save .pic files! How can I make it so that my application can open and save a commonly used image type, such as bmp, jpeg or png? I would imagine it can't be that hard, just saving what has been drawn in the picturebox into an image file, or loading an image into the picturebox.
I have tried to make a load event by using some simple code I've made:
If OpenFileDialog1.ShowDialog() = DialogResult.OK Then
PictureBox1.Image = Image.FromFile(OpenFileDialog1.FileName)
If Not (PictureBox1.Image Is Nothing) Then
m_Picture = Nothing
PictureBox1.Invalidate()
[Code] .....
When I simply delete this section of code, pictures open fine however of course then I cannot draw, which defeats the purpose of my application. So how can I open and save images with my paint app?
How to create a Paint program with all the functions of Microsoft Paint?
View 5 RepliesCreate a paint application in VB Express 2008?
View 16 RepliesI am currently working on a small drawing application and I wanted to know if it was possible to insert a paint application inside a form,like vertically dividing the form into two. On one side you have some literature and on the other side you have the application.This paint application just mimics the same Microsoft paint whereby you have an open and save option
View 2 RepliesI found some code online for a vb paint application and I modified it for my use, which is a signature application. It uses a tablet connected to the pc to write the signature on the screen and then save it as a bitmap for later retrieval.The only issue i am having right now is that if you write on the tablet too fast, the signature gets broken up alot, any way to quicken the paint process in the code so that I can get a smoother signature?
Here is my code:
Imports System
Imports System.Collections
Imports System.Data
Imports System.IO
Imports System.Xml.Serialization
[Code] .....
How can microsoft paint(or any other painting software) be included in a VB.net project? I need to used its functionalities to maipulate jpg and movie file. Is there any ways this can be done on VB.net (or Visual Studio).
View 2 RepliesI am trying to paint the Computer Screen grey for the duration that the splash screen and the next popup screen (both of the dimensions lesser than the Computer Monitor's)run, the background is always grey. [code]...
View 2 RepliesNot sure how to do this, eveytime I try to load the the file, it says it won't read wav files.
View 2 RepliesI'm trying to achieve "disabled" affect of my form when running some process. I thought the best way to implement this was to somehow paint an overlay on top of the whole form with some gradient light gray color. But it seems like using the Form Paint event paints under all child controls. Is there a way to achieve this effect? I think I have seen somewhere else where some sort of snapshot is taken of the whole form and converted to grayscale but I need the form to be sizeable still.
View 3 RepliesA scribble tool in VB paint app?
View 3 RepliesThe only way I know to force a paint event in my pictureboxes is to do a 'Picturebox1.invalidate'. I read that this isn't the best way to do it though, so what's the best way to make my picture boxes repaint?
View 8 RepliesWeird issue: I have application that I fire some code in the Form_Paint event for the main form, it works fine on my machine, but on other machines is not working at all.
I tried to debug the code on the other machine, and Form_Paint event is not triggered at all!
find a simple tutorial that show me step by step how to make a paint program in visual basic.i want to:
- draw lines
- paint circles and rectangles
- change colors
- text
- erase
- and save my painting
- upload an image
I created a simple application to display the current Date/time on a Form (see below). When the application runs, the amount of memory used continues to grow. I don't see any obvious problems. I am running Visual Studio 2008 on Vista Business OS.
[Code]...
I was wondering how i would go about threading a paint event. I know the basic multithreading but i cant figure out how i would go about applying this on a paint event. This is the way i know how to go about multithreading.
[Code]...
How would you open a program like ms paint and paste in automatilcy what you have on a specific part of your form.
View 4 Replieshow would i paint an image onto a form according to the mouse position? i have a sprite and i want the front of the sprite to always face the mouse cursor.
View 1 RepliesIve been hacking away at this portion of a project for some time and I have a Picbox in a panel, I can, Draw on the image no problem, I can pan and then draw on the image, no problem. How ever when I zoom in out out on the image I can no longer draw on the zoomed image. How ever if I try and draw then zoom again, the lines will show up, but in the wrong places
[Code]...
so im making a projectile motione simulator for physics project got it all working and im drawing the path of the object with this code
e.Graphics.DrawRectangle(Pens.Red, 25 + xcord(counter1), 600 - ycord(counter1), 1, 1)
however it will draw it behind objects for example if i have a groupbox it will draw(i assume its still drawing at leaste) behind the group box and i cant see it
I have seached through the net to find a solution to customize the scrollbars on a datagridview. I found some stuff, but this seem to be not very easy.
View 1 RepliesI have been updating a program that was made in VB5. It contains several lines of code that are drawing lines and arcs, for example:
Arc(picCameraImage.hdc, sngOldX - sngCircRadius, sngOldY - sngCircRadius, sngOldX + sngCircRadius, sngOldY + sngCircRadius, sngOldX, sngOldY, sngOldX, sngOldY)
I have figured out, or think to have figured out, that the new way of doing arcs and lines does not require the HDC, so that problem is solved. The problem I am having now is that with the new way, every example I have found created a sub that does the drawings, like:
Public Sub PictureBox1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles PictureBox1.Paint
Dim radius As Integer = 20
Dim diameter As Integer = radius * 2
[code]....
Is there anyway to pass values to this sub? I have to draw several arcs and lines and the values for them are different everytime. I would like to create a sub that would be used in every spot the old program used the old arc command and pass the needed values through it.
I need to resize a bmp like the resize works in MS Paint - that is with no antialiasing
Anyone know how to do this in c# or vb.net ?
[url]... I managed to figure out how to paint a bitmap on a form. With some slight modification, I managed to make it so that the position of the bitmap can change based on key strokes.However, for some reason, it only does this once. It can't be that the xPosition and yPosition aren't responding since I rigged two labels to tell me their values and they are changing. So how can I make the bitmap respond.[code]...
View 1 RepliesI am making a screenshot saver/viewer and I want to be able to click on the PictureBox1 when it has an image inside it, and have it open up "mspaint.exe" and paste the contents of the PictureBox1 Image into Paint. How can I do this? [code]
View 5 RepliesI have a MonthCalendar control on a panel and it is invisible; when the user clicks on a button I make the panel visible which is fine but the calendar control selected date is highlighted half on one date and half on the other.
Why is this happening? If I simply show the control it does this.
Whenever I load or close child forms or other form (for that matter) then there is flickering in my MDI form. The flickering maybe because the form may be getting painted with gradient or so. Now this flickering is really noticable and I need to solve this. I am pasting the code that I am using to paint my MDI form. If you guys think the code is in efficient then let me know. Or if there is any fix or other way to go about it then I would like to know.
CODE - written inside my MDI form.
Public Class MdiContainer
Inherits Control
Private WithEvents MdiPane As Control
[code]....