Clueless Posted June 27, 2013 Author Share Posted June 27, 2013 I made the Form maximized and borderless so it look full screen but I also want the commands, pictureboxes etc. to increase in size according to new form.Size any ideas? Link to comment Share on other sites More sharing options...
Wortel Angels Posted June 27, 2013 Share Posted June 27, 2013 Set the sizen on the code..PS this here is the tutorial board not the questions Link to comment Share on other sites More sharing options...
Link Posted June 27, 2013 Share Posted June 27, 2013 Simple, you have to create a code upon loading the form..where it reads the change in size. Once the change in size is read in accordance you'd make a code where If a = this size then b = this size. It wouldn't need to be anything complex just some (if and then) codes as well as some possible rendering methods. Link to comment Share on other sites More sharing options...
Clueless Posted June 28, 2013 Author Share Posted June 28, 2013 I got the picture box size to change```Private Sub MainPic_Change()If Form3.Height > MainPic.Height ThenMainPic.Height = Form3.HeightEnd IfIf Form3.Width > MainPic.Width ThenForm3.Width = MainPic.WidthEnd IfEnd Sub```but now this doesn't have it's effect after the picturebox has changed it's size (it's supposed to scale picture to fit picture box but only scales to fit old picture box size).```Private Sub MainPic_Paint()Dim Pic As PictureMainPic.AutoRedraw = True 'Here or in Properties WindowSet Pic = LoadPicture(App.Path & "\Src\My Pictures\9.bmp")MainPic.PaintPicture Pic, 0, 0, MainPic.ScaleWidth, MainPic.ScaleHeightSet MainPic.Picture = MainPic.ImageEnd Sub```PS how do I change where this thread is to questions and answers? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now