Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 01:06

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



vb bounds wie?

Discussion on vb bounds wie? within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1


 
False's Avatar
 
elite*gold: 0
The Black Market: 243/0/0
Join Date: Apr 2011
Posts: 11,117
Received Thanks: 2,436
vb bounds wie?

hi,

der ersteller des videos hat geschriben er hat es per bounds gemacht das wenn er die quallen berührt das eine msgbox kommt aber wie funktioniert das?

False is offline  
Old 05/09/2011, 21:43   #2
 
Kraizy​'s Avatar
 
elite*gold: 0
The Black Market: 471/0/0
Join Date: Apr 2010
Posts: 9,696
Received Thanks: 1,811
Hi,
so wie es in dem Video aussieht, basiert alles auf PictureBoxen, was nicht besonders gut für Spiele ist, besser ist GDI+ oder XNA.
Naja, wie auch immer, prüfen ob es eine Berührung gegeben hat kannst du z.B. so abfangen:
Code:
If PictureBox1.Bounds.IntersectsWith(PictureBox2.Bounds) Then
            MsgBox("bla")
        End If
Kraizy​ is offline  
Old 05/09/2011, 21:48   #3


 
False's Avatar
 
elite*gold: 0
The Black Market: 243/0/0
Join Date: Apr 2011
Posts: 11,117
Received Thanks: 2,436
oh... danke
habe es so gehabt Xd
Code:
If PictureBox1.Bounds.IntersectsWith(PictureBox2) Then
            MsgBox("bla")
        End If

noch eine frage wie lasse ich mehrere picturebox in ein also das ich nicht tausendmal
if.... schreiben muss sondern nur

Code:
If PictureBox1.Bounds.IntersectsWith(allepicutreboxes.bounds) Then
            MsgBox("bla")
        End If
False is offline  
Old 05/10/2011, 14:17   #4
 
Kraizy​'s Avatar
 
elite*gold: 0
The Black Market: 471/0/0
Join Date: Apr 2010
Posts: 9,696
Received Thanks: 1,811
Du läufst mit einer Schleife alle Controls deiner Form durch, prüfst ob es eine PictureBox ist und ob es nicht den Namen der PictureBox hat, die bewegt werden soll. Hier mal ein kleines Beispiel, PictureBox1 ist die, die ich bewege:
PHP Code:
For Each picBox As Control In Me.Controls //alle Controls der Form durchlaufen
     
If TypeOf picBox Is PictureBox Then //wenn das Control eine PictureBox ist
          
If Not picBox.Name "PictureBox1" Then //wenn Name nicht PictureBox1 ist
               
If PictureBox1.Bounds.IntersectsWith(picBox.BoundsThen //wenn PictureBox1 eine andere PictureBox berührt
                    //was ausgelöst werden soll
          
End If
     
End If
Next 
Müsste eigentlich noch einen besseren/kürzeren Code geben, aber keine Lust danach zu suchen/denken..eventuell mit dem "sender" (der bei den Methode immer deklariert wird [ByVal sender As System.Object]) arbeiten.
Kraizy​ is offline  
Reply


Similar Threads Similar Threads
STUXNET- NoMenu Public - [22.04.2011] | No Spread, Superjump, No Bounds, Speed,Slots
04/22/2011 - WarRock Hacks, Bots, Cheats & Exploits - 0 Replies
Hallo Elite*pvpers heute stelle ich euch meinen NoMenu Hack vor es ist die Version 0.3. Hack Funktionen. - Speed - Superjump (NEW) - No Bounds (NEW) - No Spread (NEW) - Slots - No Fall Damage (NEW) :D
NoName D3D 14/12/10 OPK/Super No Spread/No Bounds
12/15/2010 - WarRock Hacks, Bots, Cheats & Exploits - 15 Replies
Fixed No Bounds, Super NoSpread, Prone CQC - Added Zombie OPK - Added 2D Radar - Added Aimbot + Aim Key + Aim target - Fixed Crash After Sometime - Use Only My Injector For GuidTech Pic :
[Frage]Warum hat Maxtei No Bounds in seinen Hack eingebaut?
05/28/2010 - WarRock - 9 Replies
Hey ihr Ich hab mich schon oft gefragt warum Maxtei No Bounds in den Hack eingebaut hat. No Bounds steh ja dafür das man wenn man auserhalb der Map ist nicht stirbt oder? Bitte um Antwort ;D



All times are GMT +1. The time now is 01:10.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.