Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


VB question how to load paths?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Hack-Addict
Master Cheater
Reputation: 0

Joined: 20 Nov 2007
Posts: 287

PostPosted: Thu Aug 21, 2008 11:09 pm    Post subject: VB question how to load paths? Reply with quote

Hey, how would I make it, so when it opens, it doesn't open a file or anything, it just loads the path into the text field?
Like for example:
Code:
On Error GoTo ErrorHandler
Dim Contentfile
Me.CommonDialog1.Filter = "Coded bat (*.bat)|*.bat"
CommonDialog1.ShowOpen
Open CommonDialog1.FileName For Input As #2
Input #2, Contentfile
Text1.Text = Contentfile
 & _
vbCrLf + "for this inconvenience."
Close #2
ErrorHandler:
    Select Case Err.Number
        Case Else
            MsgBox "You dident load"
    End Select


How would I turn that into a code that loads the path and not the file?

_________________

Sciextron made the userbar up here, Rep him =D

[img]http://i145.photobucket.com/albums/r225/Michaell61/header.gif[/img] <---Visit theprocoders today!
Back to top
View user's profile Send private message
EvilHottness
Advanced Cheater
Reputation: 0

Joined: 29 Apr 2008
Posts: 64
Location: Co

PostPosted: Thu Aug 21, 2008 11:13 pm    Post subject: Reply with quote

Take out the

Open CommonDialog1.FileName For Input As #2
Input #2, Contentfile
Text1.Text = Contentfile

and just put Text1.text = commondialog1.filename

_________________
Back to top
View user's profile Send private message
Hack-Addict
Master Cheater
Reputation: 0

Joined: 20 Nov 2007
Posts: 287

PostPosted: Thu Aug 21, 2008 11:53 pm    Post subject: Reply with quote

EvilHottness wrote:
Take out the

Open CommonDialog1.FileName For Input As #2
Input #2, Contentfile
Text1.Text = Contentfile

and just put Text1.text = commondialog1.filename


Thanks man, thats exactly what I needed. Now can you tell me how to make it so it can load any type of file path? It won't let it load the path of an exe or an ini unless I tell it to, can you tell me the code for a load all files? Thanks. Smile I love learning this stuff.

_________________

Sciextron made the userbar up here, Rep him =D

[img]http://i145.photobucket.com/albums/r225/Michaell61/header.gif[/img] <---Visit theprocoders today!
Back to top
View user's profile Send private message
EvilHottness
Advanced Cheater
Reputation: 0

Joined: 29 Apr 2008
Posts: 64
Location: Co

PostPosted: Fri Aug 22, 2008 12:12 am    Post subject: Reply with quote

Me[DOT]CommonDialog1[DOT]Filter = "All Files (*[DOT]*)|*[DOT]*"

Replace [DOT] with . of course it says im not allowed to post urls how gey an its not evena url!

_________________
Back to top
View user's profile Send private message
Hack-Addict
Master Cheater
Reputation: 0

Joined: 20 Nov 2007
Posts: 287

PostPosted: Fri Aug 22, 2008 12:23 am    Post subject: Reply with quote

EvilHottness wrote:
Me[DOT]CommonDialog1[DOT]Filter = "All Files (*[DOT]*)|*[DOT]*"

Replace [DOT] with . of course it says im not allowed to post urls how gey an its not evena url!


Wtf? Lol thats sucks, I think you gotta put it in a "[c0de]" box. Razz
Thanks man,.

_________________

Sciextron made the userbar up here, Rep him =D

[img]http://i145.photobucket.com/albums/r225/Michaell61/header.gif[/img] <---Visit theprocoders today!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites