Making A Basic Paint Like The Program?
Jul 22, 2009
I am trying to make a basic "paint" like form for one of my programs.I would like it to be like a function, where I put the input in, the user changes it, and when the user is done, it returns the changed picture.I know how to draw the picture and then draw lines, dots, whatever where the user clicks, but I don't know how to do some of the features like: text, color picker, zoom, erase, select (copy and pasting parts of the image) , and fill. I also don't really want to have a color picker dialog open ever time that the user wants to change color.
View 9 Replies
ADVERTISEMENT
Sep 20, 2009
How to create a Paint program with all the functions of Microsoft Paint?
View 5 Replies
Jul 4, 2009
With reference to my previous thread on Paint event handler.. [URL] I went to read up more on Paint Event Handler.. I have a button which draw out a path based on the user selection.. Below contains the drawing of the path portion of the button click event code
[Code]...
However It did not activate the paint event when I clicked on the button.. Instead, the paint event still activate even before I click on the button? So can anyone teach me on how to activate the paint event when I click on a button?
View 4 Replies
Jul 22, 2010
Ok major problem with a paint program i am making. When i have a window overlap or anything and move to side of screen and minimize and maximize i lose whats in the picturebox...Here is an example of the code I use to draw a line after click a button:
Private Sub btndraw_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnlinedraw.Click
lxs = txtslinelocationx.Text
lxe = txtelinelocationx.Text[code].....
Here is a picture of my program running: How do I stop everything being deleted when things pass it...? how can i add a save feature to this program?
View 5 Replies
May 21, 2009
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
View 4 Replies
Jun 15, 2009
I created a paint type program for signatures, and now I would like to save my canvas as either a jpeg, bitmap, or gif file, but I am unsure how to go about this. Here is my code,
[Code]...
View 5 Replies
Feb 3, 2009
I remember long time ago (though I have not done it for eons by now), that I can embed MS Notepad into a program of mine in VB6. I am now programming using VB2005, and I have a need of a simple drawing tool inside my program. I am wondering if I can embed MS Paint into a VB2005 program?
View 3 Replies
Feb 9, 2011
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 Replies
Mar 19, 2012
I cant find any documentation on making an API for a visual basic application. Does anyone have any ideas where I could start?
View 12 Replies
Mar 31, 2012
I've been working on this project for two weeks now and I'm drained from all the hiccups I've come across. Now I've hit a brick wall.I'm making a "simple" order form in Visual Basic 2010 that calculates the amount due for an order and then from the total determines what the shipping will be. I've been able to accomplish the following tasks:accept customer data (name, address, city, state abbreviation, zipcode)calculate total with shipping costs (accurately, for the most part)clear the order form and exitBut the way I have it right now, a customer can only put in 1 order form.
Problem: I have to figure out a way to allow a customer to place an order form for multiple items. (I'll assume that a customer will not place an order for more than 20 items). So what would be the best way to go about saving the information for multiple items then calculating the cost at the end?If it's multiple form creation, how is that done? Is the keyword "Container" the way to go, and how
Snippet Code:
Private Sub total_mouseleave(ByVal sender As Object, ByVal e As EventArgs) Handles total.MouseLeave
[code].....
View 2 Replies
Sep 11, 2010
I am trying to create a simple paint program with radio buttons to change colors and size of the brush and draw within a panel on my form(VB 2008 Express).I cannot get the buttons to work. What do I need to put in the radion button event to change brush color and then also brush size? Following is the code I have so far, with nothing in the radio button events, because everything I try does not work.
Public Class PaintForm
Private shouldPaint As Boolean = False ' determines whether to paint
Private Sub Panel1_MouseDown(ByVal sender As System.Object, _[code]......
View 6 Replies
Nov 18, 2010
Here is a wierd case - I am making a game in Visual Basic Express 2008 with several forms. Each windows form I've given a quit command that works well to end the game. (Me.Close) However if instead I click on the big X button that windows provides in the upper right hand corner - it does not look to truely stop the program.
I'm running this program in debug mode from the MS VBE editor, but when I click that X it tells me that program is still running even though all
View 5 Replies
Apr 15, 2012
i 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]......
View 6 Replies
Oct 20, 2011
I am making a program which generates a random number between 1 and 10 and when 7 appears it is suppose to tell you how many tries it took to get the number 7 and then end the application. This is the code I have used:
CODE:
This code only generates the number 7 and exits the application, each time i click the random button but i want it to show the other number it randomizes too for example 1 2 3 4 .. etc, if u dont understand, please try it, but im trying to say, when i clikc random it just says number 7 (does randomizing in background) and tells you how much tries it took but i want it to show the other number it randomized also and when 7 appears, then exit the program
View 2 Replies
Apr 8, 2012
I have a procedure at the end of my console application that ask the user to either hit enter to end the program, or type s to perform another search. The issue I'm having is no matter what the user types in the program end. What I would like to happen is if the user types s, then the program starts over and lets the user perform another search. The program is procedural and I need to find a way to start back off at the top of the program which ask the user to type a name to search.
[Code]....
View 1 Replies
Mar 1, 2012
This is going to be a lot to ask, but I'd like to convert my old GW-BASIC program to a command line program with arguments. I'd like it to operate as follows:
elapse [drive:][path]filename This is my old code.
5 CLS
10 OPEN "G:Calc.txt" FOR INPUT AS #1
20 WHILE NOT EOF(1): INPUT #1, A$, B$
30 IF MID$(A$,3,1)=":" THEN C$="DOUBLE DIGIT":GOTO 50
40 IF MID$(A$,2,1)=":" THEN C$="SINGLE DIGIT":GOTO 120
[Code]...
View 3 Replies
Jun 8, 2009
y friend and I are re-learning Visual Basic, and we are stumped on this bit of code.
For intAsterisks As Integer = 0 To intLine - 1
lblAsterisks.Text = lblAsterisks.Text + "*"
Next
View 6 Replies
Dec 3, 2009
What I'm trying to do is make a MSN like rpogram where you can send Text form a Textbox to a listbox between 2 computers. I have read About TCP/IP connections?
View 4 Replies
Oct 7, 2009
I used Microsoft Visual Basic 2008 and i am having trouble making it to where i can make a screen that a video can be played in. I mean i know i have to code it to call if from a folder but i do not know how to set up the form so i can make my own program. My teacher said that there used to be a thing where you just put in on the from and it did it for you is there a special thing you have to download to do that or do you have to actually go through and code it yourself. I do not want to be given code i just want to know the best way of starting my project whether it is making a thing so that i can play the videos
View 3 Replies
Oct 18, 2011
What would be the best way to make a Windows .NET application be the only program that can be used on a computer? I have come across timers or events to switch windows back to a window with matching text and some api32 calls to make a form top most.
Is it possible to make an application like the windows lock screen where nothing can be done except that what is on screen? I want to block users from doing other things and only let administrators get to the desktop.
View 3 Replies
Oct 5, 2009
I am making a program that is very simple, but I'm have problems with it. It runs like this:Theres a textbox and you enter in any amount you want.Next to that there are three radio buttons, deposit, check and service charge.If you enter in 100 in the transaction text box, and check the deposit radio button, and hit "Calculate" it will display 100 (in a total display box); hit calculate again, it will display 200, then 300, etc..Now lets say you keep 100 in the text box, but you check either "service charge" or "check" and hit calculate then it will MINUS the amount in your total display box. So for example if you had 300 in the total display box, and 100 in the transaction box and you checked "Service Charge" and hit calculate it would display 200 in the total display box, hit calculate again, and it shows 100.. etc..
Public Class Form1
Private Balance As Decimal
Private Sub CalculateButton_Click(ByVal sender As System.Object, ByVal e As
[code].....
View 9 Replies
Oct 13, 2009
i am making a menu-like program.i added an existing item, which was setup.exe.it appears in the solution explorer.Now, i want to run it using shell or something else at the click of a button. how do i do this?
View 1 Replies
Jan 25, 2009
i am making a menu-like program.i added an existing item, which was setup.exe.it appears in the solution explorer/Now, i want to run it using shell or something else at the click of a button. how do i do this?
View 3 Replies
Jan 27, 2010
I am making a program in vb.net (visual basic) that has two forms. I have one as a sort of "main" base which will be behind everything. Then I have another additional form which is suppose to go on top of the "main" form. Well I get this to work when I show both of the forms, but I want the smaller (additional) form to be centered onto the main form. If you want an easier sense of it, its a small box in a big box. (all centered and aligned). Does anyone know how to do this?
View 3 Replies
Nov 14, 2008
I have an exe with certain variables that need to be changed for each "make" of the program so that each one is customised, but what I need is to create a program that can edit these variables and generate a new exe, or something that can take the source files from my exe and edit the variables then recompile it. Now I don't want to hear "why not just do them by hand", if I wanted that I wouldn't be asking how to do this, I just need this because I need to create 1000's of these custom exes, and I figured that if I could make a program that can do this (edit the variables and compile new exe) then that would make it easy on me since the variables I need to change go in an order from 1 - 1000. I also need it to work on a regular pc not one with all the special VB plugins and stuff, it needs to be able to work on a fresh install of win xp.
View 1 Replies
Jun 26, 2011
I have searched lots of way to make a 30 day trial limit of my program. They say "Use -Settings- in visual basic application for your variables" to save the information about user (like : registered or not registered or when the program expire). (You can see the 'Settings' when you double-click on "my project" in "solution explorer") Does the data which we use with "settings" saved in our program or somewhere in the computer?
View 5 Replies
Apr 26, 2009
I put it in Communications.For My programming class at school we are required to have made a program. So I decided to make a LAN messaging program which uses VB and Microsoft Winsock Control 6.0. Im quite new and noob at using VB so i'm using a tut here, url... to make the base program.As you can see if you've read it, he uses Microsoft Visual Basic 6.0, while I use Microsoft Visual Basic 2008 Express Edition.
View 3 Replies
May 20, 2011
this is my code till now, i no most of it doesnt make sense but i dont know the most efficient way of making a program that has five lisboxes (4 are classes 1 is absent list) of names but each class can only have 10 student and the user should be able to move student to other classes as required
[Code]...
View 1 Replies
Jan 3, 2011
im making an msn style alert program. im having troubles getting my program to go off when the time/date saved = current time/date. i got the date from a the date selector object and i formatted 2 integer counters and 2 radiobuttons for the time. but my timer() method doest go off. is my thread wrong or did i do something weird with the date?
Option Strict On
Public Class Form1
Dim strName(1000), strHour(1000), strMin(1000), strAMPM(1000), strCheck(1000), strRepeatcnt(1000), strRepeatcbo(1000) As String
Dim dtDate(1000) As Date
[code]...
View 4 Replies
Sep 17, 2009
I am making a calculator-like program, and would like to make it so that it is always the front-most form, even when another program (like Firefox) is clicked. While Firefox is the active form, my form is still up. Basically, I'd like to make the form like the on-screen keyboard; it never really minimizes unless you specifically tell it to.
[Code]...
View 1 Replies