Results 1 to 4 of 4

Thread: centering form - Screen object

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2004
    Location
    Washington State
    Posts
    12

    centering form - Screen object

    After 2 years of threatening - I have finally started trying to code in VB .Net. I'm trying to start out with a small project and learn some of the nuances as I go. The first thing I ran into was I tried to put some declare statements at the top of my form and was told that these statements can not be outside of a namespace. How/where do I declare variables with module scope?

  2. #2

    Thread Starter
    New Member
    Join Date
    Jul 2004
    Location
    Washington State
    Posts
    12

    Oops. Subject should have been Declaring variables for module scope.

    My original question dealt with centering the form on the screen but I figured that one out on my own before I hit the submit button.

  3. #3
    PowerPoster
    Join Date
    Dec 2003
    Location
    Bristol, England (but heart is in Virginia)
    Posts
    2,949

    Re: centering form - Screen object

    Originally posted by sodakotahusker
    After 2 years of threatening - I have finally started trying to code in VB .Net. I'm trying to start out with a small project and learn some of the nuances as I go. The first thing I ran into was I tried to put some declare statements at the top of my form and was told that these statements can not be outside of a namespace. How/where do I declare variables with module scope?
    Public or form scope declarations can be made anywhere below the Inherits statement of a form or the Module Module Name of a module, provided it is outside of subs, functions or events.

    The normal place to make them is immediately below the Inherits statement or the Module Module Name.

    The scope of declarations (which cannot be a Public declaration) made within a sub, function or event is limited to that sub, function or event.

    You can amend the thread title by using the Edit facility on your first post.
    Last edited by taxes; Jul 7th, 2004 at 08:24 PM.
    Taxes
    The more I learn about VB.NET the more I like dBaseIII Plus

    The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.

  4. #4

    Thread Starter
    New Member
    Join Date
    Jul 2004
    Location
    Washington State
    Posts
    12

    Smile Thanks, Taxes!

    Onward and upward!

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