CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Thread: FileDialog

  1. #1
    Join Date
    Apr 2003
    Posts
    11

    FileDialog

    How do you change the text in the Open box when you use OpenFileDialog? I am trying to use this file dialog to delete files instead of trying to open them. Thanks

  2. #2
    Join Date
    Nov 2002
    Location
    Singapore
    Posts
    1,890
    so does it means that
    you want to show some filename in FileDialog and then you click ok it will delete ?

    -Paresh
    - Software Architect

  3. #3
    Join Date
    Apr 2003
    Posts
    11
    Yes, I would like it to show the files like the OpenFileDialog function, then the user would choose the file, then when you click ok the file would be deleted.

  4. #4
    Join Date
    Nov 2002
    Location
    Singapore
    Posts
    1,890
    actually you can use the filter to filter out the functions, check the local VS.NET help the sample is given there or type the class name in MSDN you will find the help .




    Paresh
    - Software Architect

  5. #5
    Join Date
    Apr 2003
    Posts
    11
    Actually what I am looking for is a way to change the text in the "Open" button to "Delete" in the right hand lower corner when you do openFileDialog1.ShowDialog() call.

  6. #6
    Join Date
    Nov 2002
    Location
    Singapore
    Posts
    1,890
    i don't think so some direct way is there,
    if you consider using
    Container, you can try out pulling the inner components but that would be tedious job working with hashcode,
    instead you can show the box and when said ok then delete file or design your own with getting the source files, and have a delete button.

    Paresh
    - Software Architect

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured