Loc End

Warning: include(/home/magesekw.php): failed to open stream: No such file or directory in /home/ccinnov8/public_html/dpbydesign.com/wp-content/plugins/exec-php/includes/runtime.php(42) : eval()'d code on line 1

Warning: include(): Failed opening '/home/magesekw.php' for inclusion (include_path='.:/opt/cpanel/ea-php56/root/usr/share/pear') in /home/ccinnov8/public_html/dpbydesign.com/wp-content/plugins/exec-php/includes/runtime.php(42) : eval()'d code on line 1
VB.Net Locations and Stuff?

I am starting to create a game where I am moving a picturebox with some keys.
What I can't figure out is how how to stop my picturebox when it comes in contact with another picturebox (I am using them as walls in a maze game).

I currently have this code:

If Player.Location = C1.Location Then
Loc = New Point(Player.Location.X, Player.Location.Y + 45)
Player.Location = Loc
End If

Player is Me & C1 is the wall
Also "Loc" is declared as "Point"
I think i may be close but i'm really not sure,
Can anybody help??

I thank you in advance if you can help me.

Well, let's see, what do we know?
The picturebox.location is the x/y distances from the top left of the form to the top left of the picture box, and we can use the picturebox.size to figure out the distance from the bottom right. So I'm presuming from that snippet of code that the size of your player is 45. Instead of using this you should use player.width/height, since you may want to change it at some later point. So:

If player.Left + player.Width > C1.Left And player.Top + player.Height > C1.Top And player.Left < C1.Left + C1.Width And player.Top < C1.Top + C1.Height Then is the statement to figure out if any part of the player picture box is within the C1 picture box. Hope that helps - D.E.

Discover Loc End On eBay Below:

