Posts Tagged ‘.NET’

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);

Leave a Comment

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 and provides [...]

Comments (1)

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 [...]

Leave a Comment

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) { [...]

Leave a Comment

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 = textBox1.Text.Length;textBox1.ScrollToCaret();

Comments (1)

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 ?
In .NET 3.0 or [...]

Leave a Comment

Install .NET Framwork 2.0 Error

I wanted to install .NET framwork 2.0 on some computer, But the following error occured during setup:
Patch package could not be opened. Verify that the patch package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer patch package.
solution:
Use the Windows Installer CleanUp [...]

Leave a Comment