Results 1 to 3 of 3
  1. #1
    s3c0's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    44
    Reputation
    10
    Thanks
    3
    My Mood
    Cold

    Unhappy How I Fix this code?

    Public Class Form1
    (Sharpe) Region Global Variables
    Dim Point As New System.Drawing.Point()
    Dim X, Y As Integer
    (Sharpe) End Region
    (Sharpe) Region " GUI "


    it give me a erro where it says (sharpe) how i fix it?



    Thanks you,

  2. #2
    abuckau907's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Location
    other side of the wire
    Posts
    1,342
    Reputation
    162
    Thanks
    239
    My Mood
    Cold
    #Region "RegionNameHere"
    some_code_here()
    some_more_code()
    #End Region

    #Region "private stuff"
    more_other_code()
    more_more_code()
    #End Region

    ^^ You see the pattern, right?

    you can either erase all of the "(Sharpe)" lines
    Code:
    Public Class Form1
    Dim Point As New System.Drawing.Point()
    Dim X, Y As Integer
    or

    change "(Sharpe)" to # (pound sign)
    and make sure each 'region' has a matching 'end region'
    *Also note the use of quotes " "'s around the region's description/name
    Code:
    Public Class Form1
    #Region "Global Variables"
    Dim Point As New System.Drawing.Point()
    Dim X, Y As Integer
    #End Region
    #Region " GUI "
    'huh, no code
    #End Region
    -------------------------
    "Regions" are used so you can collapse the code down in the IDE.
    See the + sign to the left of it (same with any sub/function/most_other_code_blocks)? Click to collapse/expand.
    Just a way to help stay organized.

    Urs welcomed.
    Last edited by abuckau907; 03-04-2013 at 09:52 AM.
    'Some things that can be counted, don't matter. And some things that matter, can't be counted' - A.E.
    --
     

    My posts have some inaccuracies/are wrong/wrong keyword(s) used.
    They're (maybe) pretty close, and I hope they helped you, not created confusion. Take with grain of salt.

    -if you give rep, please leave a comment, else it means less.

  3. The Following User Says Thank You to abuckau907 For This Useful Post:

    s3c0 (03-04-2013)

  4. #3
    s3c0's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    44
    Reputation
    10
    Thanks
    3
    My Mood
    Cold
    Thanks you so much!! i would love if u can teach me VB xD ahahah

Similar Threads

  1. How to Fix This...!!!
    By [PrO1Gamers] in forum Help & Requests
    Replies: 10
    Last Post: 11-11-2010, 10:19 AM
  2. Please Help Fix this Code!
    By o0OpurezO0o in forum Visual Basic Programming
    Replies: 42
    Last Post: 11-09-2010, 03:03 PM
  3. How to use this code ??
    By yeat in forum Combat Arms EU Hack Coding/Source Code
    Replies: 4
    Last Post: 08-04-2010, 01:25 AM
  4. how to fix cf code 14_3
    By aznduck in forum CrossFire Mods & Rez Modding
    Replies: 3
    Last Post: 07-10-2010, 05:15 AM
  5. Help Please! You Must Know How To Fix This!
    By xweetok59 in forum C++/C Programming
    Replies: 4
    Last Post: 07-05-2009, 07:51 AM