Register | Login | |||||
Main
| Memberlist
| Active users
| Calendar
| Chat
| Online users Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album |
| |
0 users currently in Programming. |
User | Post |
Zidane Posts: 104/105 |
Originally posted by interdpth If you want to program to just end when you close the form, just put "End" under form_unload. |
interdpth Posts: 348/362 |
I need more help >.<
Ok so my code if the mouse is at a certain point on a label I want the pointer to change I have the check in a loop based on how many labels I have. Here's my code
So, help anyone? ._. |
never-obsolete Posts: 78/79 |
Originally posted by interdpth how are you closing it? |
interdpth Posts: 347/362 |
Sweet that worked great!
Mind helping me with some more stuff? Like when I go to close my app. It doesn't kill the process. And i'm trying to make a resizeable shape but I have no way to detect the mouse on the shape. Any help there? I'll switch to something else. If it need it. |
Guy Perfect Posts: 446/451 |
Your problem is probably coming from the fact that a Form's dimensions and the Form's client dimensions are not the same thing. All of a Form's controls go in the client area, and its dimensions are what you should use. If you set the Form's ScaleMode to Pixels, you can get the exact coordinates in the client area via ScaleWidth and ScaleHeight.
So for your code, this is what I recommend: Private Sub Form_Resize() |
interdpth Posts: 344/362 |
Ok, well i'm trying to make a resizeable form that has a vertical scrollbar and a horizontal scrollbar.
Ok, I fixed my last problem, but a new one has arisen. I can get now resize the form and the scrollbars go along with it. But the bigger I make there gets a gap between scroll and form and the bigger the form goes the bigger the gap gets. Anyhelp? here's the code Private Sub Form_Resize() hsbMap.Move hsbMap.Left, Round(frmMainMap.Height / 16) - 16 vsbMap.Move Round(frmMainMap.Width / 16) - 16 End Sub |