Go Back   Gaming Gutter > Non-Gaming > Programming > Tutorials


Tutorials - Looking for programming tutorials to increase your knowledge? Do so here.

» Site Navigation
» Home
» FAQ
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Advertisement
» Recent Threads
Go to first new post learning noob vs. Kyo:...
Yesterday 05:26 PM
Last post by ORLYBISH
Today 03:26 PM
148 Replies, 681 Views
Go to first new post Jtdusk
10-09-2008 01:32 PM
by Cyrus
Last post by learning noob
Today 03:26 PM
69 Replies, 387 Views
Go to first new post Kyo or Yuki?
09-18-2008 01:39 PM
by jtdusk
Last post by ORLYBISH
Today 03:24 PM
23 Replies, 288 Views
Go to first new post Inuyasha or Naruto?
04-13-2008 12:58 PM
Last post by HunterZero
Today 03:23 PM
115 Replies, 1,096 Views
Go to first new post Price Check/Selling...
Yesterday 04:46 PM
by Sticky
Last post by Dustyßottems
Today 03:22 PM
14 Replies, 80 Views
Reply
 
LinkBack Thread Tools Display Modes

 [vb6]How to make a program like word[vb6]
Old 05-22-2007, 03:56 AM   #1 (permalink)
gôt hacks?

{Nasadaws} is offline
 
{Nasadaws}'s Avatar
 
Join Date: Mar 2007
Location: winnipeg
Age: 13
Posts: 1,375
iTrader: 0 / 0%
{Nasadaws} Is gaining popularity
Rep Power: 6
[vb6]How to make a program like word[vb6]

Load Microsoft Visual Basic, then select Standard EXE Project if VB5/6, click on the option then click Open.
A Blank Form named Form1 should then appear Then from the Visual Basic Components Menu Select the Text Box Control
Draw a Text Box on the Form Then goto the Properties box and change MultiLine to True and ScrollBar to 2 - Vertical then from the Visual Basic Components Menu Select the Command Button Control
Draw Three Command Buttons on the Form
Change the Caption of Command3 to Quit using the Properties
Change the Caption of Command2 to Save and the Caption of Command1 to Load, using the Properties for each Button
Double Click on the Button Labeled Load (Command1) and type in the Command1_Click() Sub:
Code:
Dim strName As String, strFile As String, strTemp As String On Error GoTo ErrHandler
strName = InputBox("Filename:")
Open strName For Input As #1
strFile = ""
Do Until EOF(1)
Line Input #1, strTemp
strFile = strFile & strTemp & vbCrLf
Loop
Text1.Text = strFile
Close #1
ErrHandler:
Double Click on the Button Labeled Save (Command2) and type in the Command2_Click() Sub:
Code:
Dim strName As String On Error GoTo ErrHandler
strName = InputBox("Filename:")
Open strName For Output As #1
Print #1, Text1.Text
Close #1
ErrHandler:
Double Click on the Button Labeled Quit (Command3) and type in the Command3_Click() Sub:
Code:
Unload Me
Save the Project (as for example prjTextEditor)into a vacant folder as you have finished the application. Click on Start / Run or Press F5



Now Click on Load and an Input Box will appear, type a location of a file





Click Ok and the document should be displayed in the Text Box



You can Save a txt (Text) File by clicking on Save and enter a filename the contents of the Text Box will be saved to that File so that you can Open (Load) your old File To Quit the Application Click on Quit.






by {nasadaws}
And {nasadaws} friend called dan
and gaminggutter for being there when i felt i needed to post this
__________________
Need account leveling?
Go here http://www.gaminggutter.com/ariels-r...ce-t25773.html
Very trust worthy!





Thanks to Sejiru for the great sig!




Last edited by {Nasadaws}; 05-22-2007 at 03:59 AM.
  Reply With Quote

 
Old 07-13-2007, 08:23 AM   #2 (permalink)
Underground

Mrnoname10 is offline
 
Mrnoname10's Avatar
 
Join Date: Jul 2007
Posts: 111
iTrader: 0 / 0%
Mrnoname10 Is gaining popularity
Rep Power: 4
COOL i goota try that
__________________


  Reply With Quote

 
Old 11-23-2007, 05:39 PM   #3 (permalink)
Donor

swisscheese is offline
 
swisscheese's Avatar
 
Join Date: Apr 2007
Posts: 102
iTrader: 0 / 0%
swisscheese Is gaining popularity
Rep Power: 5
Quote:
Originally Posted by Mrnoname10 View Post
COOL i goota try that
Me Too
  Reply With Quote

 
Old 12-16-2007, 07:31 PM   #4 (permalink)
Underground

bionical2 is offline
 
Join Date: Dec 2007
Posts: 101
iTrader: 0 / 0%
bionical2 Is gaining popularity
Rep Power: 3
Sweet!! That is so cool!
  Reply With Quote
Reply

Bookmarks



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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

Powered by vBadvanced CMPS v3.0 RC2

All times are GMT -7. The time now is 03:27 PM.


vBulletin skin developed by: eXtremepixels
The contents of this webpage are copyright © 2006-2008 GamingGutter.com. All Rights Reserved.

Page generated in 0.15756106 seconds (100.00% PHP - 0% MySQL) with 19 queries