Archive | C# Language RSS feed for this section

How to Open and Read a File in Win Forms using C#

In this tutorial I am going to tell you abouthow to open your file and display it in the text box and how to saveyour file anywhere . HOW TO OPEN (READ) A FILE Open your new project and name it "filestream",then create a button and in properties change its text to "open textfile to [...]

Read more

SQL Statement Generator

This is a complete application that allowsquick generation of common SQL commands which includes pre-declaredvariables. It was created to save developers time on typing out halfpage SQL statements. Download Source

Read more

Sending email with C# using SMTP

In this article i’ll try to explain how we can send emails using SMTP servers. First of all, what is SMTP what is MTA,MUA, protocol? Let’s start talking about these subjects. Protocol? Protocol is a group of rules which is used by applications that communicate each other from network.? SMTP Simple Mail Transfer Protocol. Is [...]

Read more

C# InterOp

Introduction In this article (modified from my lastposted article!) I will give an example on how to access a web servicefrom a C project using a C# Library. Moreover, the webservice's URLcould also be dynamically read from an initialization file (.ini) inthe C project. So this is a typical .NET Interop scenario.The C Project would [...]

Read more

Personal Address Program in C#

Introduction This is a simple Personal Address Program that returns results from a database table, writes the output to textboxes, and uses buttons (First, Previous, Next, Last) to navigate through the records. You also can manipulate the data by clicking the toolbar buttons, namely Add/New record, Save the new record, Delete the current record, and [...]

Read more

Custom Dial Control

I made this dial as one of my assignemts in school, and I have to write an article.This is a custom control dial that changes the arrow position when the left or right arrow keys are pressed. This is a customizable control that uses attributesto allow the user to change various dial properties like the [...]

Read more

C# Type converters, your friendly helpers!

Introduction You may not have written yet your own type converter. But any time you developed a web form or windows form using the Visual Studio .NET designer or used the view state architecture of ASP.NET you have relied on the help of a type converter. As the name already states, type converters are used [...]

Read more

Updated Ping in C#

It was a little bit frustrating to see, howcomplicated people try to solve such easy things like a ping command intheir program and how much money some vendors are asking for workingsolutions. That's why we decided to write this solution and offer thefull source code for free. This program does not need any external dll- [...]

Read more

Multithreading Made Easier in C#

* * * Multithreading Made Easier * Created by Anand. * Bihar,India * User: Administrator * Date: 4/3/2005 * Time: 2:36 PM * See how easier its to create multithreadedapplications * Like Java ( I have tried to imitate Java,sRunnable and Thread ) * You have to do just 4 things : * 1)Create a [...]

Read more

Floating-Point in C# Part I: Concepts and Formats

Download source – 8 Kb Floating-point arithmetic is generally considered a rather occult topic. Floating-point numbers are somewhat fuzzy things whose exact values are clouded in ever growing mystery with every significant digit that is added. This attitude is somewhat surprising given the wide range of every-day applications that don't simply use floating-point arithmetic, but [...]

Read more