Activity Stream
48,167 MEMBERS
64174 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 7 of 7

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1.     
    #1
    Respected Developer
    Good start. One thing you should make a habit in C# is properly naming controls. TextBox1, TexBox2, Button1, etc gets confusing real quick for bigger apps or other people who view your source.

    The way controls are usually named in C# is like this;
    Texboxes:
    - txtSource
    - txtTarget

    Buttons:
    - btnOpen
    - btnConvert

    Listboxes etc:
    - lstWhatever

    Naming controls like this makes it instantly obvious what type of control it is and what its purpose is. And it causes the VS IntelliSense to group them nicely together by type.
    Hyperz Reviewed by Hyperz on . [C#] xConverter v0.2 - Convert X to X + Source! OK guys, Hyperz inspired me to start learning C#, this is my first step into C# so be nice :P This tool uses ImageMagick to convert most common used images, even documents. http://KWWHsnap.com/0.20145268105106.png Supported Conversions: - X to PNG - X to JPG - X to GIF Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    bypassx.com
    Quote Originally Posted by Hyperz View Post
    Good start. One thing you should make a habit in C# is properly naming controls. TextBox1, TexBox2, Button1, etc gets confusing real quick for bigger apps or other people who view your source.

    The way controls are usually named in C# is like this;
    Texboxes:
    - txtSource
    - txtTarget

    Buttons:
    - btnOpen
    - btnConvert

    Listboxes etc:
    - lstWhatever

    Naming controls like this makes it instantly obvious what type of control it is and what its purpose is. And it causes the VS IntelliSense to group them nicely together by type.
    Wise words, i fall on the lazy error of not name anything, but doing it like Hyperz says save you a lot of time.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 29th Feb 2012, 04:41 AM
  2. [SMF] i want to convert my smf to vb !
    By shufol in forum Web Application/Script Support
    Replies: 4
    Last Post: 8th Sep 2011, 09:40 AM
  3. How to convert .py into exe
    By sairam123 in forum Tutorials and Guides
    Replies: 6
    Last Post: 12th Oct 2010, 04:34 PM
  4. [AMS] xConverter v0.1 - X to X Converter
    By l0calh0st in forum Web Development Area
    Replies: 7
    Last Post: 23rd Jul 2010, 12:03 PM
  5. How to Convert IPB 3 to vB 3.8.x
    By Rohit in forum IP.Board
    Replies: 1
    Last Post: 6th May 2010, 11:57 PM

Tags for this Thread

BE SOCIAL