Note that there are some explanatory texts on larger screens.

plurals
  1. POset size of window to minimum size before scroll bar appears C#
    primarykey
    data
    text
    <p>Basicaly i am trying to set the window size automatically to the minimum size before the scroll bar appears, logically I am thinking that if I set the size of the window to this size and all the components should be shown no problem, I tried a couple of the answers answering the other questions but that didn't work, minimum size is 0.</p> <p>When I start up my application it doesn't show the full content, i am using a telerik report viewer(if anyone knows what it is) in a radform, but don't mind the names, the report viewer and radform are just extensions of the known winform and component so the same rules apply.</p> <p>The thing is when I show the window it won't show the full component, it's mostly the horizontal scrollbar I need to remove by resizing the window.</p> <p>I tried outputing the autoscrollminize property on both the form and the component but they are both 0,0 however if the scrollbar appears and disappears when I resize the window manually there should be a property/value somewhere I could use to set the windowsize from the start.</p> <p><strong>technical info:</strong> the component is already docked if I undock the reportviewer component the scrollbar appears inside this component so the key is to figure out when the vertical scrollbar will appear depending on the data in this component</p> <p>I already tried setting the autosize property to true for the window and setting the size to 10,10 finding minimum size/AutoScrollMinSize Setting the size to preferred size(when I do this the window takes on the absolute smallest possible size showing only the title bar.)</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload