Results 1 to 9 of 9

Thread: Tile Forms

  1. #1

    Thread Starter
    Hyperactive Member Rattled_Cage's Avatar
    Join Date
    Dec 2005
    Posts
    315

    Tile Forms

    how do i arrange forms neatly along the top in tile view plz
    im opening another form with following command etc


    Dim Form1 As New Form1
    Form1.Show

  2. #2
    Frenzied Member zynder's Avatar
    Join Date
    Nov 2006
    Location
    localhost
    Posts
    1,434

    Re: Tile Forms

    You're confusing it. Use other name than Form1.

    Dim frm as new form1
    frm.show

    Anyway, so you want a tile view everytime you create a new form?

  3. #3
    Frenzied Member zynder's Avatar
    Join Date
    Nov 2006
    Location
    localhost
    Posts
    1,434

    Re: Tile Forms

    Do you mean like this? Im not quite sure so correct me.

    Code:
    Private Sub Command1_Click()
    Dim frm As New Form1
    Static x As Long
    
    Const SPACE = 4800 ' adjust this accordingly
    
    frm.Show
    frm.Move x, 0
    x = x + SPACE
    
    End Sub

  4. #4
    Addicted Member xavierjohn22's Avatar
    Join Date
    Oct 2006
    Location
    Approx. 4921' and 3.11" asl
    Posts
    249

    Re: Tile Forms

    then i have it something like this with my current project

    Code:
        Dim FormName As String
        Dim frm As Form
        Dim X As Long
        Dim Y As Long
        Dim sName As String
    
        iNum = iNum + 1
        If iNum = 100 Then iNum = 1
        sName = frmMsg.Name & Format(iNum, "00")
    
       Set frm = New frmMsg
        FormName = sName
        X = X + 100
        Y = Y + 100
        
        With frm
            .Left = .Left + X
            .Top = .Top + Y
            .Caption = FormName
            .Tag = FormName
            .show
    End wtih

  5. #5
    Frenzied Member zynder's Avatar
    Join Date
    Nov 2006
    Location
    localhost
    Posts
    1,434

    Re: Tile Forms

    I will not tile the forms instead your code will do a cascading forms.

  6. #6
    Addicted Member xavierjohn22's Avatar
    Join Date
    Oct 2006
    Location
    Approx. 4921' and 3.11" asl
    Posts
    249

    Re: Tile Forms

    yeah, ooppps. thanks

  7. #7

    Thread Starter
    Hyperactive Member Rattled_Cage's Avatar
    Join Date
    Dec 2005
    Posts
    315

    Re: Tile Forms

    zynder thanks your onto the right idea
    but when i open too many they pile up off the side of the screen all being on one line
    hmmmmm any ideas ?

  8. #8
    Frenzied Member zynder's Avatar
    Join Date
    Nov 2006
    Location
    localhost
    Posts
    1,434

    Re: Tile Forms

    Yeah, I just wrote that to get you started. Have you tried using an MDI Form? You can arrange it in tile and cascade by a single line of code.

    Code:
    MDIForm1.Arrange 1 ' for tile
    MDIForm1.Arrange 0 ' for cascade

  9. #9

    Thread Starter
    Hyperactive Member Rattled_Cage's Avatar
    Join Date
    Dec 2005
    Posts
    315

    Re: Tile Forms

    can a media player be inserted ontoa midi form ?

Posting Permissions

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



Click Here to Expand Forum to Full Width