devxlogo

Tip Bank

International Test for Illegal Characters

Windows has the solution: the IsCharAlphaNumeric function, defined in User32.dll. This function uses the currently defined locale when performing comparisons, thereby allowing full use of accented characters. This sample demonstrates

Explicit Constructors

A constructor that takes a single argument is, by default, an implicit conversion operator, which converts its argument to an object of its class, the keyword “explicit” can be placed

InputBox – A .NET replacement for this VB6 function

‘ Create an InputBox like the one of VB6. You can define the dialog’s title,’ question and default value.’ Example: MessageBox.Show(InputDialog.InputBox(“Type your name:”, “Test”,’ “Marco”))Public Class InputDialog Inherits System.Windows.Forms.Form#Region “

Don

Have you ever tried to change the BorderStyle, HideSelection, MultiLine, ScrollBars, WordWrap and TextAlign properties of a TextBox, or the ComboBox

Persistent session state

In ASP.NET 1.0 you have the option to maintain the session state on an external process, in SQL Server, by setting the mode attribute of the sessionState tag in web.config