Click here to Skip to main content
15,898,035 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionreal time graphics in VB.net from serial port Pin
2of10031-Jan-07 0:50
2of10031-Jan-07 0:50 
AnswerRe: real time graphics in VB.net from serial port Pin
Johan Hakkesteegt1-Feb-07 2:47
Johan Hakkesteegt1-Feb-07 2:47 
QuestionHow to enable users to draw line on windows form vb.net? Pin
.NetRams31-Jan-07 0:11
.NetRams31-Jan-07 0:11 
AnswerRe: How to enable users to draw line on windows form vb.net? Pin
Christian Graus31-Jan-07 0:23
protectorChristian Graus31-Jan-07 0:23 
Question.Net Framework Pin
Manas'30-Jan-07 23:51
Manas'30-Jan-07 23:51 
AnswerRe: .Net Framework Pin
Meg W31-Jan-07 2:09
Meg W31-Jan-07 2:09 
Question[Message Deleted] Pin
TheApocalypse30-Jan-07 23:25
TheApocalypse30-Jan-07 23:25 
AnswerRe: Urgent ! Free Hand Drawing Pin
TwoFaced30-Jan-07 23:41
TwoFaced30-Jan-07 23:41 
Here is an example that should work. You just need a form with a picturebox. Copy the code into your project and start drawing.
Public Class Form1

    Private IsDrawing As Boolean = False
    Private StartPoint As Point

    Private Sub PictureBox1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseDown
        If e.Button = Windows.Forms.MouseButtons.Left Then
            IsDrawing = True
            StartPoint = e.Location
        End If
    End Sub

    Private Sub PictureBox1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseMove
        If IsDrawing Then
            PictureBox1.CreateGraphics.DrawLine(Pens.Black, StartPoint, e.Location)
            StartPoint = e.Location
        End If
    End Sub

    Private Sub PictureBox1_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseUp
        IsDrawing = False
    End Sub
End Class

AnswerRe: Urgent ! Free Hand Drawing Pin
Christian Graus31-Jan-07 0:04
protectorChristian Graus31-Jan-07 0:04 
GeneralRe: Urgent ! Free Hand Drawing Pin
.NetRams31-Jan-07 1:40
.NetRams31-Jan-07 1:40 
GeneralRe: Urgent ! Free Hand Drawing Pin
Christian Graus31-Jan-07 8:47
protectorChristian Graus31-Jan-07 8:47 
QuestionMDI Form Pin
skandaapriya30-Jan-07 23:18
skandaapriya30-Jan-07 23:18 
QuestionHow i can export data from grid to excel Pin
saravanaks30-Jan-07 23:07
saravanaks30-Jan-07 23:07 
AnswerRe: How i can export data from grid to excel Pin
Hari Om Prakash Sharma31-Jan-07 0:55
Hari Om Prakash Sharma31-Jan-07 0:55 
QuestionMDI forms Pin
skandaapriya30-Jan-07 23:06
skandaapriya30-Jan-07 23:06 
Questioni want to create my own button in vb.net Pin
anujose30-Jan-07 22:29
anujose30-Jan-07 22:29 
AnswerRe: i want to create my own button in vb.net Pin
haneef130-Jan-07 22:53
haneef130-Jan-07 22:53 
GeneralRe: i want to create my own button in vb.net Pin
Guffa30-Jan-07 22:56
Guffa30-Jan-07 22:56 
AnswerRe: i want to create my own button in vb.net Pin
Guffa30-Jan-07 22:55
Guffa30-Jan-07 22:55 
GeneralRe: i want to create my own button in vb.net Pin
anujose30-Jan-07 23:09
anujose30-Jan-07 23:09 
GeneralRe: i want to create my own button in vb.net Pin
anujose30-Jan-07 23:30
anujose30-Jan-07 23:30 
AnswerRe: i want to create my own button in vb.net Pin
Guffa31-Jan-07 4:23
Guffa31-Jan-07 4:23 
QuestionClosing form before Continue Pin
Dave McCool30-Jan-07 22:27
Dave McCool30-Jan-07 22:27 
AnswerRe: Closing form before Continue Pin
Johan Hakkesteegt30-Jan-07 23:14
Johan Hakkesteegt30-Jan-07 23:14 
QuestionChange cell value of datagrid at run time Pin
vietht30-Jan-07 20:58
vietht30-Jan-07 20:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.