I'm having a problem with drawing on picturebox in vb.net programing.
I draw line(or another shape's) on picturebox, anytime screen refreshes(open dialogbox ro menu,...) the drawn line on picturebox disapears.
Private Sub PictureBox1_Mou seDown(ByVal sender As Object, ByVal e As System.Windows. Forms.MouseEven tArgs) Handles PictureBox1.Mou seDown
x1 = e.Location.X
y1 = e.Location.Y
End Sub
Private...
User Profile
Collapse
-
Dear paul,
You must use "form'sname.var iable's name" to assignment.
In addition you shoud definition your variable's between "bublic class form1 and end class.
for example I have 2 forms and I want use for variable in form2.vb that defined in form1.vb.
Public Class Form1
Public X As String = "paul"
Private Sub Form1_Load(ByVa l sender As System.Object,...Last edited by motiee; Mar 24 '06, 04:12 PM. -
VB.NET Problem's
I'm having a problem with drawing on picturebox in vb.net programing.
I draw line(or another shape's) on picturebox, anytime screen refreshes(open dialogbox ro menu,...) the drawn line on picturebox disapears.
Private Sub PictureBox1_Mou seDown(ByVal sender As Object, ByVal e As System.Windows. Forms.MouseEven tArgs) Handles PictureBox1.Mou seDown
x1 = e.Location.X
y1 = e.Location.Y
End...Last edited by motiee; Mar 24 '06, 06:51 PM.
No activity results to display
Show More
Leave a comment: