I would like to prevent validation in my textbox when the user clicks on my Cancel button, how do I do this?

Say textBox1 and cancelButton and the control names, then this is how you could do this: [C#] // Handler to the Validating event of the TextBox. private void TextBox_Validating(object sender, System.ComponentModel.CancelEventArgs e) { if (!this.cancelButton.Focused) { // Do this only when the cancel button is not clicked. if(invalidState) e.Cancel = true; } } [VB.Net] ’ Handler to the Validating event of the TextBox. Private Sub TextBox_Validating(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) If Not Me.cancelButton.Focused Then ’ Do this only when the cancel button is not clicked. If invalidState Then e.Cancel = True End If End If End Sub

Why should I provide a Non-Client border to my Control derived class?

Providing a border in the non-client region of your control rather than in the ClientRectangle has very many advantages: When you include a scrollbar in your control, the scrollbar will appear inside the border, rather than to the outside if you drew the border in the client area. When you allow custom painting of the control, your user will not draw over the NC border. Your own client painting code will be simplified in that you will not have to bother about taking the border into account while painting the client area. The next faq will tell you how to include a non-client border.

How do I support browsing for a text file and reading it into a TextBox?

You can use the OpenFile Dialog to implement this functionality. [C#] using System.Text; using System.IO; private void button1_Click( object sender, EventArgs e ) { OpenFileDialog dlg = new OpenFileDialog(); dlg.Title = ‘Open text file’ ; dlg.InitialDirectory = @’c:\’ ; dlg.Filter = ‘txt files (*.txt)|*.txt|All files (*.*)|*.*’ ; if ( dlg.ShowDialog() == DialogResult.OK ) { StreamReader sr = File.OpenText( dlg.FileName ); string s = sr.ReadLine(); StringBuilder sb = new StringBuilder(); while ( s != null ) { sb.Append(s); s = sr.ReadLine(); } sr.Close(); textBox1.Text = sb.ToString(); } }

What is an Atlas?

Atlas is interesting concept extended form AJAX, integrated in ASP.NET 2.0. It extends the concept of AJAX in 2 different ways. 1.It provides the clide side scripting libraries that enable the developers to create the interactive Uis and allows the remote procedure calls by providing the true OO API’s and Components. 2.It provides the rich integrate server development in ASP.NET 2.0. For further information visit this link.