Posts Tagged ‘.NET’
The Math opensource project using .NET – Iridium
There is a famous Mathematics open source project using .NET named Iridium. Those guys have worked on it for some years. At least I knew them in 2005. At that time, I found some open source projects about Math and DSP Algorithms. Iridium is one of them focus on Mathematics. Math.NET website. Now They have [...]
More about Microsoft Micro Framework
Collected more information about Microsoft Micro Framework: 1: The .NET Micro Framework: A First Look; 2: Yefangqiu(刘洪峰)’s blog: research .NET Micro Framework (need to search);
About Microsoft Micro Framework and Microsoft Compact Framework
What is the .NET Micro Framework? The Microsoft .NET Micro Framework extends the advantages of .NET and the Microsoft Visual Studio development system to a class of smaller, less expensive, and more resource-constrained devices than the .NET Compact Framework or the standard .NET framework. The .NET Micro Framework is the smallest .NET platform to date [...]
Order of Events in Windows Forms
1: Application Startup and Shutdown Events: Control.HandleCreated Control.BindingContextChanged Form.Load Control.VisibleChanged Form.Activated Form.Shown When an application closes, the shutdown events of the main form are raised in the following order: Form.Closing Form.FormClosing Form.Closed Form.FormClosed Form.Deactivate The ApplicationExit event of the Application class is raised after the shutdown events of the main form. 2: Focus and Validation [...]
How to load another event from one event in C# (如何在一个事件中调用另一个事件)
Assume we have aready hScrollBar event method: Pravate void hScrollBar1_Scroll(object sender, EventArgs e){ …} Now we would like to load it in a CheckBox event. Normally people will do like this: private void checkBox1_CheckedChanged(object sender, EventArgs e) { this.hScrollBar1_Scroll(null, null); } This can work if you don’t need handle sender or e in hScrollBar1_Scroll under [...]
How to auto scroll to the bottom of a multiline TextBox in C# ?
At least in .NET 2.0, the TextBox control doesn’t have a property to let the TextBox automatically scroll to the bottom when it is set to multiline. You have to write code like this: textBox1.Text += “Test string \n”;textBox1.Update();textBox1.SelectionStart = textBox1.Text.Length;textBox1.ScrollToCaret(); OR, you can use the following code: textBox1.AppendText(“This is a test string \n”);textBox1.SelectionStart = [...]
ComboBoxItem Class for .NET 2.0
Sometimes when we use the ComboBox control in .NET 2.0, we need add items which have "combination" data, such as we need to add the following data to a ComboBox: ("string1", 1) ("string2", 1) ("string3", 3) Normally in .NET 2.0, we just add "single" object to a ComboBox control, how we can add above data [...]
