Wie lautet der code zum verschieben einer Form,
wenn Formboarderstyle = None ist?
Habe eine Imagebox als Form, da meine Form transparent ist.
Kennt jemand den Code? Es ist auf jedenfall nicht der
gleiche, wie als wenn man einfach nur formboarderstyle auf "none" setzt.
Dim Point As New System.Drawing.Point()
Dim X, Y As Integer
Private Sub Main_MouseMove(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles MyBase.MouseMove
If e.Button = MouseButtons.Left Then
Point = Control.MousePosition
Point.X = Point.X - (X)
Point.Y = Point.Y - (Y)
Me.Location = Point
End If
End Sub
Private Sub Main_MouseDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles MyBase.MouseDown
X = Control.MousePosition.X - Me.Location.X
Y = Control.MousePosition.Y - Me.Location.Y
End Sub
Weis ja nicht was du falsch machst, aber ich kann den Code einfach C&P'en und er funzt direkt <.<
Btw. Schreibt er das auch in den Eventhanlder der Form rein? Wenn nicht, wie wäre es mit manuel eintragen ;o
Edit: Sehe gerade erst, dassu ja anscheinend eine PictureBox über die ganze Form gelegt hast und nicht einfach nur das Backgroundimage verändert hast, in dem Fall muss der Code natürlich in das Event von der PictureBox, weil sonst die Mausbefehle gar nicht ankommen <.<
Private Sub Label1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Label1.MouseDown If (e.Button = Windows.Forms.MouseButtons.Left) Then Label1.Capture = False Me.WndProc(Message.Create(Me.Handle, &HA1, CType(&H2, IntPtr), IntPtr.Zero))
Else : End If End Sub
Besser wäre es wenn du statt einem Label ein Panel nimmst:
PHP Code:
Private Sub Panel1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Panel1.MouseDown If (e.Button = Windows.Forms.MouseButtons.Left) Then Panel1.Capture = False Me.WndProc(Message.Create(Me.Handle, &HA1, CType(&H2, IntPtr), IntPtr.Zero))
:S Form in einer Combo (left,hight, ...) verschieben 08/18/2011 - AutoIt - 10 Replies Hilfe bitte warum geht des net ?
Fehler liegt in zeile 112 - 155
#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("° Support ° ", 354, 435, 661, 227, BitOR($WS_SYSMENU,$WS_POPUP,$WS_POPUPWINDOW,$WS_BO RDER,$WS_CLIPSIBLINGS))
Druid Cat Form -> FireLands Cat Form 08/01/2011 - World of Warcraft - 2 Replies Hallo Leute,
hat jemand die Möglichkeiten mir eine Tauren Katze zur Firelands Katze zu swappen - sofern dies in 4.2 FIRELANDS noch möglich ist.
Wobei die Vergangenheit uns gelehrt hat, das es immer Mittel und Wege gibt. (:
http://manaflask.com/images/galleries/scaled_1307 971939_flamecat.jpg
LG
Windkirsche
Von Form Zu Form Wechseln. 04/14/2011 - AutoIt - 2 Replies Hallo Erstmal!
Ich wollte mal etwas machen das von einer form zur anderen wechselt jetzt wollt ich das aber auch so machen das wenn man auf einen zurück button klickt es wieder zur ersten form kommt und dann alles neu einstellen kann. also bis zu dem zurück und neu einstellen hab ich geschafft aber wenn man dann wieder auf weiter klickt passiert nix ... Könntet ihr mir helfen? Hier ist ein beispiel script
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include...
NPC verschieben 10/04/2009 - Metin2 Private Server - 0 Replies hallo
ich würde gerne wissen wie man npcs verschieben kann ;)
also z.b. den schmied auf den dorfplatz setzten oder so^^
suchen kann man ja nich weil bei npc sinds zu wenig buchstaben xD
wenns so ein thema schon gibt könnte pls jemand den link posten
thx nick
Druid Tree form buff without tree Form 11/11/2007 - WoW Exploits, Hacks, Tools & Macros - 5 Replies My buddy and i were screwing around the other day in Mech and we figured out a way to have a working tree form buff for the party but not be in tree form. Which if anyone knows about druids allows them to cast all their other high healing spells. Anyway follow the instructions below its a bit tricky
1. Change your chest item to something else
2. Get into Combat.. Queue your chestpiece to switch back to your original
3. When the fights finishing, Get ready.. The second the...