C#(CSharp)/Etc31 How to properly exit a C# application? From MSDN:Application.ExitInforms all message pumps that they must terminate, and then closes all application windows after the messages have been processed. This is the code to use if you are have called Application.Run (WinForms applications), this method stops all running message loops on all threads and closes all windows of the application.Environment.ExitTerminates this process and gives t.. 2018. 3. 29. int to string 4 digit (ex) 100 -> 0100 string scaleSize = string.Format("{0:0000}", this.showScale); 2018. 2. 19. Internet Feature Controls 1. Registry SampleWindows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION]"devenv.exe"=dword:0000270f"PotPlayerMini64.exe"=dword:00002af8"TF.exe"=dword:0000270f"eclipse-inst.exe"=dword:00002af9"OneDrive.exe"=dword:00002af8"captureApp.exe"=dword:00002af8 2. Browser Emulation Example)HKEY_LOCAL_MACHINE (or HKEY_CURR.. 2018. 2. 5. Convert webpage to image using System.Drawing; using System.Drawing.Imaging; using System.IO; using System.Threading; using System.Windows.Forms; public class WebsiteToImage { private Bitmap m_Bitmap; private string m_Url; private string m_FileName = string.Empty; public WebsiteToImage(string url) { // Without file m_Url = url; } public WebsiteToImage(string url, string fileName) { // With file m_Url = url; m_FileName =.. 2018. 2. 4. 이전 1 2 3 4 5 6 7 8 다음