Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

[TuT] How to use all Dialogs in VB - Font, Color, Open & Save!

No you did not end the If statement. Check it out.
(Mar 12, 2010 08:37 AM)icyberhack Wrote:  An end if is missed in the end of the first code :

CORRECTED :
Code
Dim OpenMe As New OpenFileDialog
        OpenMe.Filter = "Executable file(*.exe)|*.exe"
        If OpenMe.ShowDialog = Windows.Forms.DialogResult.OK Then
            TextBox1.Text = OpenMe.FileName
        Else
            MsgBox("Error, please select valid file.", MsgBoxStyle.Critical, "Error")
EndIf
            Exit Sub

🤣 Wrong correction xD End If AFTER exiting the sub.
(Mar 24, 2010 12:47 PM)GoldStar Wrote:  🤣 Wrong correction xD End If AFTER exiting the sub.


Haha, owned. 🤣
😊..don't laugh at a beginer guys 😭
I was just trying to learn😵
(Mar 24, 2010 12:55 PM)CustomiZer Wrote:  😊..don't laugh at a beginer guys 😭
I was just trying to learn😵

nah don't worry ^^ didn't mean it that way ^^
And some douchebag rated this thread with 1 star, lol.
Wow great overall tutorial soul!
Awesome post . helped me alot thanx
Hey, thanks for these. What about print dialog?
Very nice, This was helpful learning tut gr8 for beguilers like me, I am having trouble with the SaveFile Dialog, but rest work good 4 me, I changed .exe to .txt I want to be able to save textbox1.text to a .txt file in the resources folder of my app, how can I use this code to do that any ideas?
This is cool, gonna check this out :) great Tutorial.
This is great man! Thanks for the help, I hadn't ever known how to save or open files.
keep posting it's pretty cool!
another way for the OpenFileDialog is just type

PHP Code

<?php 
OpenFileDialog1
.ShowDialog() 

then you can open what ever you want :)
(Jun 30, 2010 05:16 AM)iShockYouu Wrote:  another way for the OpenFileDialog is just type

PHP Code

<?php 
OpenFileDialog1
.ShowDialog() 

then you can open what ever you want :)

Only problem is if you just do .ShowDialog() you don't have any properties nor do you have a statement set for when a file is opened or the dialog is closed.

Awesome tutorial, man.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C] by VoxiFeb 27, 2019 03:55 PM 3 259 Feb 27, 2019 03:55 PM
Last Post: Voxi
[C#] by FarosMolokoFeb 24, 2019 07:05 AM 8 321 Feb 24, 2019 07:05 AM
Last Post: gigajew
[C#] by ze-sladeMay 12, 2016 12:59 PM 4 141 May 12, 2016 12:59 PM
Last Post: ze-slade