Line Width Change

  • Thread starter Thread starter DDBeards
  • Start date Start date
D

DDBeards

I am trying to do the following: First Maximize a window, then Find the
width of the window based on my screen resolution size, and finally set the
width of Line6 to the grow to the size of the window. Please help.
 
The following will give you different numbers in twips, based on the screen
resolution, so I
guess you could use these to "interpret" the screen res.

Private Sub Form_Load()
DoCmd.Maximize
Debug.Print Me.InsideHeight, Me.InsideWidth
Debug.Print Me.WindowHeight, Me.WindowWidth
End Sub

Damon
 
Thank you for your input, however the next question is how to convert the
number returned into inches and how to set the line width with that number.
I have used the GetSystemMetrics(0) which is similar to the numbers returned
by your example, I just need the next step.

DDbeards
 
set the line length by
me.line6.width = me.insidewidth

Although the property sheet shows inches, the width responds to twips (1440
per inch)

Damon
 
Thank you for your help, I just figured that out as you responded! I was
making it harder than it was.
 
Back
Top