Può capitare nell’IDE di Visualstudio che cliccando su un form invece di uscire il form stesso esca del codice HTML.
Per evitare questo problema creare sul desktop un file con estensione REG copiandovi questo contenuto:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.tmp]
@="htmlfile"
"PerceivedType"="text"
"Content Type"="text/html"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.htm\OpenWithList]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.htm\OpenWithList\devenv.exe]
@=""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.htm\OpenWithList\Excel.exe]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.htm\OpenWithList\Excel.exe\shell]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.htm\OpenWithList\Excel.exe\shell\edit]
@="&Apri"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.htm\OpenWithList\Excel.exe\shell\edit\command]
@="\"C:\\Program Files\\Microsoft Office\\Office14\\EXCEL.EXE\" /dde"
"command"=hex(7):79,00,6b,00,47,00,5e,00,56,00,35,00,21,00,21,00,21,00,21,00,\
34,00,21,00,21,00,21,00,21,00,4d,00,4b,00,4b,00,53,00,6b,00,45,00,58,00,43,\
00,45,00,4c,00,46,00,69,00,6c,00,65,00,73,00,3e,00,75,00,32,00,42,00,65,00,\
54,00,2c,00,38,00,58,00,5b,00,3d,00,5d,00,39,00,3d,00,3d,00,2c,00,2a,00,29,\
00,4e,00,6e,00,5d,00,20,00,2f,00,64,00,64,00,65,00,00,00,00,00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.htm\OpenWithList\Excel.exe\shell\edit\ddeexec]
@="[open(\"%1\")]"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.htm\OpenWithList\Excel.exe\shell\edit\ddeexec\application]
@="Excel"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.htm\OpenWithList\Excel.exe\shell\edit\ddeexec\topic]
@="system"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.htm\OpenWithList\Microsoft Excel]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.htm\OpenWithList\Microsoft Excel\shell]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.htm\OpenWithList\Microsoft Excel\shell\edit]
@="&Apri"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.htm\OpenWithList\Microsoft Excel\shell\edit\command]
@="\"C:\\Program Files\\Microsoft Office\\Office14\\EXCEL.EXE\" /dde"
"command"=hex(7):79,00,6b,00,47,00,5e,00,56,00,35,00,21,00,21,00,21,00,21,00,\
34,00,21,00,21,00,21,00,21,00,4d,00,4b,00,4b,00,53,00,6b,00,45,00,58,00,43,\
00,45,00,4c,00,46,00,69,00,6c,00,65,00,73,00,3e,00,75,00,32,00,42,00,65,00,\
54,00,2c,00,38,00,58,00,5b,00,3d,00,5d,00,39,00,3d,00,3d,00,2c,00,2a,00,29,\
00,4e,00,6e,00,5d,00,20,00,2f,00,64,00,64,00,65,00,00,00,00,00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.htm\OpenWithList\Microsoft Excel\shell\edit\ddeexec]
@="[open(\"%1\")]"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.htm\OpenWithList\Microsoft Excel\shell\edit\ddeexec\application]
@="Excel"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.htm\OpenWithList\Microsoft Excel\shell\edit\ddeexec\topic]
@="system"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.htm\OpenWithList\Microsoft Publisher]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.htm\OpenWithList\Microsoft Publisher\shell]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.htm\OpenWithList\Microsoft Publisher\shell\edit]
@="&Apri"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.htm\OpenWithList\Microsoft Publisher\shell\edit\command]
@="\"C:\\Program Files\\Microsoft Office\\Office14\\MSPUB.EXE\" %1"
"command"=hex(7):79,00,6b,00,47,00,5e,00,56,00,35,00,21,00,21,00,21,00,21,00,\
34,00,21,00,21,00,21,00,21,00,4d,00,4b,00,4b,00,53,00,6b,00,50,00,75,00,62,\
00,50,00,72,00,69,00,6d,00,61,00,72,00,79,00,3e,00,31,00,55,00,5e,00,64,00,\
5e,00,4d,00,3d,00,2e,00,4d,00,3d,00,21,00,54,00,27,00,75,00,61,00,4b,00,5a,\
00,2d,00,57,00,21,00,20,00,25,00,31,00,00,00,00,00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.htm\OpenWithList\Microsoft Word]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.htm\OpenWithList\Microsoft Word\shell]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.htm\OpenWithList\Microsoft Word\shell\edit]
@="&Apri"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.htm\OpenWithList\Microsoft Word\shell\edit\command]
@="\"C:\\Program Files\\Microsoft Office\\Office14\\WINWORD.EXE\" /n \"%1\""
"command"=hex(7):79,00,6b,00,47,00,5e,00,56,00,35,00,21,00,21,00,21,00,21,00,\
34,00,21,00,21,00,21,00,21,00,4d,00,4b,00,4b,00,53,00,6b,00,57,00,4f,00,52,\
00,44,00,46,00,69,00,6c,00,65,00,73,00,3e,00,36,00,6c,00,59,00,77,00,66,00,\
7d,00,48,00,50,00,61,00,40,00,74,00,50,00,4c,00,4a,00,65,00,28,00,41,00,75,\
00,41,00,59,00,20,00,2f,00,6e,00,20,00,22,00,25,00,31,00,22,00,00,00,00,00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.htm\OpenWithList\MSPub.exe]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.htm\OpenWithList\MSPub.exe\shell]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.htm\OpenWithList\MSPub.exe\shell\edit]
@="&Apri"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.htm\OpenWithList\MSPub.exe\shell\edit\command]
@="\"C:\\Program Files\\Microsoft Office\\Office14\\MSPUB.EXE\" %1"
"command"=hex(7):79,00,6b,00,47,00,5e,00,56,00,35,00,21,00,21,00,21,00,21,00,\
34,00,21,00,21,00,21,00,21,00,4d,00,4b,00,4b,00,53,00,6b,00,50,00,75,00,62,\
00,50,00,72,00,69,00,6d,00,61,00,72,00,79,00,3e,00,31,00,55,00,5e,00,64,00,\
5e,00,4d,00,3d,00,2e,00,4d,00,3d,00,21,00,54,00,27,00,75,00,61,00,4b,00,5a,\
00,2d,00,57,00,21,00,20,00,25,00,31,00,00,00,00,00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.htm\OpenWithList\notepad.exe]
@=""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.htm\OpenWithList\WinWord.exe]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.htm\OpenWithList\WinWord.exe\shell]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.htm\OpenWithList\WinWord.exe\shell\edit]
@="&Apri"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.htm\OpenWithList\WinWord.exe\shell\edit\command]
@="\"C:\\Program Files\\Microsoft Office\\Office14\\WINWORD.EXE\" /n \"%1\""
"command"=hex(7):79,00,6b,00,47,00,5e,00,56,00,35,00,21,00,21,00,21,00,21,00,\
34,00,21,00,21,00,21,00,21,00,4d,00,4b,00,4b,00,53,00,6b,00,57,00,4f,00,52,\
00,44,00,46,00,69,00,6c,00,65,00,73,00,3e,00,36,00,6c,00,59,00,77,00,66,00,\
7d,00,48,00,50,00,61,00,40,00,74,00,50,00,4c,00,4a,00,65,00,28,00,41,00,75,\
00,41,00,59,00,20,00,2f,00,6e,00,20,00,22,00,25,00,31,00,22,00,00,00,00,00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.htm\OpenWithProgIds]
"htmlfile"=""
"ChromeHTML"=""
"VisualStudio.htm.8.0"=""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.htm\PersistentHandler]
@="{eec97550-47a9-11cf-b952-00aa0051fe20}"
Salvare il file, doppio click sul file stesso e il problema è risolto.
Nessun commento:
Posta un commento
Cosa ne pensi?