Results 1 to 3 of 3

Thread: Parameters for form load

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2003
    Posts
    7

    Parameters for form load

    I attended one interview for vb 6.0.In that i was asked a question.The question is
    What are the parameters of the form_load in vb 6.0.

    Please tell me the answer of this question .And i would like to know more vb 6.0 interview questions.

  2. #2
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    form_load does not have any parameters......

    Private Sub Form_Load()

  3. #3
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431
    They may be talking about the Show function which will result in a form loading. An example would be

    Form1. Show

    Here is some more information from Help.

    To display a form as a modal dialog box

    Use the Show method with a style argument of vbModal (a constant for the value 1).
    For example:

    ' Display frmAbout as a modal dialog.
    frmAbout.Show vbModal

    To display a form as a modeless dialog box

    Use the Show method without a style argument.
    For example:

    ' Display frmAbout as a modeless dialog.
    frmAbout.Show

    Note If a form is displayed as modal, the code following the Show method is not executed until the dialog box is closed. However, when a form is shown as modeless, the code following the Show method is executed immediately after the form is displayed.

    The Show method has another optional argument, owner, that can be used to specify a parent-child relationship for a form. You can pass the name of a form to this argument to make that form the owner of the new form.

    To display a form as a child of another form

    Use the Show method with both style and owner arguments.
    For example:

    ' Display frmAbout as a modeless child of frmMain.
    frmAbout.Show vbModeless, frmMain

    Using the owner argument with the Show method ensures that the dialog box will be minimized when it’s parent is minimized, or unloaded should the parent form be closed.

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