![]() |
|
OFD tut - Printable Version +- Sinisterly (https://sinister.li) +-- Forum: Coding (https://sinister.li/Forum-Coding) +--- Forum: Visual Basic & .NET Framework (https://sinister.li/Forum-Visual-Basic-NET-Framework) +--- Thread: OFD tut (/Thread-OFD-tut) |
OFD tut - White Charisma - 02-04-2011 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()this will make it so when you click your button, you can choose a file with your ofd now leave your button alone ![]() 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 Classeg: 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
RE: OFD tut - 1llusion - 02-09-2011 Nice tut ![]() one thing, isn't "End Class" important? RE: OFD tut - White Charisma - 02-11-2011 oh yeah lol edited it now
|