Go Back   Gaming Gutter


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

Password:

Not a member yet?
Register Now!
» Advertisement
» Recent Threads
Go to first new post Best current TV show
11-13-2008 10:07 AM
Last post by agentgerbil
Today 10:59 PM
49 Replies, 333 Views
Go to first new post I feel like shit.
Today 10:49 PM
Last post by Unregenerate Passion
Today 10:59 PM
3 Replies, 4 Views
Go to first new post [S]Tyrannian tuskainny,...
11-28-2008 12:15 AM
by 1x1
Last post by 1x1
Today 10:59 PM
9 Replies, 70 Views
Go to first new post Anyone Who's Quitting...
11-05-2008 03:12 AM
by vivi999
Last post by jandreafb
Today 10:53 PM
46 Replies, 379 Views
Go to first new post Instruments, anyone?
10-23-2008 11:50 AM
Last post by jandreafb
Today 10:52 PM
148 Replies, 848 Views
View Single Post

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

{Nasadaws} is offline
 
{Nasadaws}'s Avatar
 
Join Date: Mar 2007
Location: winnipeg
Age: 13
Posts: 1,375
GPoints: 31
iTrader: 0 / 0%
{Nasadaws} Is gaining popularity
Rep Power: 7
[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 04:59 AM..
  Reply With Quote
 
Powered by vBadvanced CMPS v3.0 RC2

All times are GMT -7. The time now is 11:00 PM.


vBulletin skin developed by: eXtremepixels
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The contents of this webpage are copyright © 2006-2008 GamingGutter.com. All Rights Reserved.

Page generated in 0.08690000 seconds (100.00% PHP - 0% MySQL) with 18 queries