Results 1 to 2 of 2

Thread: Loading Controls From a File

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2000
    Location
    Carolina, Puerto Rico, USA
    Posts
    227
    Hi, yet again

    Im loading controls from a file, using this

    Code:
    FileName = InputBox("Give me the filename.", "Open")
    Open FileName For Input As #2
        Do Until EOF(2) = True
    'Op is an option, in this case a commandbutton
            Input #2, Op, Index, Caption, Top, Width, Height, Left
    Load Boton(Index)
                    With Boton(Index)
                        .Caption = Caption
                        .Top = Top
                        .Width = Width
                        .Height = Height
                        .Left = Left
                        .Visible = True
                    End With

    Ok, the controls are loading with the caption and everithing, but they dont load where they are suppose to be, can someone help?


    Thanks!
    NievesJ

  2. #2
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238

    Thumbs up

    em.... how about this...

    Code:
    With Boton(Index)
       .Caption = Caption
       .Move Left, Top, Width, Height
       .Visible = True
    End With

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