Results 1 to 3 of 3

Thread: Static Declaration Thing

  1. #1

    Thread Starter
    Frenzied Member maged's Avatar
    Join Date
    Nov 2002
    Location
    Egypt
    Posts
    1,040

    Static Declaration Thing

    hi all,

    I am using a multi purposes form to show messages for user.

    I am calling it through a routine from anywhere in my project.

    this form loads a heavy backgroung image so it is not right to reload it on every simple message i show to the user.

    I figured out to declare it as static

    VB Code:
    1. static x as new frmmsg
    2. x.label1.text = "This is my message"
    3. x.showdialogue()


    my question is, should i use in the form it self

    me.close or me.hide.

    i want to use the same form over and over and i dont want to kill and recreate it every time. i think me.hide is suitable.

    Can anyone corrects me ???


    thx in advace

    BST RGDS

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Yes, I'd agree that Me.Hide method is suitable here .

  3. #3

    Thread Starter
    Frenzied Member maged's Avatar
    Join Date
    Nov 2002
    Location
    Egypt
    Posts
    1,040
    thx for your reply pirate,

    anyone else agrees with us


    ?????

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