Login Register






OFD tut filter_list
Author
Message
OFD tut #1
Okay so, my first vb.net tut not c/p'd lol
if its crap, im sorry, its just for complete n00bs at vb =)

so i made a project and studied a binder
and thought, why dont i post a tut to show people what ofd is and why and how etc...

so lets get started -

open up vb08 and get a textbox and a button

now double click the button and put this between end sub and private form button 1 etc:

Code:
ofd1.ShowDialog()
dont worry if you get an error with your ofd1 yet =)

this will make it so when you click your button, you can choose a file with your ofd
now leave your button alone Wink

leave the textbox as it is

now go to the toolbox and add a openfiledialog and name it ofd1 =)

then, go to your code, delete the bottom bit where it says end class and put this
Code:
Sub file1_ok() Handles ofd1.FileOk TextBox1.Text = ofd1.FileName End Sub End Class
this means that the file you choose [with the button]the directory of the file you chose[the file path] will appear in the textbox

eg:

i click my button and choose....predator pain keylogger 4.exe

in the textbox this would appear

c://users/nathan/desktop/predator_pain_keylogger.x.x.exe

heres a dll for my example:

http://uppit.com/rwtj4w4mksjc/Example.zip

thanks Smile

Reply

RE: OFD tut #2
Nice tut Smile

one thing, isn't "End Class" important?
Staff will never ever ask you for your personal information.
We know everything about you anyway.

Reply

RE: OFD tut #3
oh yeah lol

edited it now Smile

Reply