I am creating a timer solution. User enters hrs, mins secs, into text boxes and then clicks button to start. I wanted the timer to be small so it can be hidden at the top corner of the screen. I have sized a background image to this size so it fits nicely in the small form. However I also want the user to be able to maximise the form and take up the whole screen if they want. However the image obviously stays at the original size. Is there any possible way to avoid this (i.e can i add an image which will be used if maximise is pressed. Hopefully i have made sense with this question.
Thanks – Colly
I think you should have two images in resources. Use smaller one if app is in smaller mode and use bigger one if app is in maximized mode.
Form.SizeChangedevent is raised every time there is any change in form size. You can handle this event and based on parameters you can find out whether you should change the image or not