Luigi Auriemma

aluigi.org (ARCHIVE-ONLY FORUM!)
It is currently 19 Jul 2012 14:41

All times are UTC [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Need help verry basic, Visual Basic 6 GUI
PostPosted: 29 Aug 2009 09:38 

Joined: 22 Aug 2009 09:52
Posts: 9
Guys, my aim is to get a GUI and on that GUI I want a small box where i would be able to type numbers only, where actually the IP address will be in. and a BUILD button. This will just build up a .cfg file where ever the .exe (the program it self is). I just need a clue how I could be able to do this using Visual Basic 6 and I have made the GUI but don't know how to enter codes into it. I just got a script. But in this script you have to type in the server IP about 28 times, I would like to have a small tool that makes up a .cfg file with the script and you can change the ip address from the tool by just typing the ip address and clicking BUILD something like this in the image below:
Image


Top
 Profile  
 
 
 Post subject: Re: Need help verry basic, Visual Basic 6 GUI
PostPosted: 03 Sep 2009 03:27 

Joined: 08 Jun 2008 07:17
Posts: 92
Ill make you it, I'm bored out of my mind right now. I'll attach source when I'm done


Top
 Profile  
 
 Post subject: Re: Need help verry basic, Visual Basic 6 GUI
PostPosted: 03 Sep 2009 03:54 

Joined: 08 Jun 2008 07:17
Posts: 92
Here you go I've commented everything so you can learn how it works it is 7 lines of code.

Code:
Dim x As Integer                            'this is used to count the loops

Open App.Path & "\" & "blah.cfg" For Output As #1 'this will create blah.cfg where ever this .exe is in a temp buffer for now
   
Do Until x = 28                             'this will loop until its done 28 times
    Print #1, Text1                         'this will type what ever is in text1 into the cfg file
    x = x + 1                               'after printing a line add X so we can loop
Loop                                        'makes it go back to do until up top until x is 28
 
Close #1                                    'this will close the buffer with what ever was put into it then make the .cfg file  for you!


anyways I attached the full source you can do what ever you want to it


Attachments:
AiDz0r project.zip [4.54 KiB]
Downloaded 92 times
Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for: