Lost Password?


  #1 (permalink)  
Old 11-22-2006, 02:32 PM
TcM's Avatar   
TcM TcM is offline
Code Warrior
 
Join Date: Aug 2006
Location: In a technologic world :p
Posts: 8,332
Credits: 0
Rep Power: 68
TcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of light
Default 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 To view attachments in this forum your post count must be 1 or greater. You currently have 0 posts.

Last edited by TcM; 11-22-2006 at 02:34 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 11-24-2006, 05:23 PM
Jordan's Avatar   
Jordan Jordan is offline
Administrator
 
Join Date: Nov 2005
Location: Hendersonville, NC
Posts: 9,155
Last Blog:
Ext JS or Ext GWT
Credits: 1
Rep Power: 20
Jordan is just really niceJordan is just really niceJordan is just really niceJordan is just really nice
Send a message via ICQ to Jordan Send a message via AIM to Jordan Send a message via MSN to Jordan
Default

Nice tutorial! Thanks!
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog
The CodeCall Wiki is now fully integrated with vBulletin users! Check it out and add some new pages!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11-24-2006, 06:11 PM
TcM's Avatar   
TcM TcM is offline
Code Warrior
 
Join Date: Aug 2006
Location: In a technologic world :p
Posts: 8,332
Credits: 0
Rep Power: 68
TcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of light
Default

You are more than welcome! Thanks for your feedback!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 11-25-2006, 01:42 AM
xXHalfSliceXx's Avatar   
xXHalfSliceXx xXHalfSliceXx is offline
Co-Administrator
 
Join Date: Oct 2006
Location: Hendersonville, NC
Age: 24
Posts: 1,226
Credits: 0
Rep Power: 20
xXHalfSliceXx is on a distinguished road
Send a message via AIM to xXHalfSliceXx Send a message via MSN to xXHalfSliceXx Send a message via Yahoo to xXHalfSliceXx
Default

You are always good to the newbies!
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum | My Company
Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 11-25-2006, 04:31 AM
TcM's Avatar   
TcM TcM is offline
Code Warrior
 
Join Date: Aug 2006
Location: In a technologic world :p
Posts: 8,332
Credits: 0
Rep Power: 68
TcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of light
Default

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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #6 (permalink)  
Old 01-12-2007, 05:46 AM
samoh77 samoh77 is offline
Newbie
 
Join Date: Jan 2007
Posts: 1
Credits: 0
Rep Power: 0
samoh77 is on a distinguished road
Default

Good tutorial. Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-12-2007, 08:34 AM
TcM's Avatar   
TcM TcM is offline
Code Warrior
 
Join Date: Aug 2006
Location: In a technologic world :p
Posts: 8,332
Credits: 0
Rep Power: 68
TcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of light
Default

Glad it helped
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 08-23-2008, 03:23 PM
Ollox360 Ollox360 is offline
Newbie
 
Join Date: Jun 2008
Posts: 17
Credits: 2
Rep Power: 2
Ollox360 is on a distinguished road
Default Re: VB6.0:Tutorial, Command Line

pretty good, i have been looking for some "extra shortcut command lines"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 08-23-2008, 03:31 PM
Xav's Avatar   
Xav Xav is offline
Code Warrior
 
Join Date: Mar 2008
Location: London, England
Posts: 9,411
Last Blog:
Web slideshow in JavaS...
Credits: 2,582
Rep Power: 75
Xav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud of
Send a message via MSN to Xav
Default Re: VB6.0:Tutorial, Command Line

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


Mr. Xav | Website | Forums | Blog
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 08-25-2008, 01:19 PM
Healncrush's Avatar   
Healncrush Healncrush is offline
Newbie
 
Join Date: Aug 2008
Posts: 12
Credits: 9
Rep Power: 0
Healncrush is on a distinguished road
Default Re: VB6.0:Tutorial, Command Line

Awesome, Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
VB6.0:Tutorial, WipeFile TcM VB Tutorials 8 06-11-2008 12:33 PM
VB6.0:Tutorial, Error handling TcM VB Tutorials 9 06-06-2008 02:31 PM


All times are GMT -5. The time now is 12:10 PM.

Contest Stats

WingedPanther ........ 2672.3
Xav ........ 2581.51
Brandon W ........ 1699.26
John ........ 1207.73
marwex89 ........ 1175.24
morefood2001 ........ 959.05
dcs ........ 650.52
Steve.L ........ 475.59
orjan ........ 409.29
chili5 ........ 380.6

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 97%

Ads