Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Recent Files

Recent Files

Scheduled Pinned Locked Moved C#
csharpvisual-studioquestion
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    TJS4u
    wrote on last edited by
    #1

    hello all what is the technique behind the implementing an option like recent files for a window application in c#.... the last 5 projects to be shown always and it must be open when user clicks for it... same as in Visual studio.NET

    C L 2 Replies Last reply
    0
    • T TJS4u

      hello all what is the technique behind the implementing an option like recent files for a window application in c#.... the last 5 projects to be shown always and it must be open when user clicks for it... same as in Visual studio.NET

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      You write code so that you call each time you open a file. This code takes the filename of the file and you store the filename somewhere. When you display the menu that shows the last few files opened to retrieve the information you previously stored. Where you store that information is up to you. You may decide an XML file works best, maybe in the registry, maybe a database (if you are already using one) or something else.

      Developer Day Scotland 2 - Free community conference Recent blog posts: *Throwing Exceptions *Training Developers * Method hiding or overriding - or the difference between new and virtual

      1 Reply Last reply
      0
      • T TJS4u

        hello all what is the technique behind the implementing an option like recent files for a window application in c#.... the last 5 projects to be shown always and it must be open when user clicks for it... same as in Visual studio.NET

        L Offline
        L Offline
        Luc Pattyn
        wrote on last edited by
        #3

        Hi, there are several articles about this subject. Here is one of them.[^] :)

        Luc Pattyn [Forum Guidelines] [My Articles]


        Fixturized forever. :confused:


        X 1 Reply Last reply
        0
        • L Luc Pattyn

          Hi, there are several articles about this subject. Here is one of them.[^] :)

          Luc Pattyn [Forum Guidelines] [My Articles]


          Fixturized forever. :confused:


          X Offline
          X Offline
          Xmen Real
          wrote on last edited by
          #4

          dude, i dont think its a good idea to write files info in registry. It will keep there even if you remove the app or you also need to code when uninstalling and so...

          TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN% Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i’TV.C\y<pŠjxsg-b$f4ia> -------------------------------------------------------- 128 bit encrypted signature, crack if you can

          L 1 Reply Last reply
          0
          • X Xmen Real

            dude, i dont think its a good idea to write files info in registry. It will keep there even if you remove the app or you also need to code when uninstalling and so...

            TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN% Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i’TV.C\y<pŠjxsg-b$f4ia> -------------------------------------------------------- 128 bit encrypted signature, crack if you can

            L Offline
            L Offline
            Luc Pattyn
            wrote on last edited by
            #5

            Hi, some think otherwise, see e.g. HKEY_CURRENT_USER\Software\Microsoft\MSDN\9.0\WebBrowser\MRU HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Excel\File MRU HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\PowerPoint\File MRU HKEY_CURRENT_USER\Software\Microsoft\VCExpress\9.0\FileMRUList and where ever you put it, you will have to clean up upon removal. :)

            Luc Pattyn [Forum Guidelines] [My Articles]


            Fixturized forever. :confused:


            X 1 Reply Last reply
            0
            • L Luc Pattyn

              Hi, some think otherwise, see e.g. HKEY_CURRENT_USER\Software\Microsoft\MSDN\9.0\WebBrowser\MRU HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Excel\File MRU HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\PowerPoint\File MRU HKEY_CURRENT_USER\Software\Microsoft\VCExpress\9.0\FileMRUList and where ever you put it, you will have to clean up upon removal. :)

              Luc Pattyn [Forum Guidelines] [My Articles]


              Fixturized forever. :confused:


              X Offline
              X Offline
              Xmen Real
              wrote on last edited by
              #6

              mate, these softwares get remove but they dont remove their info from reg. thats why system startup keep slow even you uninstall the soft, isnt it ?

              TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN% Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i’TV.C\y<pŠjxsg-b$f4ia> -------------------------------------------------------- 128 bit encrypted signature, crack if you can

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups