Form Stili NONE Dayken Hareket Ettirme

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
MrComan
Onaylı Üye
Katılım
14 Şub 2018
Mesajlar
77
Tepki puanı
7
Ödüller
8
8 HİZMET YILI
Form1_Load değil Form1 in altına
Kod:
VB.Net:
Dim IsDraggingForm As Boolean = False
    Private MousePos As New System.Drawing.Point(0, 0)

    Private Sub Form1_MouseDown(ByVal sender As Object, ByVal e As MouseEventArgs) Handles MyBase.MouseDown
        If e.Button = MouseButtons.Left Then
            IsDraggingForm = True
            MousePos = e.Location
        End If
    End Sub

    Private Sub Form1_MouseUp(ByVal sender As Object, ByVal e As MouseEventArgs) Handles MyBase.MouseUp
        If e.Button = MouseButtons.Left Then IsDraggingForm = False
     End Sub

    Private Sub Form1_MouseMove(ByVal sender As Object, ByVal e As MouseEventArgs) Handles MyBase.MouseMove
        If IsDraggingForm Then
            Dim temp As Point = New Point(Me.Location + (e.Location - MousePos))
            Me.Location = temp
            temp = Nothing
        End If
    End Sub
 
Onaylı Üye
Katılım
3 Eyl 2020
Mesajlar
51
Tepki puanı
1
Yaş
25
5 HİZMET YILI
I don't understand how does this help, I'm new to this topic, but can you explain what does this code do?
 
MrComan
Onaylı Üye
Katılım
14 Şub 2018
Mesajlar
77
Tepki puanı
7
Ödüller
8
8 HİZMET YILI
I don't understand how does this help, I'm new to this topic, but can you explain what does this code do?
This code allows you to move your form style when it's not present.
Post automatically merged:

o nasıl çalışır ? bana öğretebilirmisin ?
o nasıl çalışır ? bana öğretebilirmisin ?
Visual studio yu Türkçe kullanıyorsan Bu kod senin form un sitili Hiçbiri(None) iken hareket etmesini sağlıyor
 
Hile kullanmak kolsuzluk değil akıllılıktır
Banlı Üye
Katılım
16 May 2019
Mesajlar
1,073
Çözümler
8
Tepki puanı
204
Ödüller
4
Yaş
24
7 HİZMET YILI
bu kodlarla uğraşmak yerine (amacım reklam yapmak değildir) GunaDragControl sayesinde kolayca hareket ettirebilirsiniz
 
Üye
Katılım
2 Tem 2019
Mesajlar
49
Tepki puanı
3
Yaş
26
6 HİZMET YILI
nasıl çalıştığını anlatır mısın reis yaaa
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Üst