Click here to Skip to main content
16,010,650 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Error while executing cmd command through vb.net Pin
Dave Kreskowiak22-Feb-10 6:24
mveDave Kreskowiak22-Feb-10 6:24 
GeneralRe: Error while executing cmd command through vb.net Pin
Gagan.204-Mar-10 4:11
Gagan.204-Mar-10 4:11 
GeneralRe: Error while executing cmd command through vb.net Pin
Dave Kreskowiak4-Mar-10 13:00
mveDave Kreskowiak4-Mar-10 13:00 
QuestionLineShape control not moving freely with cursor Pin
for120622-Feb-10 0:05
for120622-Feb-10 0:05 
AnswerRe: LineShape control not moving freely with cursor Pin
Dave Kreskowiak22-Feb-10 3:26
mveDave Kreskowiak22-Feb-10 3:26 
GeneralRe: LineShape control not moving freely with cursor Pin
for120622-Feb-10 17:09
for120622-Feb-10 17:09 
GeneralRe: LineShape control not moving freely with cursor Pin
Dave Kreskowiak22-Feb-10 17:42
mveDave Kreskowiak22-Feb-10 17:42 
GeneralRe: LineShape control not moving freely with cursor [modified] Pin
for120622-Feb-10 19:02
for120622-Feb-10 19:02 
Hi Dave ,

Thanks for reply & Thanks for the Link ,Presently i am using ur code in my application for changing the line startpoint and endpoint and dragging the line also.

Can u suggest me in a sample program that how can i move a LineShape control freely around the form with cursor without slipping .

This is happening in a sample new form.

This is the code i used & its slipping from cursor .

Dim fdragging As Boolean = False
    Dim StartX, startY As Integer

  
    Private Sub LineShape1_MouseDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles LineShape1.MouseDown
        fdragging = True
        StartX = e.X
        startY = e.Y
    End Sub

    Private Sub LineShape1_MouseMove(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles LineShape1.MouseMove
        Cursor.Current = Cursors.SizeAll
        If fdragging Then
            LineShape1.StartPoint = New Point(LineShape1.StartPoint.X + e.X - StartX, LineShape1.StartPoint.Y + e.Y - startY)
            LineShape1.EndPoint = New Point(LineShape1.EndPoint.X + e.X - StartX, LineShape1.EndPoint.Y + e.Y - startY)
        End If
    End Sub

    Private Sub LineShape1_MouseUp(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles ShapeContainer1.MouseUp
        fdragging = False
        StartX = 0
        startY = 0
    End Sub


its important for me . plz can u suggest any work around ?

Regards,
For1206
modified on Tuesday, February 23, 2010 1:57 AM

GeneralRe: LineShape control not moving freely with cursor Pin
Dave Kreskowiak23-Feb-10 1:10
mveDave Kreskowiak23-Feb-10 1:10 
GeneralRe: LineShape control not moving freely with cursor Pin
for120623-Feb-10 1:17
for120623-Feb-10 1:17 
QuestionUsing "LIKE" Pin
EvanSaunders21-Feb-10 21:12
EvanSaunders21-Feb-10 21:12 
AnswerRe: Using "LIKE" Pin
Wayne Gaylard21-Feb-10 21:30
professionalWayne Gaylard21-Feb-10 21:30 
GeneralRe: Using "LIKE" Pin
EvanSaunders21-Feb-10 21:39
EvanSaunders21-Feb-10 21:39 
GeneralRe: Using "LIKE" Pin
JustWorking21-Feb-10 21:46
JustWorking21-Feb-10 21:46 
AnswerRe: Using "LIKE" Pin
JustWorking21-Feb-10 21:33
JustWorking21-Feb-10 21:33 
GeneralRe: Using "LIKE" Pin
EvanSaunders21-Feb-10 21:42
EvanSaunders21-Feb-10 21:42 
AnswerRe: Using "LIKE" Pin
Dave Kreskowiak22-Feb-10 3:21
mveDave Kreskowiak22-Feb-10 3:21 
QuestionAutodetect Pin
JustWorking21-Feb-10 20:30
JustWorking21-Feb-10 20:30 
AnswerRe: Autodetect Pin
Anubhava Dimri22-Feb-10 0:55
Anubhava Dimri22-Feb-10 0:55 
GeneralRe: Autodetect Pin
JustWorking22-Feb-10 1:27
JustWorking22-Feb-10 1:27 
GeneralRe: Autodetect Pin
Anubhava Dimri22-Feb-10 1:48
Anubhava Dimri22-Feb-10 1:48 
GeneralRe: Autodetect Pin
JustWorking22-Feb-10 2:15
JustWorking22-Feb-10 2:15 
QuestionGenerating datas in GridView and export to Excel [modified] Pin
John.L.Ponratnam21-Feb-10 19:39
John.L.Ponratnam21-Feb-10 19:39 
AnswerRe: Generating datas in GridView and export to Excel Pin
Paramu197321-Feb-10 23:05
Paramu197321-Feb-10 23:05 
Questionpause and resume the execution upon finding a certain character in a textfile. Pin
xiah_junsu21-Feb-10 16:06
xiah_junsu21-Feb-10 16:06 

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.