C # programming is one of three steps.

Source: Internet
Author: User
Programming C # is Microsoft. NET architecture's main development language, it functions widely and powerful, web developers
A member should not hesitate to embrace it. This paper is based on a temperature of Celsius and the temperature of Fahrenheit phase
Examples of reciprocal conversions to C #

GUI programming to guide you into the powerful and magical programming world of C #
Territories.


Preparation conditions


To understand the examples of this article, first of all, there is a basic to C # and object-oriented programming
Solution. For a basic knowledge of C #, see Getting Started with C #

This article. To compile and run an example application, you need to download

The. NET Framework SDK, and one of its current versions is Beta 1.



As a program developer, we all know that creating a typical windows-based application
The program should include the following basic steps: creating an appropriate form; adding to the form
Add controls, and finally increase the code that responds to user events.

After C # and the. NET framework appear, the tools needed to complete these steps are available in the
Found in the System.WinForms name subspace.



The first step is to create a form


This is very simple, just create a derived from the System.WinForms.Form class
Class and initialize the appropriate properties. In our example, the class set
Righteousness begins with this:



public class TempConverter:System.WinForms.Form
{
.
.
.
}


Here's the main window (form) view we want:




We would like the form to have the following characteristics:


-Window size is 180 times 90 pixels


-Ability to change the window size without giving the user


-the caption displayed in the title bar is +c-> +f/+f-> +c


-Initial state the form appears in the center of the screen


-Do not want Help button (application is too simple, do not need help button)


-Do not provide users with the ability to maximize applications


(because everything is visible within the given window size, so there is no need to maximize)



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.