Paip. c #. net Tray Icon creation and usage Summary
Author Attilax, EMAIL: 1466519819@qq.com
Effect:Create a tray icon and keep the icon flashing .. Right-click the menu (display the main interface, options, about the software, about the author,
First, double-click the Resource under the project. resx, the view appears, click "Add resource" -- select "add existing file", find the image you want to add, and click "save". Then, open resource. designer. cs will find several more lines of code
/*
Author: Jiangong SUN
*/
Extract Method
Move Method
Replace Temp by Query
Replace type code with state/strategy
Strategy Statement to replace:
Public class SwitchToReplace{Public static void Main (){Console. WriteLine (Get (Instruments.
Monitor object1. monitor. the Enter (object) method is to obtain the lock, Monitor. the Exit (object) method is to release the lock, which is the two most commonly used methods of Monitor. Of course, to avoid the lock being released due to
C # value-type data is stored directly in the memory allocated to it, while C # reference type only contains pointers pointing to the location of the stored data.
Basic data type (except string type): including integer, floating point, decimal, and
A json help class is formed as required by the project.
This is written in the. net3.5 Environment
Public class JsonHelper {// // convert Json to List /// /// // // public static IList JsonToList (string html) {IList result = new List
C # a string of numbers "1122331111155", which must be output to the DataGridview control, but must be read one by one. If the previous number is the same as the next one, it is arranged in a column, not the same, A column is also arranged. For
First, let's briefly introduce the webbrowser control, which allows you to add webpage content in the form ., I added Baidu api to form (this is a description in the Baidu map api call blog)
Using this control is actually very simple
(1) Step 1
In development, interface programming requires that attributes be stored in Interfaces. But how can I inherit the attributes of interfaces in classes?
At the beginning, I thought that attributes can be used as long as the interface is inherited. The
This article is mainly used to understand the difference and connection between queues and stacks. The difference is that queues are FIFO while stacks) is an advanced post-output (FILO); similarly, both are linear storage structures. I. two stacks
The general processing procedure is as follows:
Public class ServerHandler: IHttpHandler {public void ProcessRequest (HttpContext context) {context. response. contentType = "text/plain"; string action = context. request ["action"]; string
Introduction: The value type is also introduced in C #2.0. The null type is also the value type, but the null type includes the null value type, the following describes the specific support for the null type in C #2.0 (I have been thinking about how
/* By garcon1986 */
1. What is WCF and how it works?
Windows Communication Foundation is a framework for intercommunication between different applications regardless of their versions.
Example:
IHelloWorldService. cs:
Using System. Runtime.
/// /// function: Decompress a zip file. /// /// compressed file path /// decompressed file storage path, if it is null, it is in the same directory as the compressed file by default, folder with the same name as the compressed file /// error
Through the previous two sections, we learned that the extension method is a special static method. The definition method of the extension method is similar to that of the general static method, the only difference is that the keyword "this" must be
In wince, save the screen Brightness value in the Registry HKEY_CURRENT_USER \ ControlPanel \ Backlight \ Brightness. The value ranges from 0 to 100, so you need to change the screen Brightness, the Code is as follows:
/// // adjust the screen
File Operations: (file and fileinfo, the former is a static method, perform security checks, suitable for an operation) 1.1.create: 1 using System; 2 using System. collections. generic; 3 using System. componentModel; 4 using System. data; 5 using
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.