|
You last visited: Today at 00:15
Advertisement
[VB] Form verschieben Formboarderstyle = None
Discussion on [VB] Form verschieben Formboarderstyle = None within the .NET Languages forum part of the Coders Den category.
03/05/2012, 14:09
|
#1
|
elite*gold: 31
Join Date: Aug 2011
Posts: 2,188
Received Thanks: 385
|
[VB] Form verschieben Formboarderstyle = None
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.
|
|
|
03/05/2012, 14:38
|
#2
|
elite*gold: 179
Join Date: Oct 2009
Posts: 7,853
Received Thanks: 8,558
|
Vielleicht mal Google usen?
Code:
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
|
|
|
03/05/2012, 14:57
|
#3
|
elite*gold: 31
Join Date: Aug 2011
Posts: 2,188
Received Thanks: 385
|
Nein, der Code geht nicht.
|
|
|
03/05/2012, 15:04
|
#4
|
elite*gold: 179
Join Date: Oct 2009
Posts: 7,853
Received Thanks: 8,558
|
Natürlich tut er das...
|
|
|
03/05/2012, 15:05
|
#5
|
elite*gold: 31
Join Date: Aug 2011
Posts: 2,188
Received Thanks: 385
|
Nein, bei mir nicht.
|
|
|
03/05/2012, 15:09
|
#6
|
elite*gold: 179
Join Date: Oct 2009
Posts: 7,853
Received Thanks: 8,558
|
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 <.<
|
|
|
03/05/2012, 15:15
|
#7
|
elite*gold: 31
Join Date: Aug 2011
Posts: 2,188
Received Thanks: 385
|
Hab dich mal skype geaddet (:
|
|
|
03/05/2012, 18:01
|
#8
|
elite*gold: 0
Join Date: Apr 2010
Posts: 9,696
Received Thanks: 1,811
|
Nicht mal C&P-Codes kann man heutzutage anwenden..
|
|
|
03/05/2012, 18:14
|
#9
|
elite*gold: 31
Join Date: Aug 2011
Posts: 2,188
Received Thanks: 385
|
Lol.
Ich habe es ganz anders gemacht, du hast keine Ahnung xKraizy ;D
Habe es aber jetzt.
|
|
|
03/06/2012, 09:42
|
#10
|
elite*gold: 5
Join Date: Oct 2008
Posts: 4,997
Received Thanks: 4,132
|
I don't understand clearly.
Do you need a code moving the form with the noborder style?
|
|
|
03/06/2012, 10:27
|
#11
|
elite*gold: 179
Join Date: Oct 2009
Posts: 7,853
Received Thanks: 8,558
|
Quote:
Originally Posted by .Yuzuru
I don't understand clearly.
Do you need a code moving the form with the noborder style?
|
Yeah, because as u might know, the windowform can't be moved directly with the mouse while there is no WindowStyle. But his problem is solved
|
|
|
03/07/2012, 22:50
|
#12
|
elite*gold: 3085
Join Date: Aug 2011
Posts: 3,816
Received Thanks: 549
|
Funktioniert 100%ig
PHP Code:
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))
Else : End If End Sub
|
|
|
 |
Similar Threads
|
: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...
|
All times are GMT +1. The time now is 00:17.
|
|