Hi,
I’m using Visual Studio .NET 2003 and my application is a dialog window, with some buttons and a picturebox. I’ve activated the maximize window option and I’d like that when the window is maximized the picturebox will enlarge to occupy the same percentage of the window as in normal conditions. I think I should set the anchor property of the picturebox but this property is not present among control properties listed by Visual Studio (maybe because my form is a dialog window?). What can I do?
Thank you.
aidi.morini
0
Newbie Poster
Recommended Answers
Jump to PostPictureBox has an Anchor property because it inherits from Control. If it's not listed in the designer view for some reason, you can set it in the form load event in your code view. When in doubt, go to the source! :)
Jump to PostCan you please be more specific in describing what I should do?
Happy to. :) Double click on the form you want to anchor the control in. To keep it simple, and to avoid accidentally double clicking on another control, just double click the title bar of your form. That'll …
All 5 Replies
Inanna
29
Junior Poster in Training
aidi.morini
0
Newbie Poster
Inanna
29
Junior Poster in Training
aidi.morini
0
Newbie Poster
aidi.morini
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.