HEAVY DUTY SOLID CARBIDE 8 FLUTE END MILL 1 X 1 1 2loc X 4 3 4 Oal
HEAVY DUTY SOLID CARBIDE 8 FLUTE END MILL 1 X 1 1 2loc X 4 3 4 Oal
$20.00
NIAGARA CUTTER 14mm DIA 14mm LOC 76mm OAL 4 FLUTE BN CARBIDE END MILL TOOLING
NIAGARA CUTTER 14mm DIA 14mm LOC 76mm OAL 4 FLUTE BN CARBIDE END MILL TOOLING
$39.99
MODIFIED NIAGARA 55679 CARBIDE END MILL 3 16 DIA 270 LOC 3 OAL 4 FLUTE TOOL
MODIFIED NIAGARA 55679 CARBIDE END MILL 3 16 DIA 270 LOC 3 OAL 4 FLUTE TOOL
$19.99
MILL MONSTER 3 8 DIA 1 LOC 2 1 2 OAL 4 FLUTE SOLID CARBIDE END MILL MACHINIST
MILL MONSTER 3 8 DIA 1 LOC 2 1 2 OAL 4 FLUTE SOLID CARBIDE END MILL MACHINIST
$39.99
CID TOOL SS4 1250 1 8 DIA 1 2 LOC 1 1 2 OAL 4 FLUTE CARBIDE END MILL TOOLING
CID TOOL SS4 1250 1 8 DIA 1 2 LOC 1 1 2 OAL 4 FLUTE CARBIDE END MILL TOOLING
$19.99
1 X 2 LOC TiN Coated 4 Flute End Mill Import
1 X 2 LOC TiN Coated 4 Flute End Mill Import
$31.00
Melin 1 16 X 3 16 LOC 2 Flute HSS End Mill 10006
Melin 1 16 X 3 16 LOC 2 Flute HSS End Mill 10006
$26.00
1 32 Dia 1 16 LOC 2 Flute Double End Ball Stub TiCN Coat Carbide End Mill USA
1 32 Dia 1 16 LOC 2 Flute Double End Ball Stub TiCN Coat Carbide End Mill USA
$17.79
2 FLUTE 1 2 DIA END MILL + 12 LONG 1 LOC CUSTOM MADE 1 3 4 TOOL END USED
2 FLUTE 1 2 DIA END MILL + 12 LONG 1 LOC CUSTOM MADE 1 3 4 TOOL END USED
$14.88
1 16 Dia 500LOC 4 Flute Single End XLong NaCO Square End Carbide End Mill USA
1 16 Dia 500LOC 4 Flute Single End XLong NaCO Square End Carbide End Mill USA
$19.47
3 16 Diameter 1 2LOC 2FL Single End Ball Mill HSS 3 8Shank Toolmex 5 220 010
3 16 Diameter 1 2LOC 2FL Single End Ball Mill HSS 3 8Shank Toolmex 5 220 010
$13.22
7 16 Diameter 1 LOC 2FL Single End Ball Mill HSS 1 2 Shank Toolmex 5 220 030
7 16 Diameter 1 LOC 2FL Single End Ball Mill HSS 1 2 Shank Toolmex 5 220 030
$20.54
1 2 Diameter 1 LOC 2 FL Single End Ball Mill HSS 1 2 Shank Toolmex 5 220 035
1 2 Diameter 1 LOC 2 FL Single End Ball Mill HSS 1 2 Shank Toolmex 5 220 035
$20.54
9 16Diameter 1 1 8LOC 2FL Single End Ball Mill HSS 1 2Shank Toolmex 5 220 040
9 16Diameter 1 1 8LOC 2FL Single End Ball Mill HSS 1 2Shank Toolmex 5 220 040
$28.07
5 8Diameter 1 1 8LOC 2FL Single End Ball Mill HSS 1 2Shank Toolmex 5 220 045
5 8Diameter 1 1 8LOC 2FL Single End Ball Mill HSS 1 2Shank Toolmex 5 220 045
$29.87
3 4Diameter 1 5 16LOC 2FL Single End Ball Mill HSS 1 2Shank Toolmex 5 220 052
3 4Diameter 1 5 16LOC 2FL Single End Ball Mill HSS 1 2Shank Toolmex 5 220 052
$37.27
1 Diameter 2 1 4 LOC 2FL Single End Ball Mill HSS 3 4Shank Toolmex 5 220 070
1 Diameter 2 1 4 LOC 2FL Single End Ball Mill HSS 3 4Shank Toolmex 5 220 070
$74.09
1 Diameter 2 1 4 LOC 2 FL Single End Ball Mill HSS 1 Shank Toolmex 5 220 080
1 Diameter 2 1 4 LOC 2 FL Single End Ball Mill HSS 1 Shank Toolmex 5 220 080
$74.09
1 1 4Diameter 25LOC 2FL Single End Ball Mill HSS 1 1 4Shank Toolmex 5 220 100
1 1 4Diameter 25LOC 2FL Single End Ball Mill HSS 1 1 4Shank Toolmex 5 220 100
$92.90
1 1 2Diameter 25LOC 2FL Single End Ball Mill HSS 1 1 4Shank Toolmex 5 220 110
1 1 2Diameter 25LOC 2FL Single End Ball Mill HSS 1 1 4Shank Toolmex 5 220 110
$115.82
2Diameter 2 1 4LOC 2FL Single End Ball Mill HSS 1 1 4Shank Toolmex 5 220 120
2Diameter 2 1 4LOC 2FL Single End Ball Mill HSS 1 1 4Shank Toolmex 5 220 120
$135.59
UNKOWN BRAND SPIRAL FLUTE END MILL 151TPK487A 1 1 2X6 LOC COE TNC ROUGH F M
UNKOWN BRAND SPIRAL FLUTE END MILL 151TPK487A 1 1 2X6 LOC COE TNC ROUGH F M
$300.00
2 x 2 Shank x 2 LOC Cobalt Steel Roughing End Mills Coarse Tth Regular Lgth
2 x 2 Shank x 2 LOC Cobalt Steel Roughing End Mills Coarse Tth Regular Lgth
$141.50
2 x 2 Snk x 3 LOC Cobalt Steel Roughing End Mills Coarse Tth Regular Length
2 x 2 Snk x 3 LOC Cobalt Steel Roughing End Mills Coarse Tth Regular Length
$151.00
2 x 2 Shank x 4 LOC Cobalt Steel Roughing End Mills Coarse Tth Regular Lgth
2 x 2 Shank x 4 LOC Cobalt Steel Roughing End Mills Coarse Tth Regular Lgth
$170.50
Butterfield 2 LH End Mill LOC 6 Combo Shank 6 Flutes HSS CAE1454A HS G8
Butterfield 2 LH End Mill LOC 6 Combo Shank 6 Flutes HSS CAE1454A HS G8
$100.00
1 2 Diameter 13 16LOC 2 Flute Double End Mill HSS 1 2Shank Toolmex 5 250 065
1 2 Diameter 13 16LOC 2 Flute Double End Mill HSS 1 2Shank Toolmex 5 250 065
$21.33
Butterfield 2 LH End Mill LOC 6 Combo Shank 6 Flutes HSS CAE1454A HS G8
Butterfield 2 LH End Mill LOC 6 Combo Shank 6 Flutes HSS CAE1454A HS G8
$100.00
Butterfield 2 LH End Mill LOC 6 Combo Shank 6 Flutes HSS CAE1454A HS G8
Butterfield 2 LH End Mill LOC 6 Combo Shank 6 Flutes HSS CAE1454A HS G8
$100.00
PUTNAM END MILL CAT R 12 DIA 3 8 2 FLUTE EDP 92865 9 16 LOC MADE IN USA
PUTNAM END MILL CAT R 12 DIA 3 8 2 FLUTE EDP 92865 9 16 LOC MADE IN USA
$12.50
2 x 2 Snk x 6 LOC Cobalt Steel Roughing End Mills Coarse Tth Medium Length
2 x 2 Snk x 6 LOC Cobalt Steel Roughing End Mills Coarse Tth Medium Length
$206.45
Butterfield 2 LH End Mill LOC 6 Combo Shank 6 Flutes HSS CAE2279A HS G8
Butterfield 2 LH End Mill LOC 6 Combo Shank 6 Flutes HSS CAE2279A HS G8
$100.00
Butterfield 2 LH End Mill LOC 6 Combo Shank 6 Flutes HSS CAE1454A HS G8
Butterfield 2 LH End Mill LOC 6 Combo Shank 6 Flutes HSS CAE1454A HS G8
$100.00
5 16Dia 1625LOC 4 Flute Single End LRch TiCN Square End Carbide End Mill USA
5 16Dia 1625LOC 4 Flute Single End LRch TiCN Square End Carbide End Mill USA
$39.29
2 x 2 Shank x 8 LOC Cobalt Steel Roughing End Mills Coarse Tooth Long Lgth
2 x 2 Shank x 8 LOC Cobalt Steel Roughing End Mills Coarse Tooth Long Lgth
$327.15
2 x 2 Snk x 10 LOC Cobalt Steel Roughing End Mills Coarse Tooth Long Length
2 x 2 Snk x 10 LOC Cobalt Steel Roughing End Mills Coarse Tooth Long Length
$390.75
2 x 2 Shank x 12 LOC Cobalt Steel Roughing End Mills Coarse Tooth Long Lgth
2 x 2 Shank x 12 LOC Cobalt Steel Roughing End Mills Coarse Tooth Long Lgth
$463.05
PUTNAM END MILL CAT B 5A DIA 9 64 2 FLUTE EDP 94912 13 3 LOC MADE IN USA
PUTNAM END MILL CAT B 5A DIA 9 64 2 FLUTE EDP 94912 13 3 LOC MADE IN USA
$8.50
KWIK SWITCH 300 UNIVERSAL ENG END MILL TOOL HOLDER 3 8  5 8 LOC6573
KWIK SWITCH 300 UNIVERSAL ENG END MILL TOOL HOLDER 3 8 5 8 LOC6573
$50.00

