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

Thread: Set extension?

  1. #1
    Join Date
    May 2001
    Posts
    155

    Set extension?

    I'm making a control. In my code i have this function:

    Function openfile(Extension as string,Extension Description as string)
    RaiseEvent Isopened
    dlg.Filter = "Text Files |*.txt|"
    dlg.ShowOpen
    RichTextBox1.loadfile dlg.Filename
    End Function



    How do i make the dialog extension the extension and description that the 2 variables hold?
    Ex.
    If Extension = *.ccc And Description = "CCC files"


    --Ant
    --------------------------------------------------
    Want a javascript Editor? Visit:
    http://members.fortunecity.com/ants12/jeditdload16.htm
    Or email me:
    [email protected]

  2. #2
    Join Date
    May 2001
    Location
    Russia
    Posts
    200

    Re: Set extension?

    dlg.Filter = "Text Files |*.txt|CCC files |*.ccc"

    Andy Tower

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