Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[EO]picture frames movable borderline?


Growlith1223
 Share

Recommended Posts

hi um…Is it possible so like when you move a picturebox(IN GAME) it doesn't go past the border of the window?

if so could ya plz share the code with meh? :3

If you need more detail...I want it so how you can move the Character menu like in CrystalShire
Link to comment
Share on other sites

If Drag.X + Drag.Width >= frmMain.**ScaleWidth** (NOT Width, that counts the windows borders, ScaleWidth doesn't) Then Drag.X = frmMain.ScaleWidth - Drag.Width

If Drag.X <= 0 Then Drag.X = 0

There's the basic code for it, that you'd have in the MouseMove event.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...