PVA – Archives

Sưu tầm những bài viết hay trên internet…

Tag Archives: winform

Ẩn form lúc khởi tạo ứng dụng

From: http://stackoverflow.com/questions/70272/single-form-hide-on-startup HIDE FORM AT STARTUP Nhu cầu: Khi khởi động chương trình, form bị ẩn đi, chỉ hiển thị notifyIcon Giải pháp: – Xem xét file program.cs – Thay vì Application.Run(new MainForm()); ta khởi tạo form trước khi khởi tạo ứng dụng như vầy Form1 form1 = new Form1(); form1.Visible = false; Application.Run(); – [...]

C# Single-Instance Windows Form

From: http://dotnetperls.com/single-instance-windows-form You need to block new instances of your Windows Forms program from running alongside old ones. New instances must focus old ones if they exist, and then exit. Processes that are new should start normally. Here we see a solution to this problem that is adapted from other code on the Internet, written in the [...]

Placing Your C# Application in the System Tray

From: http://www.developer.com/article.php/3336751 There are many cases when it’s advantageous to place an application’s icon in the System Tray. For example, firewall/antivirus and instant messaging applications do this so as to run in the background and still be accessible to the user without crowding up the task bar. In this week’s installment of my .NET Tips and Techniques [...]

Autoscroll (TextBox, ListBox, ListView) [C#]

From: http://www.csharp-examples.net/autoscroll/ This example demonstrates how to programatically autoscroll WinForm controls TextBox, ListBox, ListView, TreeView and DataGridView. Autoscroll to the end of box or view is useful, for example, in situations when you use one of these components as the output log window. Usually you add the items to the box or view and you want [...]

Follow

Get every new post delivered to your Inbox.