You’ll need to enclose the code that you want to execute after the delay in a function (Func1()). This function will then be called with a delay, in our case from another function (Func1Delay()). Then you simply call Func1Delay() which in turn calls Func1() but with a delay of 3000 milliseconds (3 seconds):
Using SELECT to retrieve data
This tutorial deeply covers the SELECT statement of the T-SQL/SQL language. Starts from the basics – how to retrieve the values inside a column to ordering data, selecting multiple columns and then tables, joining them…
List display adapters using DirectX 9
This tutorial will show you how to retrieve information about your graphics display adapter, such as name, driver version, current resolution and refresh rate and supported resolutions and refresh rates. All this is done by using the DirectX 9 SDK.
What is the Connection String for Connecting to a SQL Server 2005 Database?
The connection string needed for connecting to a SQL Server 2005 database (code name Yukon) is as follows: Where LOCALHOST\LOCAL is your SQL server address and LOCAL is the instance of the SQL Server (which can be named anything, but by default it is LOCAL).This normally works if you have the application that connects to […]
How to start programming
A guide for those who want to learn programming but don’t know where to start. It guides you through selecting the right programming languages at the right time.
Index (zero based) must be greater than or equal to zero and less than the size of the argument list
Most of the time you get this error when you are trying to retrieve the selected value of a listbox (DropDownList) and no value is selected. Even though apparently the first item in a DropDownList is always selected by default, this is done by the browser and ASP.NET is not aware of the selected item. […]
How to create a link that adds a contact to MSN Messenger
The newer versions of MSN Messenger are capable of adding contacts to your contact list by simply clicking a link. Note that the user needs to have MSN Messenger version 7.5 or newer open and running for this to work. Also, the code originally works within Internet Explorer, other browsers such as Firefox might implement […]
Connect to Access Database in Visual Studio .NET
This tutorial uses DataReaders to read the data from a Microsoft Access Database in Visual Studio .Net 2003. ASP.NET web application is used in this tutorial so at the end you will have a web page that derives its data from an Access database.
The name ‘Session’ does not exist in the current context
This error normally occurs when you are trying to access the value of a session variable such as Session[“UserID”] and you’re not doing that from a webform, usercontrol or a class that inherits from System.Web.UI. In this situation you can still access the session variable, but using a different path. For example to access a […]
Introduction to C/C++ Part 3
A newbie-friendly beginner tutorial with good and descriptive explanation of C/C++ syntax.