Draw Free Hand On A Form ?
Aug 11, 2011I need to draw free hand on a form i know how i can change the colors buts its just the drawing part. i also need it to save and load how would i do this ive been searching but nothing.
View 10 RepliesI need to draw free hand on a form i know how i can change the colors buts its just the drawing part. i also need it to save and load how would i do this ive been searching but nothing.
View 10 Replies1) How do I force a form to open in a certain position on the monitor? ie. by default it starts in the top left corner of the screen. I want it to open in the bottom right corner. Also, is there a way to do this as a % rather than in pixels? As I want it to be in the correct position regardless of the resolution being used.
2) Can you remove the "x" close button on the top right hand corner of a form? If you can't, is there a way to disable it?
Im trying to make a form popup on the bottom right hand corner of my screen to display a message when the application opens.I know i can set the location in the properties but that may vary depending on the monitor the application is displayed on, how can i code it so that it can detect were the bottom right hand corner of any screen is ?
View 3 RepliesDoes anybody know a way to skin a form for free ?
View 7 Replieswhere i can download some free toolbox controls for Windows Form for .NET?
Ive had a look around and im a student and cant afford the typical 1000 dollar lisences?
Just need to be able to Draw with the mouse the area that needs to be cut out or modified. Basically like the Photoshop's Lasso tool.
View 4 RepliesI'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?
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]...
How can I do the same thing with other shaped like rectangle?
I know that I need x,y,widht,height but it still don't do my rec.
in vb.net i would like to draw a regular line on a form. is there a control to do this?
View 2 RepliesCan i draw a image outside my form?
View 3 RepliesI want to move cursor with visual basic and it seems I found way how to do that. It is possible even click with Visual Basic whereever on screen. But I cannot check out where on the screen the click was done and so I want to draw two short crossing lines on that point as marker where Visual Basic clicked on screen. If it is possible to move cursor to that position and show it then it is as good as drawing marker.
View 4 RepliesCan I draw my own shapes (such as a filled circle, square, etc.) on a form?Can it be done from code as well as from the designer?Can I use events such as onClick() on the shapes?
View 3 RepliesDraw rectangle outside of form?[url]...
View 1 RepliesI would like to draw a rectangular outside the form using mouse position but so far, I only found out how to draw rectangular inside the form.
View 12 RepliesI want to draw a histogram when Form2 is loaded, I load Form2 using button of Form1 It didnt work, Form2 is loaded, but no image...i dont know why here's the code
Private Sub Form2_Paint(ByVal sender As System.Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles MyBase.Paint
Dim img As Graphics = PictureBox1.CreateGraphics
[Code]....
On Form1 we have: TextBox1 TreeView1 - holds list of customers, is located near the bottom of the form, not visible from the start. Now, when I start typing text in TextBox1 (i need to filter customers), TreeView1 appears and suggest for example 30 customers matching the searched text. I want the program to show the treeview and draw it also outside of the Form1 boundaries.
View 7 RepliesI am basically teaching my students about OO programming and want them to be able to see the outcomes to methods visually. I want to draw shapes on a form but cant for the life of me get it to work - no errors but no actual shapes are being drawn. So I have created a method called drawFace which is run when a new instance of the object is created. This method has the following code in it
Form1.CreateGraphics.DrawEllipse(Pens.Black, 100, 100, 100, 50)
It doesn't cause any errors, but it doesn't seem to do anything. Also tried adding a picture box to the stage and ammending the code as such
Form1.PictureBox1.CreateGraphics.DrawEllipse(Pens.Black, 100, 100, 100, 50)
But still no joy.
i am trying to create a form that allows me to add teams and the scores and then be able to re-open and view them. i have created a form that will create the team names and save it to a file but i have no idea how to create one that will show the scores with the corresponding teams. i am using visual basic express 2008.
View 2 RepliesI need to draw a'wave form' in a panel inVB.net, the wave form will be updated once every one second. the problem is the screen blinking whenever it is updated. how can I solve this problem? the paint event code as below.
[code]...
This code is to draw a circle in the form with one button in vb.net. Dim g as system.drawing.graphics
g=me.creategraphics
dim p as new system.drawing.pent(system.drawing.color.Blueviolet)
g.drawellipse(p,150,100,30,60)
end sub
this is not working it is showing the error in the declaration of p any one can help me out to rectify this error
I have a control that looks similar to the following:
I need to add slightly round ends where all that extra end space is. I'm not sure how to add these. It should look similar to the round ends on this page.
Well if I press Button1 my dot dashed line is correctly drawn over Label1, but what I need is that program automatically does it on form load.[code]
View 2 Repliesin a ordinary form I added a label (Label1) and a button (Button1) with the followiing handler. Well if I press Button1 my dot dashed line is correctly drawn over Label1, but what I need is that program automatically does it on form
load.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim Graphic As System.Drawing.Graphics
[Code].....
I treid this code to draw the cells value of DataGridView on the form. but it display the three cells in the same place means: if the cells including A-B-C it didn't showed them like this : A B C
[code]For i As Integer = 0 To 2
Dim g As Graphics
g = Me.CreateGraphics()
[Code]....
i want to "draw" zebra lines in my form [code] ican import background image, but I prefer code :)
View 1 RepliesIt seems that my form refuses to draw quickly enough. I am using this
[code]...
This ends with the form freezing for a moment, and then it resizes, but it's not until the end of the resize does it display properly, during the resize, their is a big black bar where the new part of the form is supposed to be.And when it's done resizing, it draws itself correctly.
The image editor toolbar is not active. I would like to draw lines and shapes on a form.
View 1 RepliesI 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 RepliesI 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?