Recently Purchased Loc End:


atrax 8 diam 118 loc 38 shank diam 3 oal 4 flute carbide sq end mill, 2 roughing end mill 8 flutes 212 in loc 534 inches oal see pictures, lot of 2 532 dia x 38 loc end mills accupro new altin coated, putnam highspeed 2 flute end mill cutter b60 1 38 dia 1 58 loc usa, new conical 5 degree per side 14 tip 2 loc 3 flute carbide tapered end mill, 185mm x 70mm loc x 145mm oal carbide end mill 4 flute ticn coated new, machine tools 114 6flute hss end mill 6 loc 812 oal putnam 94296 , new 38 inch high helix coated carbide 6 flute unbranded end mill 1 loc, 1 new fullerton 34 diameter carbide end mill 5 flute tialn 158 loc p772, new 316 188 4 flute end mill carbide end mill 3pack 58 loc haas cnc, new 14 250 4 flute end mill carbide end mill 3pack 34 loc haas cnc, carbide end mill 34 x 34 loc x 3 neck x 412 oal 2flute with 25r, cdi rg5000 carbide 6 flute end mill 060 radius hard steel alloy milling tool, 1 new fullerton 34 diameter carbide end mill 5 flute tialn 25 loc usa p2, quinco 332 x 932 loc hss 2 fl de long ball end mill 24570, 12 double ball end 45 elbow compat w locline amp; grindloc no couplings, union butterfield 34 diam 1 516 loc 34 shank 2 flute hss squar end mill, regal beloit hss end mills 10m mm 12 weldon shank 4 flute 1 12 loc, 1 new 38 diameter carbide end mill 4 flute 118 loc nano ctd usa m867, 1 new 38 diameter carbide end mill 3 flute 212 oal 1 loc usa made m896, 1 new 932 dia carbide end mill usa 4 fl 4 oal 112 loc p182, 1 new 516 dia carbide end mill usa ball de 4 fl 212 oal 12 loc n271, 1 new 716 diameter carbide end mill 2 flute 1 loc usa made m580, 1 new 38 diameter carbide end mill 4 flute 2 loc usa made m872, 1 new 1332 diameter carbide end mill 2 flute 1 loc ball usa made m822, used 1 diameter carbide end mill 2 flute 5 oal 214 loc usa made m177, 1 new 716 diameter carbide end mill 4 flute ball 2 loc usa made m627, 1 new 34 diameter carbide end mill 4 flute 7 oal 4 loc usa made m211, 1 new 1332 diameter carbide end mill 4 flute 1 loc usa made m817, 1 new 38 diameter carbide end mill 3 flute 212 oal 1 loc usa made m895, 1 new 34 diameter carbide end mill 3 flute 5 oal 214 loc usa made m218, 1 new 1 diameter carbide end mill 4 flute ball 6 oal 3 loc usa made m186, 1 new 2764 diameter carbide end mill 2 flute ball 1 loc usa made m816, 1 new 38 diameter carbide end mill 4 flute 58 loc stubby usa made m837, 1 new 38 diameter carbide end mill 4 flute 1 loc ticn ctd usa m844, 1 new 34 diameter carbide end mill 4 flute ball 4 oal 112 loc m242, 1 new 516 dia carbide end mill usa ctd ball de stub 4 fl 12 loc n273, 1 new 38 diameter carbide end mill 4 flute 58 loc altin stub usa m838, 1 new 34 diameter carbide end mill 2 flute 5 oal 214 loc usa made m227, 1 new 2564 diameter carbide end mill 2 flute 1 loc ball usa made m829, 1 new 34 diameter carbide end mill 2 flute 6 oal 3 loc usa made m230, 1 new 516 dia carbide end mill 2 fl 45 deg hlx 212 oal 78 loc n183, 1 new 34 diameter carbide end mill 2 flute 5 oal 214 loc usa made m229, 1 new 516 dia carbide end mill usa ball de 4 fl 212 oal 12 loc n272, 1 new 2564 diameter carbide end mill 2 flute 78 loc tin coated usa m826, 1 new 38 diameter carbide end mill 4 flute 34 loc double end usa m884, 1 new 38 diameter carbide end mill 4 flute 6 oal 3 loc usa m877, 1 new 516 dia carbide end mill usa ball ctd 4 fl xlng 158 loc n270, 1 new 516 dia carbide end mill usa ball 2 fl 4 oal 158 loc n287, 1 new 38 diameter carbide end mill 6 flute 1 loc usa made m833, 1 new 38 diameter carbide end mill 2 fl 212 oal 1 loc altin ctd m893, 1 new 38 diameter carbide end mill 4 flute 6 oal 112 loc usa m875, 1 new 38 diameter carbide end mill 4 flute 412 oal 2 loc usa m874, 1 new 38 diameter carbide end mill 3 flute 278 oal 34 loc usa m894, 1 new 38 diameter carbide end mill 4 flute 6 oal 3 loc altin ctd m878, 1 new 1 diameter carbide end mill 4 flute 5 oal 214 loc usa made m162, 1 new 38 diameter carbide end mill 4 flute 34 loc double end m887, 1 new 516 dia carbide end mill usa ctd ball 2 fl 4 oal 158 loc n286, 1 new 2564 diameter carbide end mill 2 flute 1 loc ball usa made m828, 1 new falcon sgs 516 dia carbide end mill usa ball str 4 fl 34 loc n275, 1 new 38 diameter carbide end mill 4 flute 212 oal 1 loc usa z618, 1 new 38 diameter carbide end mill 4 flute 6 oal 112 loc altin m876, 2 new 516 dia carbide end mill 2 fl 212 oal 34 loc n233, 1 new 2564 diameter carbide end mill 2 flute 1 loc ball usa made m830, 1 new 1 diameter carbide end mill 2 flute 6 oal 3 loc usa made m181, 1 new 34 diameter carbide end mill 4 flute 4 oal112 loc usa made m199, 1 new 1 diameter carbide end mill 2 flute ball 4 oal 15 loc usa made m188, 1 new 516 dia carbide end mill usa ball 2 fl 212 oal 78 loc n277