Skip to main content

Posts

Showing posts with the label C#

Hello World - Your First Program (C# Programming Guide)

The following procedure creates a C# version of the traditional "Hello World!" program. The program displays the string Hello World! To create and run a console application Start Visual Studio. On the File menu, point to New , and then click Project . In the Templates Categories pane, expand Visual C# , and then click Windows . In the Templates pane, click Console Application . Type a name for your project in the Name field. Click OK . The new project appears in Solution Explorer . If Program.cs is not open in the Code Editor , right-click Program.cs in Solution Explorer and then click View Code . Replace the contents of Program.cs with the following code. C# // A Hello World! program in C#. using System; namespace HelloWorld { class Hello { static void Main() { Console.WriteLine( "Hello World!" ); // Keep the console window open in debug mode. Console.WriteLine( ...

What kind of Applications You Can Write with C#

The .NET Framework has no restrictions on the types of applications that are possible, as discussed earlier. C# uses the framework and therefore has no restrictions on possible applications. However, here are a few of the more common application types: Windows applications. Applications, such as Microsoft Office, that have a familiar Windows look and feel about them. This is made simple by using the Windows Forms module of the .NET Framework, which is a library of controls (such as buttons, toolbars, menus, and so on) that you can use to build a Windows user interface (UI). Alternatively, you can use Windows Presentation Foundation (WPF) to build Windows applications, which gives you much greater flexibility and power. Web applications. Web pages such as those that might be viewed through any Web browser. The .NET Framework includes a powerful system for generating Web content dynamically, enabling personalization, security, and much more. This system is called ASP.NET (Ac...

.net(dotNet) Framework Platform Architecture

.Net Framework Platform Architecture : C# programs run on the .NET Framework, an integral component of Windows that includes a virtual execution system called the common language runtime (CLR) and a unified set of class libraries. The CLR is the commercial implementation by Microsoft of the common language infrastructure (CLI), an international standard that is the basis for creating execution and development environments in which languages and libraries work together seamlessly. Source code written in C# is compiled into an intermediate language (IL) that conforms to the CLI specification. The IL code and resources, such as bitmaps and strings, are stored on disk in an executable file called an assembly, typically with an extension of .exe or .dll. An assembly contains a manifest that provides information about the assembly's types, version, culture, and security requirements. When the C# program is executed, the assembly is loaded into the CLR, which might take...

Introduction to the C# Language

C# is an elegant and type-safe object-oriented language that enables developers to build a variety of secure and robust applications that run on the .NET Framework. You can use C# to create traditional Windows client applications, XML Web services, distributed components, client-server applications, database applications, and much, much more. Visual C# 2010 provides an advanced code editor, convenient user interface designers, integrated debugger, and many other tools to make it easier to develop applications based on version 4.0 of the C# language and version 4.0 of the .NET Framework. C# Language:          C# syntax is highly expressive, yet it is also simple and easy to learn. The curly-brace syntax of C# will be instantly recognizable to anyone familiar with C, C++ or Java. Developers who know any of these languages are typically able to begin to work productively in C# within a very short time. C# syntax simplifies many of t...

Custom reports: C# .Net and Crystal Reports

Requirement     1. A system is to be required to have the activities of logging and it has to provide assorted statistical output in a manner that of graphical formats.     2. Therefore, the requirement of this particular system has to elongate some technical tactics to be fulfilled.     3. A system that can log all the activities and provide statistical output on various parameters has to be developed.     4. The system is to serve a 'Decision Support' mechanism for the senior management of the client organization at the same time it has to act as 'Reporting System' for subordinate members of the company.     5. This system should be able to accumulate data from different database formats like, MSSQL, MYSQL, MS Access, MS Excel etc. and has to process data for different logical parameters.     6. The output also has to be in graphical formats. Solution Radix has made this solut...