View previous topic :: View next topic |
Author |
Message |
GradenT Newbie cheater Reputation: 0
Joined: 06 May 2012 Posts: 17
|
Posted: Thu Sep 20, 2012 12:41 pm Post subject: [SOLVED] The problem with the form "bsNone" |
|
|
Hello Dark Byte !
Tell us how we can move the form "bsNone" for the picture.
Internet search has not given anything concrete.
In Visual Basic 2010, it looks like this:
===================================================================
Code: |
Dim b As Integer
Private Property a As Integer
Private Sub PictureBox1_MouseDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseDown
a = Control.MousePosition.X - Me.Location.X
b = Control.MousePosition.Y - Me.Location.Y
End Sub
Private Sub PicturetBox1_MouseMove(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseMove
If e.Button = MouseButtons.Left Then
Dim newPoint As New System.Drawing.Point()
newPoint = Control.MousePosition
newPoint.X = newPoint.X - (a)
newPoint.Y = newPoint.Y - (b)
Me.Location = newPoint
End If
End Sub
|
============================================================
Tried to do something like this in a generate generic trainer "lua script: from table", did not work.
That's the problem.
You are the only hope.
Last edited by GradenT on Tue Oct 30, 2012 9:25 am; edited 1 time in total |
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 457
Joined: 09 May 2003 Posts: 25262 Location: The netherlands
|
Posted: Thu Sep 20, 2012 3:00 pm Post subject: |
|
|
Give the image an onMouseDown event and put in there this code
Replace (form) with the formname
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
GradenT Newbie cheater Reputation: 0
Joined: 06 May 2012 Posts: 17
|
Posted: Thu Sep 20, 2012 10:24 pm Post subject: The problem with the form "bsNone" |
|
|
Thank you for responding.
I have tried many options and they all produce an error.
I took a screenshot.
Tell me what the problem is ?
Description: |
|
Filesize: |
303.96 KB |
Viewed: |
9259 Time(s) |
|
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 457
Joined: 09 May 2003 Posts: 25262 Location: The netherlands
|
Posted: Fri Sep 21, 2012 2:25 am Post subject: |
|
|
not bsNone but the name of the form
In your case probably CETrainer
Also, close the formdesigner (the bar at top) when testing so the form turns into a normal form, else it might override the mousedown
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
GradenT Newbie cheater Reputation: 0
Joined: 06 May 2012 Posts: 17
|
Posted: Sat Sep 22, 2012 3:35 am Post subject: |
|
|
It works.
Thank you!
|
|
Back to top |
|
|
GradenT Newbie cheater Reputation: 0
Joined: 06 May 2012 Posts: 17
|
Posted: Mon Sep 24, 2012 3:43 am Post subject: |
|
|
Decision:
Code: | function CEImage1MouseDown(sender, button, x, y)
form_dragNow(CETrainer)
end |
|
|
Back to top |
|
|
|