Form size

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • schapopa

    #1

    Form size

    Hi,

    I have MDI form that I am trying to get width and heigh correctly
    regardless of resolution on the screen. Correctly in my case mean that
    it is the same like Maximized.

    I tried many functions that some people were describing on this forum
    but cannot get the exact one. I always get it a bit to small or get some
    scrallers...
    I tried ClientRectangle , Screen.PrimaryD isplay..
    Can anybody help me...

    Schapopa


    *** Sent via Developersdex http://www.developersdex.com ***
  • Anand[MVP]

    #2
    RE: Form size

    If you want to find whether your window is maximized, then have you tried the
    WindowState property of the form?

    --
    Rgds,
    Anand
    VB.NET MVP



    "schapopa" wrote:
    [color=blue]
    > Hi,
    >
    > I have MDI form that I am trying to get width and heigh correctly
    > regardless of resolution on the screen. Correctly in my case mean that
    > it is the same like Maximized.
    >
    > I tried many functions that some people were describing on this forum
    > but cannot get the exact one. I always get it a bit to small or get some
    > scrallers...
    > I tried ClientRectangle , Screen.PrimaryD isplay..
    > Can anybody help me...
    >
    > Schapopa
    >
    >
    > *** Sent via Developersdex http://www.developersdex.com ***
    >[/color]

    Comment

    • Ken Tucker [MVP]

      #3
      Re: Form size

      Hi,

      Did you try the forms size property.

      http://msdn.microsoft.com/library/de...sSizeTopic.asp

      Ken
      ----------------------
      <schapopa> wrote in message news:esUoytSXFH A.160@TK2MSFTNG P15.phx.gbl...
      Hi,

      I have MDI form that I am trying to get width and heigh correctly
      regardless of resolution on the screen. Correctly in my case mean that
      it is the same like Maximized.

      I tried many functions that some people were describing on this forum
      but cannot get the exact one. I always get it a bit to small or get some
      scrallers...
      I tried ClientRectangle , Screen.PrimaryD isplay..
      Can anybody help me...

      Schapopa


      *** Sent via Developersdex http://www.developersdex.com ***


      Comment

      Working...