+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: VB6.0:Tutorial, Command Line

  1. #1
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101

    VB6.0:Tutorial, Command Line

    Introduction:-
    Well welcome to another Tutorial, Here I will tell you how to make command lines in Visual Basic. This is a good thing and I find it pretty useful including command lines in my programs!

    Solution:-
    I will use this to simply change the background colour of the form but you can practically use it to meka everything! For example I made a program for myself and I used the command line to open specific application at a specific time and writing logs! so you can do everything you want!

    The Code:-

    Code:
    Private Sub Form_Load()
    If Command = "Black" Then Form1.BackColor = vbBlack
    If Command = "White" Then Form1.BackColor = vbWhite
    End Sub
    Thats it!
    Explanation:-

    Code:
    If Command = "Black" Then Form1.BackColor = vbBlack
    If the Command line is "Black" then make the background of the form black!

    Running/Testing the code:-
    Ok so for this to work you need to:-
    1.) Compile the program ( Create its EXE file )
    2.) Create a Shortcut of the EXE
    3.) Insert the command line

    How to insert the command line?:-
    Right-Click the shortcut
    go on properties
    Now go on the Target text box and after the file location write the command line

    Here are some snapshots to help you:-
    How to add the command line


    and this is the preview



    Conclusion:-
    As Always Feedback is welcome and the full source is attached!! ( although its not so needed )
    Attached Files Attached Files
    Last edited by TcM; 11-22-2006 at 11:34 AM.

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Jordan Guest
    Nice tutorial! Thanks!

  4. #3
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101
    You are more than welcome! Thanks for your feedback!

  5. #4
    Join Date
    Oct 2006
    Location
    Hendersonville, NC
    Posts
    1,700
    Blog Entries
    3
    Rep Power
    0
    You are always good to the newbies!


  6. #5
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101
    Quote Originally Posted by xXHalfSliceXx View Post
    You are always good to the newbies!
    Thanks, coz thats how, in my opinion, tutorials should be! because its useless making complicated tutorials that newbies will not understand! because actually tutorials ARE for newbies. Right?

  7. #6
    samoh77 Guest
    Good tutorial. Thanks.

  8. #7
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101
    Glad it helped

  9. #8
    Ollox360 is offline Newbie
    Join Date
    Jun 2008
    Posts
    18
    Rep Power
    0

    Re: VB6.0:Tutorial, Command Line

    pretty good, i have been looking for some "extra shortcut command lines"

  10. #9
    Join Date
    Mar 2008
    Location
    The North Pole
    Posts
    13,174
    Blog Entries
    13
    Rep Power
    114

    Re: VB6.0:Tutorial, Command Line

    I think it would be better to use a Select Case instead of multiple Ifs. Even for newbies.

    Quote Originally Posted by Jordan View Post
    Good members, like yourself, stick around and post for ages to come!
    Mr. Xav | Blog | Forums

  11. #10
    Healncrush's Avatar
    Healncrush is offline Newbie
    Join Date
    Aug 2008
    Posts
    12
    Rep Power
    0

    Re: VB6.0:Tutorial, Command Line

    Awesome, Thanks!

+ Reply to Thread
Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Python Tutorial - Handling Command Line Arguments
    By ShadenSmith in forum Python Tutorials
    Replies: 4
    Last Post: 02-06-2011, 06:35 AM
  2. Command line
    By Papi in forum Ruby Programming
    Replies: 4
    Last Post: 11-07-2009, 05:47 PM
  3. Command Line
    By BlaineSch in forum Computer Software/OS
    Replies: 13
    Last Post: 07-31-2009, 05:50 AM
  4. Command line - %currentuser% type command
    By flipz in forum General Programming
    Replies: 0
    Last Post: 02-09-2009, 06:30 AM
  5. PHP command Line
    By dirkfirst in forum PHP Development
    Replies: 1
    Last Post: 10-26-2006, 08:31 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts