I'm fairly new to the art of VB programming - I've been doing it for just over a month now, non-stop. In this time, I've done databases, writing/reading/creating text files (and other stuff), password systems (based on hard drive serials) copy protection etc... I really love the language, and enjoy programming greatly. At the moment I'm doing some paid work, and have committed my first major blunder:
I have a farily good graphics card, and so I always run at (about) 1152x854 (or whatever it is). You can probably guess what's coming next. Most of my forms are getting on for full screen, but my project needs to be compatible with 800x600 set-ups... D'oh! Luckily, I haven't written any routines in the code that re-size or create forms or controls, so I have resigned myself to having to redraw everything in 800x600 mode. This would be a long job, and so I'm looking for cunning alternatives. Any ideas anyone?
I did think about writing a routine that gets the screen height and does some maths to re-scale everything. This would involve the controls object with a for each loop, set up as a public sub, using me.controls as the "in" part:
Public Sub ResizeAll()
Dim X as Control
For Each X in Me.Contols
{re-sizing code}
Next X
End Sub
Would this do the trick? The only problem is that I have loads of pictures - for my buttons and in picture boxes and image boxes. These would all have to be re-drawn in my art package, right?
If anyone could help me out, I'd be most gratetful. I'm not sure I could offer much in return, being quite inexperienced, but I'd have a go!
The moral of the story (my new RESOLVE!): Always design in 800x600!
Look forward to hearing from you - even if it is to laugh at me!
Cheers,
Steve.
