using built-in feature

Hi all,

Can pls teach me how to include a built in features in my program

i want to include browse feature in my program. i have a "browse" button in my interface and when user clicks on it.. i want the built in form to be displayed and allows the users to select the file from their pc.




Answer this question

using built-in feature

  • chris99

    yeah... thanks a lot.. i have successfully include it in my program..

    really thanks ya!!



  • Çetin Yaşar

    SmtpMail.SmtpServer Property

    http://msdn2.microsoft.com/en-us/library/system.web.mail.smtpmail.smtpserver.aspx

    Namespace: System.Web.Mail
    Assembly: System.Web (in system.web.dll)


  • Josemonpala

    You probably wanting to allow them to select a file from there PC such as the file to load data from.

    There is a control called the OpenFileBrowser.

    Put this code in the browse button click event. This will display a Open FIle Dialog allow them to select a file. You simply need to code what you want to do with it. This adds some file filters and also sets the initial directory.

    Dim openFileDialog1 As New OpenFileDialog()

    openFileDialog1.InitialDirectory = "c:\"
    openFileDialog1.Filter = "txt files (*.txt)|*.txt|All files (*.*)|*.*"
    openFileDialog1.FilterIndex = 2

    If openFileDialog1.ShowDialog() = Windows.Forms.DialogResult.OK Then
    Dim Filename As String = openFileDialog1.FileName

    'Whatever you want to do with this file if they clicked OK
    End If


  • Slavochka

    hi fren,

    acutually i got another question not related to the question above.

    i would like to ask whether what reference should i import into my program in order to use the smtpMail keyword.



  • using built-in feature