

- #Xfce4 screen resolution switcher how to
- #Xfce4 screen resolution switcher full
- #Xfce4 screen resolution switcher code

Private Sub Form1_Shown( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Shown
#Xfce4 screen resolution switcher code
If you have container controls then just repeat the code for each container's resize event. It will resize and position all the controls on your form as it resizes. Have a quick look at the following - it may be of use. The best approach will depend very much upon your form design. I've only used the TableLayoutPanel once and found it a bit fiddly but maybe you will have better luck.

There's plenty of info in Help regarding using the two panels.
#Xfce4 screen resolution switcher full
Hmm - I think I see what you're after but I'm still not clear about the first bit in your first post.ĭo you really mean full screen or do you just mean maximised?
#Xfce4 screen resolution switcher how to
You mentioned using FlowLayoutPanel and TableLayoutPanel controls, is there somewhere that I can find info about how to properly use these? I just need to figure out how to change the control layout when I switch between modes and all wil be good. Then I thought that it would be nice that if someone had a large screen like mine, they could simply choose to stay in windowed mode, but then the form would need to be rearranged to display properly. Everything looks good at 1024 x 768, but if they did change it, then the form layout would need to be re-arranged. But then I thought that it would be great if I could allow the user to choose if he/she wanted windowed or fullscreen mode and allow them to pick the resolution themselves, but this is where the layout comes in. The application has a lot of room at 1024 x 768, so I figured I would use that one, and most people have that resolution on their monitor. I figured that because my windowed form was large and full with my screen resolution set to 1280 x 1024, that any user would find that the windowed mode might be to big if their screen resolution was set much lower than mine. The next three options in the Display dialog are only available for multiple monitors: Use this display If unchecked, the selected display will be disabled. (If that doesn't seem to work, make the panel vertical then move it, then make it horizontal if that's what you want. Drag & drop the panel onto the right (internal) monitor. Un-check the 'Span monitors' option and unlock the panel. What I have done is force a screen resolution change from my desktop setting which is 1280 x 1024 to have the form display at 1024 x 768. Click on and drag the monitors in the viewing pane to rearrange them to correspond to their actual placement. It is very useful to add that to a panel or desktop launcher, or associate it with a shortcut. Sorry Dave, I realize now that I should have mentioned that I am switching resolutions in full screen mode.
