Make A Program That Can Draw On A Form?
May 18, 2012
I was able to make a program that can draw on a form but if I draw very fast, the lines are cut. Check image below :
Another is I want to make my form be able to load a power point presentation. Is it possible? Also, I was wondering if it is possible to save the form as image file like what we do in screenshot?
View 3 Replies
ADVERTISEMENT
Oct 17, 2010
I am currently using Visual Basic 2008 Express Edition.I want to make a program that will draw 700 random lines on it initially. I tried my code but the lines only appear in the same way such as straight line and diagonal line. Here's my code:
Public Class Form1
Private Sub Form1_Paint(ByVal sender As System.Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles MyBase.Paint
[Code].....
View 3 Replies
Apr 23, 2010
I need a code that when put in a timer will create a cursor were your cursor is and then leave it there. So its like a place marker to let you know were you were when you clicked.
View 2 Replies
Apr 2, 2011
On my program I am trying to make a form that would activate the program.I have the activation codes but when the user enters the activation code in a text box, is it possible that it would erase that activation code or wont accept that activation code again after being used once. Then if the program accepts the activation code can it open the main form (form1) and if the user closes the program and the re-opens the program, is it possible that the activation form doesn't open again and instead, going to the main form. I have this password code:
Private Sub textbox4_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MaskedTextBox1.KeyDown
Static WrongCount As Integer = 0[code].....
Then can there be slashes every 4 characters in the text box?
View 1 Replies
Jun 12, 2009
How do you make a glass form in VB.NET? Like the vista/win7 effect, but extended into the form. I saw a tutorial for C#, but can't find one for VB.NET
View 6 Replies
Jun 22, 2010
Im trying to make a program that has a main form(menu form) and when i click on the buttons another separate form will appear.
View 1 Replies
Oct 13, 2009
I have a vb.net form which has a button in it. The button will call A.exe (it's a vb.net exe) using the command Shell("A.exe ", AppWinStyle.NormalFocus).
How can I make sure that everytime I press on the button, A.exe will only open once, and does not open a new form each time?
View 4 Replies
Aug 17, 2009
i would like to be able to make my form title to be something like (document title) - (name of program). The document title is the title of rtb document. how would i do this? i sorta have start.
Me.Text = String.Format("iPad - {0}", rtbeditor.Name.ToString)
View 12 Replies
Aug 25, 2009
I have a table inside my database, and i wish to insert/update/delete entries in a FormView Manner (I mean no datagrid) but a set of textbox/combobox/listbox/checkbox for one record. Before modifying/adding data i have to perform some extra checks to enter correct values to my database. How will i be best off doing it? I am currently using a datatableadapter to perform datatableadpter.insert, and also datatableadpater.update. How can i make use of datasets here and what is the best way for it?
View 2 Replies
Jun 26, 2010
I have a form in vb.net with a checkbox and I want it to stay in top of other windows if the user checks the checkbox and not to stay in top of other windows when the checkbox is not checked
View 2 Replies
Feb 11, 2010
How can make my form look like microsoft's series of program like word
View 34 Replies
Jul 24, 2011
I am just wondering on how can i make a list of recent file opened on my program in vb.net. The recent files filenames must be in a linklabel in a form and in the menustrip.
View 5 Replies
Jul 16, 2011
i am trying to make a program that can get information form a magnetic card reader to fill in a text box like an id and/or password. or make a new account. i am using a MagTek SureSwipe Card Reader 21040140?
View 1 Replies
Sep 19, 2011
Is it possible to make a program with visual basic 2010 that does not use the actual form but instead only uses other components (e.g. Message Box) to form a complete program?
View 2 Replies
Dec 11, 2009
I have an automated electrical tester, I want to create a type of map file so that way the user can select a subset of devices to test. So basically I want to create a type of grid that the user will be able to highlight specific rectangles in the grid so that way the tester knows to test only those specific locations. To start I want to create a 4X4 grid and each individual rectangle in the grid will contain some coordinate information. Does anyone have a tiny example of how I can draw a 4X4 grid, or any thoughts on the best way to do this? The real final map I will be making will have over 50K devices.
View 1 Replies
Oct 20, 2010
I am about to make a simple Raffle Draw System.I can display the random ID's of participants, but what I really wanted to achieve is that the names are the ones to be displayed randomly..
Say when a user click the button, using a timer a certain label will randomly display names of participants from the database and by such time that he stop the timer, the name of the winner will eventually shown.[code]...
View 3 Replies
Aug 23, 2009
I want to make a pretty easy program which repeat some easy things for me
STEP 1: on the first picture I want it will wrote a URL in the form + example [url].....
STEP2: thenI want then the program press on the link Get video
STEP3: and after that will the program "Right click here to download the video"and copy link location
STEP4: finally I want the program will paste paste URL into a new form? is this hard to made?
STEP5: if its possible I want also have a button example name "generate" which add a number of the URL from [url]...10000 to [url]....10001 and the repeat the things and paste into the form>is this hard to wrote a program which made this steps?
View 2 Replies
Dec 18, 2011
[code]How i can make The Program to find Numbers On Form and Do That without making So Many "Same" Codes?Its Pretty Annoying To Make Big Program nad only Copying and Pasting Text.
View 3 Replies
Jul 16, 2010
How do I Close a Form and then open a new one straight away? Im trying to make a Login for a Program, but I want the Login Box to open first, then disappear when the credentials are correct and a new Form to load.
View 3 Replies
Mar 28, 2011
Does anyone have any code that can draw an equilateral septagon in vb.net?
All sides and angles need to be equal.
View 2 Replies
Oct 23, 2010
Im make a portable program which has a form with a few different pictures like a photo gallery.when you hover the mouse over a picture it will appear enlarged in a floating box infront of the form. Then when the the mouse is taken away from this floating box the box will disapear and leave you with the picture gallery again?
View 3 Replies
Oct 11, 2009
I'm a unviversity student and for an assignment we have to make a simple project where the user specifies a shape and a color, and then the shape is drawn in some kind of space. So like they choose circle, green, and in this blank space on the form a green circle appears, pretty simple. Anyways we have some kind of msdn alliance thing where we can download Visual Studio for academic purposes, so I downloaded Visual Studio 2008. I spent about an hour going through the tool box trying to figure out what could possibly allow me to draw stuff in it, and I'm really not sure what it could be. On some online tutorials it said something about a function on picture boxes like picturebox.Circle(100,100), 100, vbgreen or something similar, and when I tried making a picturebox and writing this code nothing worked. My friend told me to use a 'canvas' but neither of use know how to actually find such a control (its not in the toolbox).[urls]....
View 14 Replies
Jun 12, 2009
Currently I'm trying to make multi selection (draw shape) on the picturebox but no matter how i edit my code, it jus dn draw any square or circle when I click on my button (either circle or square).
Below are the codes that i'm currently working on:
Public Class Page_2
Public blnCircleClicked As Boolean 'Is The Circle Tool Clicked?
Public blnSquareClicked As Boolean 'Is The Square Tool Clicked?
[Code]......
View 5 Replies
May 27, 2011
Is it possible to make a simple Image Editor were you can draw and edit images in vb.net? If so how would you do that? (Its would also have to compile the image as well into an image format)
View 4 Replies
May 31, 2009
I am building an app that builds a bunch of cardinal splines by storing their PointF structures in arrays. As the program runs, new points are added to the arrays, and the graphics are drawn to a bitmap. I can let it run for ages and the splines just keep growing like they should with no problems. The amount of points in each spline can grow into the thousands. To speed up execution as time progresses, I don't completely redraw the splines after each pass, I simply draw the last segment of the spline to the bitmap, having let the bitmap 'record' the earlier part of the splines.
But if I pan across the scene or zoom in/out of it, then I DO have to completely redraw the splines, since the size and resolution of the display is limited to its dimensions. Panning works, no problem. But if I zoom in and out of the bitmap with the mouse wheel, after about 14 wheel clicks, I get an "Out of Memory" error. BUT...I have it set up so that whenever the mouse wheel turns, the graphics and the bitmap are disposed so that new ones can be built for the new zoom setting. So why would the program run out of memory when as far as I can tell, I am disposing of all my unused, unmanaged resources on a regular basis?
View 3 Replies
Apr 24, 2009
i am newbie in constructing layouts in crystal report.i have details section in left side of the page
Subject A |_______|________|________ | Subject B |_______|_________________| Subject C |_______|________|________ | Subject D |_______|_________________| Subject E |_______|____Total__|________ |
there can be different number of rows at the left side,meaning it depends on output of the query.And heres the problem, i need to make another table at the right side. how to make a table at the right side or draw lines without affecting details section? this is just purely table without fields on it.
View 1 Replies
Jan 27, 2010
I'm currently working on a VB 2008 course of Michael Halverson, and I'm stuck at an assignment where I'll have to expand a previous wood order program so customers can add woodcuts to their orderIn the newer program a customer can define 4 coordinates (x & y for startpoint and x & y for endingpoint), after clicking on the button 'Next cut' a line will be drawn on screen (in PanelCuts) with a maximum of ten lines. After finishing, the coordinates must be saved in the order.txt, and when the client re-select the order in the main order program, they can review and adjust / remove the already specified cuts.Right now I'm at the point that the you can enter the coordinates, and the line will be drawn.
- What's the best way to store the submitted cuts, in a Label? array? or something else?
- When the form reloads, how to displays all previous made cuts? Can i count the numer of cuts and with For i = 1 to combined with SelectedItem. Split() ? [code]
View 3 Replies
Nov 22, 2011
I'm currently working on a screenshot program, much like Gyazo and I've come across a problem.
[code]...
Now, it draws perfectly when I drag left to down (vice versa), but when I try and drag the opposite way (this is when I get negative x and y values), it doesn't seem to draw the rectangle.I've tried fixing it but with no luck at all, it just messes it up :c
View 2 Replies
Nov 11, 2011
I'm trying to draw a 400x400 px image to a 400x400 form that I made. What I'm doing is:
Graphics.DrawImage Method (Image, 0, 0, 400, 400) 0, 0, 400, 400, ...
But when I run the form, the image seems to stretch slightly upon the y-axis, the x-axis seems to be working correctly.
This was what I was doing before (stretching the old smaller images to fit the size)
... (Image, 0, 0, 264, 231) 0, 0, 400, 400, ...
or something like that. Now that I'm trying to do it the correct way, I can't seem to get it to work properly.
Edit: I wonder if using a simpler verson of Graphics.DrawImage would work?
View 1 Replies
Feb 14, 2011
I have an "application" that consists of a form Form1, with the following code behind it:
Public Class Form1
Dim xDown As Integer, yDown As Integer
Dim g As Graphics = Me.CreateGraphics
Dim p As Pen = New Pen(Color.Black, 1)
Dim r As New Rectangle
[Code]...
View 7 Replies