hi, this is my first post to this group.... its about forcing your app to have only one instance running.. you need to import 2 dlls to find a window and to...
First, turn on custom error reporting in the web.config and name the file you will use as your default handler: <!-- Web.Config --> <configuration> ...
The solution is quite simple: 1. Retrieve all the HTML tags using this pattern: <(.|\n)*?> 2. Replace them with an empty string and return the result Here's a...
The Scenario In this example I have written a simple WebForm to manage a list of contacts which I have stored in XML. The requirements are simply the ability...
As developers, we can only fix things if we know they're broken. I've been a part of several companies in which the users will encounter a fatal error on a web...
http://www.macromedia.com/support/dreamweaver/technotes.html This TechNote describes a few of the important factors involved in creating a successful MySQL...
Using XmlTextWriter to write an Xml file using System; using System.Xml; using System.Text; public class MainClass { public static void Main(string [] arg) { ...
Intro: The PageCapturer utility is used to download Web pages programmatically and save them onto hard disk. File: PageCapturer.zip attached with this email. ...
// imports using System; using System.Net; using System.IO; using System.Text; // capture webpage by using HttpWebRequest class and Save into file. File is...
// import import System.Windows.Forms; // get clipboard data and if any then show in MessageBox // Retrieves the data from the clipboard. IDataObject iData =...
What are MSN Alerts? MSN Alerts Service is a part of Microsoft .NET My Services Initiative. It enables the service provider to reach its users through Instant ...
Example of the most Common Decimal Numeric Format. 'Insert Commas after each thousand , with specified number of decimal precision. '//////////////// Dim var...
You Can easily Customize the display for your date time. '///////////////////////////////// Dim mydate As DateTime = DateTime.Now Dim show_date As string ...
It is assumed that you have already placed these 2 controls on your winform: 1: TextBox (txt_data) 2: Button (btn_save) Now create an on_click method for...
In many cases you might have come acrooss the situation that IF Enter Key is pressed than do this. For Example, You want to take some Input from a user in a...
A Typical Socket Server -Steps: 1: Create a TcpListener Object 2: Call Start Method of TcpListener Object (Now the server actually starts looking for any...
Calling API to bring any window to the Foreground public class TopWindow { [DllImport("user32.dll")] public static extern IntPtr FindWindow(String winClass,...
The Article teaches how to create a web service and consuming it in an ASP.NET Page =========================================================== ' //// Code...
Following piece of code establishes a socks based connection to any server (localhost in this case) as port 13, If at port 13 there is some socks listner...
Running Following piece of code, opens a port number 13 on localhost, Starts listening the port,accepts any incoming connections (one only I think). After...
Implement the OnItemCreated event for the datagrid. Then set System.Web.UI.WebControls.DataGridItemEventArgs.Item.Cells[<columnno>].W idth = <width> private...
using System; public class Caret { [System.Runtime.InteropServices.DllImport("user32.dll")] public extern static bool SetCaretBlinkTime(uint uMSeconds); ...