Visual Basic .NET Tutorial 23 -How To Use OpenFileDialog (FileName, Filter, Multiselect ..)

Поделиться
HTML-код
  • Опубликовано: 19 сен 2024
  • how to filter open file dialog in VB.Net
    Populate Listbox From Multi-select OpenFileDialog
    How To Use the OpenFileDialog Box in VB.NET
    How to open a file using openfiledialog in vb.net?
    Let users pick a file to open via OpenFileDialog in VB.NET
    FileDialog.Filter Property (Microsoft.Win32) - MSDN
    msdn.microsoft.com/en.../mic
    Searches related to how to use openfiledialog vb.net filters
    vb net openfiledialog filter image doc pdf text png jpg cpp exe
    vb net openfiledialog filter excel

Комментарии • 39

  • @garyoptica
    @garyoptica 10 лет назад +1

    I am really grateful for Asian and far east programmers for making great videos explaining things clearly in English whilst others make videos that lead to no where
    well done Sir and many thanks

  • @jeffschultz4168
    @jeffschultz4168 7 лет назад +7

    I noticed my .txt files weren't working but my .pdf files showed up. So a quick check in the code and the space was the problem. So to anyone that can't get this to work, make sure the code is ..."TEXT BOX | *.txt| ...." the reason the .pdf worked was it was at the end of the string without a space (.... .pdf")

  • @yogishbollary7179
    @yogishbollary7179 4 года назад

    Super Information sir, thank you

  • @ProgrammingKnowledge
    @ProgrammingKnowledge  10 лет назад +2

  • @THEwed123wet
    @THEwed123wet 2 года назад

    thanks this video helped me solve an error I had on my program

  • @amitbodhwani9119
    @amitbodhwani9119 7 лет назад +1

    Hi,
    I have a button called UpLoad on my webpage which ask to upload the .csv file.
    I am able to click that button using VBA code and after clicking that button on webpage a popup appears similar to open dialog box which ask to upload a file for example say "Star.csv" but i want to insert the file name called "Star.csv" which is stored in my local directory automatically using VBA without user interaction.
    Any help will be appreciated .
    Thanks!

  • @chrisread5445
    @chrisread5445 9 лет назад +1

    HI This is fine if one is using a forms based project but I'm trying to use an open file dialogue in a WebForms project and in a web form, the OpenFormDialogue doesn't appear in the Toolbox... Does this mean I can't use this approach?

  • @MichaelAllen14
    @MichaelAllen14 8 лет назад

    Thanks a lot for this video. It was very helpful.

  • @ahmeddzcomahmed
    @ahmeddzcomahmed 8 лет назад

    HelpFul

  • @bferndejhavik
    @bferndejhavik 6 лет назад

    nice tutorial

  • @LAKXx
    @LAKXx 4 года назад

    Hey, instead of opening a filepath i want to open a windows search like so ''search-ms:displayname=Search%20Results%20in%20Pictures&crumb=Anyintegernumber%3A%3D4%20OR%20System.Generic.String%3A4&crumb=location:C'' but visual basic doesent allow this, is there any way to include a search before opening the folderpath ?

  • @danielw9542
    @danielw9542 8 лет назад

    I did find this video very helpful but when I ran my program and had:ListBox1.Text = (OpenFileDialog1.FileNames(x))It came up with an error saying: An unhandled exception to type 'System.IndexOutOfRangeException' occurred in filePath.exeAdditional information: Index was outside the bounds of the array.Please can I get shown where I went wrong. Thank YouP.S.. no matter what I use (message box, label, button, etc...) I get the same thing over and over again.

  • @onex_luadev2199
    @onex_luadev2199 7 лет назад

    How about when doing it you like make it where you open a TXT file and the content gets displayed on the RichTextBox?

  • @MysteriousPowers
    @MysteriousPowers 3 года назад

    sorry...but when i close the dialog box its opens back up..how do i fix this?

  • @N7411adm
    @N7411adm 10 лет назад +1

    how to save selected photo from openfiledialog to path i want.
    need your help!

  • @athiramohan4978
    @athiramohan4978 5 лет назад +1

    Sir. .I can't get openfiledialogue frm choosen items

  • @widiahaizu
    @widiahaizu 7 лет назад

    Hello! Do yiu have tutorial for save images from video and save it to selected folder using visual basic? Thankyou

  • @Csuhi
    @Csuhi 10 лет назад +1

    Where can I find OR sign near filter? What is its code?

    • @Csuhi
      @Csuhi 10 лет назад +1

      I think I found it. Is there OK? Alt +124 | ?

  • @MarducEntertainment
    @MarducEntertainment 5 лет назад

    and if i want the program open all files in a folder automatically ??

  • @rayees_thurkki
    @rayees_thurkki Год назад

    How to open a file path document after press a button

  • @anshuvishwakarma6020
    @anshuvishwakarma6020 3 года назад

    How to select database dynamically using dialogs

  • @poonshotateerawasu
    @poonshotateerawasu 9 лет назад

    thanks.

  • @nitrousfaacundo
    @nitrousfaacundo 7 лет назад +1

    what is I only want the file name not the path

  • @SonLyAu
    @SonLyAu 7 лет назад

    thank you

  • @beyrkliyev1480
    @beyrkliyev1480 9 лет назад

    of course

  • @shrc.
    @shrc. 5 лет назад

    Error 1 Operator '=' is not defined for types 'System.Windows.Forms.OpenFileDialog' and 'System.Windows.Forms.DialogResult'.

  • @otto1897
    @otto1897 10 лет назад

    You're goood

  • @almaldonado007
    @almaldonado007 9 лет назад

    Hi , can you publish or put a code how to insert a image in the database

    • @jacobbaird5428
      @jacobbaird5428 9 лет назад

      Angel Maldonado Diaz Say I want to set the background image on a picture box called Picture1 to an imported file using OpenFileDialog, I'd write:
      Picture1.BackgroundImage = Image.FromFile(OpenFileDialog1.FileName)

  • @Axeyked
    @Axeyked 7 лет назад

    " For x = 0 To OpenFileDialog1.FileName.Count - 1" this solution of puting -1 after Count isn't working, does anyone know the solution?

    • @rii3534
      @rii3534 2 года назад

      hi I'm from the future, have you managed to solve the error?🤣

    • @Axeyked
      @Axeyked 2 года назад

      @@rii3534 yup, the solution is to leave programming and take up technical writing as a career 😂

    • @rii3534
      @rii3534 2 года назад

      @@Axeyked nooo :(😥

  • @MrJoshua49651
    @MrJoshua49651 5 лет назад

    how to save the files?