I've configured Textpad to not allow multiple instances but Textpad still sometimes opens multiple windows. Any ideas?
2 Answers
Appears to be because I had the "Replace Notepad" preference (General area) selected. When we opened a file configured to use Notepad, this would open an add'l Textpad window. Fix is just to set Textpad to be the default program for the file types currently configured to use Notepad.
I've had this problem with Textpad 7 running under Windows 7, where regardless of whatever the "allow multiple instances to run" setting in the configuration was Textpad would always open a new instance when a file is opened with the "Open with Textpad" from the Windows explorer context menu. It creates another "Open with existing session" menu but that is more clicks I don't need. Very annoying.
Locate the class ID in the registry for Textpad's entry in the explorer context menu, which should be {8A791F0C-C63C-4EC5-B97F-FBCE74EDBC54}. If you can't find this for your version of Textpad then locate the class ID from the HKCR*\ShellEx\ContextMenuHandlers\Textpad(Default) key
Search for that class ID and you should see an AppOptions subkey, set to "-q -m" by default
Remove the "-m", which is forcing Textpad to open new instances regardless of the configured setting
Solved!