Click here to Skip to main content
15,918,268 members
Home / Discussions / C#
   

C#

 
QuestionHas somebody made a surveillance thread which doesn't die? Pin
Klive825-Oct-07 2:44
Klive825-Oct-07 2:44 
AnswerRe: Has somebody made a surveillance thread which doesn't die? Pin
sujithkumarsl25-Oct-07 2:55
sujithkumarsl25-Oct-07 2:55 
GeneralRe: Has somebody made a surveillance thread which doesn't die? Pin
Klive825-Oct-07 3:23
Klive825-Oct-07 3:23 
AnswerRe: Has somebody made a surveillance thread which doesn't die? Pin
mav.northwind25-Oct-07 3:48
mav.northwind25-Oct-07 3:48 
QuestionProblem with moving picturebox with Cursor on Mouse_Move event. Pin
Chintan.Desai25-Oct-07 1:50
Chintan.Desai25-Oct-07 1:50 
AnswerRe: Problem with moving picturebox with Cursor on Mouse_Move event. Pin
Christian Graus25-Oct-07 1:55
protectorChristian Graus25-Oct-07 1:55 
GeneralRe: Problem with moving picturebox with Cursor on Mouse_Move event. Pin
Chintan.Desai25-Oct-07 22:59
Chintan.Desai25-Oct-07 22:59 
AnswerRe: Problem with moving picturebox with Cursor on Mouse_Move event. Pin
Abhijit Jana25-Oct-07 2:34
professionalAbhijit Jana25-Oct-07 2:34 
You have alredy post that question, a few day ago...... if i am not wrong....

Your Same Post.....[^]
and my answer was...

Private dragging As Boolean
Private beginX, beginY As Integer

Private Sub PictureBox1_MouseDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseDown
dragging = True
beginX = e.X
beginY = e.Y
End Sub

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

Private Sub PictureBox1_MouseMove(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseMove
If dragging = True Then
PictureBox1.Location = New Point(PictureBox1.Location.X + e.X - beginX, PictureBox1.Location.Y + e.Y - beginY)
Me.Refresh()
End If
End Sub
Laugh | :laugh: Laugh | :laugh:



Best Regards
-----------------
Abhijit Jana
View My CodeProject Articles

"Success is Journey it's not a destination"

QuestionHow to store and retreave a word document in sql server data base using c#.net Pin
bobin scaria25-Oct-07 1:39
bobin scaria25-Oct-07 1:39 
AnswerRe: How to store and retreave a word document in sql server data base using c#.net Pin
Pete O'Hanlon25-Oct-07 1:46
mvePete O'Hanlon25-Oct-07 1:46 
Questioncustom control Pin
Tauseef A25-Oct-07 1:17
Tauseef A25-Oct-07 1:17 
AnswerRe: custom control Pin
Martin#25-Oct-07 1:40
Martin#25-Oct-07 1:40 
QuestionRe: custom control Pin
Tauseef A25-Oct-07 2:01
Tauseef A25-Oct-07 2:01 
QuestionGDI+ question Pin
ali_reza_zareian25-Oct-07 1:17
ali_reza_zareian25-Oct-07 1:17 
AnswerRe: GDI+ question Pin
Thomas Krojer25-Oct-07 5:27
Thomas Krojer25-Oct-07 5:27 
GeneralRe: GDI+ question Pin
ali_reza_zareian25-Oct-07 6:44
ali_reza_zareian25-Oct-07 6:44 
AnswerRe: GDI+ question Pin
Dave Kreskowiak25-Oct-07 7:31
mveDave Kreskowiak25-Oct-07 7:31 
Question"dot" Pin
new2pgrmg25-Oct-07 0:52
new2pgrmg25-Oct-07 0:52 
AnswerRe: "dot" Pin
Christian Graus25-Oct-07 1:00
protectorChristian Graus25-Oct-07 1:00 
GeneralRe: "dot" Pin
kabutar25-Oct-07 1:58
kabutar25-Oct-07 1:58 
GeneralRe: "dot" Pin
Christian Graus25-Oct-07 2:10
protectorChristian Graus25-Oct-07 2:10 
AnswerRe: "dot" Pin
azifaliazif25-Oct-07 2:31
azifaliazif25-Oct-07 2:31 
GeneralRe: "dot" Pin
sujithkumarsl25-Oct-07 2:48
sujithkumarsl25-Oct-07 2:48 
QuestionRe: "dot" Pin
wrzhi_200525-Oct-07 4:15
wrzhi_200525-Oct-07 4:15 
AnswerRe: "dot" Pin
sujithkumarsl25-Oct-07 4:25
sujithkumarsl25-Oct-07 4:25 

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.