Register | Login | |||||
Main
| Memberlist
| Active users
| Calendar
| Chat
| Online users Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album |
| |
0 users currently in Programming. |
Acmlm's Board - I3 Archive - Programming - VB Help Form Scrollbars | New poll | | |
Add to favorites | Next newer thread | Next older thread |
User | Post | ||
interdpth Mole MZM rapist Since: 11-18-05 Last post: 6283 days Last view: 6283 days |
| ||
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 (edited by interdpth on 02-06-07 11:49 PM) |
|||
Guy Perfect Since: 11-18-05 Last post: 6285 days Last view: 6283 days |
| ||
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 Mole MZM rapist Since: 11-18-05 Last post: 6283 days Last view: 6283 days |
| ||
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. (edited by interdpth on 02-08-07 03:56 PM) |
|||
never-obsolete Paragoomba Since: 05-14-06 From: AZ Last post: 6285 days Last view: 6285 days |
| ||
Originally posted by interdpth how are you closing it? |
|||
interdpth Mole MZM rapist Since: 11-18-05 Last post: 6283 days Last view: 6283 days |
| ||
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? ._. (edited by interdpth on 02-08-07 08:07 PM) (edited by interdpth on 02-09-07 05:41 PM) (edited by interdpth on 02-10-07 12:33 PM) |
|||
Zidane Koopa Since: 07-14-06 From: Melbourne, FL Last post: 6288 days Last view: 6289 days |
| ||
Originally posted by interdpth If you want to program to just end when you close the form, just put "End" under form_unload. |
Add to favorites | Next newer thread | Next older thread |
Acmlm's Board - I3 Archive - Programming - VB Help Form Scrollbars | | |