CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Thread: Constraing proportions

Threaded View

  1. #1
    Join Date
    Jul 2005
    Plzeň, Czech Republic

    Unhappy Constraing proportions

    Is there a way how to limit size of a window? I want sizeable window but lets say I want its width to be at least 1000 twips.

    I surely can use this construct, but it looks ugly like ****... is there any other way?

    Private Sub Form_Resize()
    If frmMain.Width < 1000 Then frmMain.Width = 1000
    End Sub

    I also need suggestion how to create those neat CODE windows here at formus. I don't want to insert code as regular text anymore.

    Thanks for any help ;-)
    Last edited by jsiii; September 27th, 2005 at 05:03 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)