Opening a “known file type” into running instance of custom app - .NET

前端 未结 5 1717
情歌与酒
情歌与酒 2020-11-30 06:56

How would you open a file (that has a known file/app association in the registry) into a \"running instance\" of the application it\'s supposed to open in? An example would

5条回答
  •  广开言路
    2020-11-30 07:37

    Looks like what you are looking for is creating a single instance application. This can be done in C# by using WindowsFormsApplicationBase located in Microsoft.VisualBasic.dll

    For details, take a look at: http://www.hanselman.com/blog/TheWeeklySourceCode31SingleInstanceWinFormsAndMicrosoftVisualBasicdll.aspx or search for WindowsFormsApplicationBase

提交回复
热议问题