Other Languages
Categories
-
Recent Posts
-
How to..??
Top Rated
There are no rated items for this period.
Tags
Visitors
Ads
-
Hot Topics
disable textbox1 comments receivedHow to enter multiline text in textbox through code?1 comments receivedAnimate a series of images 1 comments received
Connection strings for Access
Microsoft Jet OLE DB 4.0
TYPE OLE DB Provider
USAGE Provider=Microsoft.Jet.OLEDB.4.0
MANUFACTURER Microsoft
Standard security
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\mydatabase.mdb;User Id=admin;Password=;
With database password
This is the connection string to use when you have an access database protected with a password using the Set Database Password function in Access.
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\mydatabase.mdb;Jet OLEDB:Database Password=MyDbPassword;
Shortest Paths
Ever wonder how a GPS or mapping program calculates the shortest path between two locations? Learn how to quickly find the shortest paths through street, telephone, airline, and other networks.(by Rod Stephens)
This series of articles discusses a generalization of trees ...
Traveling Salesperson (PSP)
The Traveling Salesperson Problem doesn't have a realistic single best solution, but you can use heuristics to find good solutions and possibly enjoy big savings on fuel costs.(by Rod Stephens)
The Traveling Salesperson Problem
The goal of the Traveling Salesperson Problem (TSP) ...
Find Egyptian fractions
An Egyptian fraction is a fraction expressed as a sum of unit fractions. For example, you can write 3/7 as 1/3 + 1/11 + 1/231.You can write any fraction as an Egyptian fraction, although there may be more than one ...
Draw an analog clock
This example demonstrates several useful techniques including:
Context menus
Restricting a form to a region to give it a shape.
Moving a form with no title bar
Double buffering
Drawing with transformations
When you right-click the clock, the program displays the context menus shown on the ...
Animate a series of images
This example displays a series of images to make an animation. It loads the images at run time. To make finding the images easier, I added them to the project. (Open the Project menu, select Add Existing Item, and select ...
How to determine which operating system is running?
Use System.Environment's OSVersion static (shared) property.
OperatingSystem os = Environment.OSVersion;
MessageBox.Show(os.Version.ToString());
MessageBox.Show(os.Platform.ToString());
Make TextBoxes automatically convert to lower case or upper ...
This is actually quite easy in .NET. If you set a TextBox's CharacterCasing property to Lower or Upper, the controls automatically converts alphabetic characters into the correct case. You can do this at design time, although in this example I ...
TextBox Allowing Characters Only
TextBox Allowing Characters Only
private void textBox1_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e)
{
if ( !( char.IsLetter( e.KeyChar ) || char.IsControl( e.KeyChar ) ) )
...
How to enter multiline text in textbox through code?
Sometimes it is needed to show data on different lines. The first idea that comes is to set MULTILINE Property to true and use '\n' escape sequence for this. But this escape sequence is not supported in .NET textbox. Still ...



