| Home : Programming : C# |
| Click "Subscribe" if you want to be notified of new or updated links in this category. | Subscribe |
|
|
C# Listings
|
|
Total:
59 | Displaying: 41 - 50 | Pages: << 1 2 3 4 5 6 >> |
|
|
|
Boxing and unboxing is a essential concept in C# s type system. With Boxing and unboxing one can link between value-types and reference-types by allowing any value of a value-type to be converted to and from type object. Boxing and unboxing enables a unified view of the type system wherein a value of any type can ultimately be treated as an object. Converting a value type to reference type is called Boxing.Unboxing is an explicit operation. C# provides a unified type system ....
Updated: 03/13/2005
|
|
|
Here is a an example of how to make a digital clock using C#. I have included the graphics, source code, and command line string (included as a file - comp.bat) in the zip file. I hope you enjoy!! Download Digital Clock - archive29.zip using System; using System.WinForms; using System.Drawing; using System.Drawing.Drawing2D; using System.Drawing.Imaging; public class h2:Form { private Image []image=new Bitmap[10]; private Image colon=null; Timer t=new Timer(); Rectangle...
Updated: 03/13/2005
|
|
|
Introduction One of the first features of C# that took my interest was the ability to Dock a Control onto the edge of a Form . Now I could attach a Control (or more likely a composite control by deriving from UserControl ) onto a Form edge and quickly construct a useful looking application. But there is one crucial factor missing from this scenario. The user has no discretion over the size or positioning of this docked control. I want the user to be able to drag the...
Updated: 03/13/2005
|
|
|
A simple SMTP Mail Client to send and recieve email ( including Attachments ) Development Environment : Visual Studio C# .NET 7.0 ( Beta Release ) Features Multiple Account Selection Send and Recieve Attachments Saves Data in XML Format Process UnManaged code ( Use DLLImport to execute C++ Functions) Use Collection Classes Use NetworkStream, StreamReader, TcpClient Classes Download Source Code
Updated: 03/13/2005
|
|
|
Here is a calculator program written in C#. It will give you the basics of Windows Forms, Arrays, and Controls. To compile it, just type in: prompt>csc Calculator.cs Download Calculator.cs
Updated: 03/13/2005
|
|
|
This Program will generate all the colors that are supported in C# according to their Name.... If you can come up with a better version of this program, let me know. e.g. You can make a dll file where the whole color array is stored - your coding lines will decrease. I tried to do it that way (in vane!).. The compilation string is included at the bottom of the file ColorGuide.cs which includes all of the source code. Download Colorguide.cs //Colorguide.cs using System;...
Updated: 03/13/2005
|
|
|
Open your favorite text editor and type the following C# source code: using System; public class ArrayMembers { public static void Main(string[] args) { //Skip 1 line Console.WriteLine(" "); //Iterate through the items of array args using foreach foreach(string s in args) { Console.WriteLine(s); } //Skip 2 lines Console.WriteLine(" "); //Declare array strNames string[] strNames = {"Joe","Mary","Bill","Fred"}; //Iterate through the items of array strNames for(int i = 0;i
Updated: 03/13/2005
|
|
|
Here is an example of how to use Flash with C# In this very cool example, play a flash game! Download Source Code - cSharpFlash.zip
Updated: 03/13/2005
|
|
|
By Furqan Ullah I have developed a very simple server side program which shows the power of the C#. This is a table program requires IIS installed on the machine in order to check. The User entered the table number in the form and then press Submit button. The action of the form will call the C# application and that application disect the QUERY_STRING into the string parameters. All the important things one should have to do in the server side coding is to get the parameters from the...
Updated: 03/13/2005
|
|
|
Here is a C# Application I developed for calculating the monthly payment for a loan, given the loan amount, interest rate and the loan period. I have used four labels, four text boxes and two buttons on a simple Windows form as shown below. In addition, a status bar along the bottom of the form is used to describe what is expected in each text field. The Calculate button computes the monthly payment and displays the result in the fourth text box. Clicking the Exit button...
Updated: 03/13/2005
|
|
|
C# Listings
|
|
Total:
59 | Displaying: 41 - 50 | Pages: << 1 2 3 4 5 6 >> |
|
|