[C#, 윈도우 폼] 윈도우7 계산기 프로그래밍
*현*
다운로드
장바구니
소개글
A+ 자료입니다.비주얼2010 기반으로 작성된 프로젝트입니다.
C#을 이용한 윈도우 폼 계산기 입니다.
주석이 상세히 달려있어 이해하기 쉽습니다.
목차
1. 비주얼2010 이용한 C# 윈도우폼 계산기입니다.본문내용
using System;using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Media;
namespace MyFormTest
{
public partial class Park_Calc : Form
{
double dFirstNum = 0, dSecondNum, dResult;
double dCount = 1, dEqualCount = 0, dBackCount = 0, dCalcCount = 0, dN_badtagsCalc = 0;
string strPreference;
public Park_Calc()
{
InitializeComponent();
}
private void txtMonitor_TextChanged(object sender, EventArgs e)
{
txtMonitor.MaxLength = 16;
}
/**********************************************/
/*******************숫자 버튼*******************/
/**********************************************/
private void Btn1_Click(object sender, EventArgs e)
{
try
{
//숫자 버튼을 누르면 dEqualCount = 0 이 되면서 초기화 됨
dEqualCount = 0;
//숫자 버튼을 누르면 0이 사라지면서 숫자가 입력됨
if (txtMonitor.Text == "0")
{
txtMonitor.Clear();
txtMonitor.Text += "1";
}
else
txtMonitor.Text += "1";
//txtMonitor.Text += "1";
double dBtn1Num = Convert.ToDouble(txtMonitor.Text);
//텍스트박스가 빈칸이면 dFirstNum에 대입 아니면 dSecondNum에 대입
if (txtMonitor.Text.Length >= 1 && dCount > 0)
dFirstNum = dBtn1Num;
else if (dCount == 0)
dSecondNum = dBtn1Num;
dEqualCount = 0;
}
catch (Exception)
{
txtMonitor.Text = ("ERROR!! C버튼을 누르시오.");
return;
}
}
참고 자료
없음압축파일 내 파일목록
Calc.ico
Park_Calc.suo
Park_Calc.sln
iron_man.ico
Caclulator.ico
MyFormTest/Properties/AssemblyInfo.cs
MyFormTest/Properties/Resources.resx
MyFormTest/Properties/Resources.Designer.cs
MyFormTest/Properties/Settings.settings
MyFormTest/Properties/Settings.Designer.cs
MyFormTest/Program.cs
MyFormTest/Park_Calc.csproj
MyFormTest/bin/Debug/MyFormTest.vshost.exe
MyFormTest/bin/Debug/MyFormTest.exe
MyFormTest/bin/Debug/MyFormTest.pdb
MyFormTest/bin/Debug/MyFormTest.vshost.exe.manifest
MyFormTest/obj/x86/Debug/TempPE/
MyFormTest/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache
MyFormTest/obj/x86/Debug/MyFormTest.Form1.resources
MyFormTest/obj/x86/Debug/MyFormTest.Properties.Resources.resources
MyFormTest/obj/x86/Debug/GenerateResource.read.1.tlog
MyFormTest/obj/x86/Debug/GenerateResource.write.1.tlog
MyFormTest/obj/x86/Debug/MyFormTest.exe
MyFormTest/obj/x86/Debug/MyFormTest.csproj.FileListAbsolute.txt
MyFormTest/obj/x86/Debug/DesignTimeResolveAssemblyReferences.cache
MyFormTest/obj/x86/Debug/ResolveAssemblyReference.cache
MyFormTest/obj/x86/Debug/MyFormTest.Park_Calc.resources
MyFormTest/obj/x86/Debug/Park_Calc.csproj.FileListAbsolute.txt
MyFormTest/obj/x86/Debug/MyFormTest.pdb
MyFormTest/Park_Calc.cs
MyFormTest/Park_Calc.Designer.cs
MyFormTest/Park_Calc.resx
MyFormTest/Park_Calc.txt
Park_Calc.suo
Park_Calc.sln
iron_man.ico
Caclulator.ico
MyFormTest/Properties/AssemblyInfo.cs
MyFormTest/Properties/Resources.resx
MyFormTest/Properties/Resources.Designer.cs
MyFormTest/Properties/Settings.settings
MyFormTest/Properties/Settings.Designer.cs
MyFormTest/Program.cs
MyFormTest/Park_Calc.csproj
MyFormTest/bin/Debug/MyFormTest.vshost.exe
MyFormTest/bin/Debug/MyFormTest.exe
MyFormTest/bin/Debug/MyFormTest.pdb
MyFormTest/bin/Debug/MyFormTest.vshost.exe.manifest
MyFormTest/obj/x86/Debug/TempPE/
MyFormTest/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache
MyFormTest/obj/x86/Debug/MyFormTest.Form1.resources
MyFormTest/obj/x86/Debug/MyFormTest.Properties.Resources.resources
MyFormTest/obj/x86/Debug/GenerateResource.read.1.tlog
MyFormTest/obj/x86/Debug/GenerateResource.write.1.tlog
MyFormTest/obj/x86/Debug/MyFormTest.exe
MyFormTest/obj/x86/Debug/MyFormTest.csproj.FileListAbsolute.txt
MyFormTest/obj/x86/Debug/DesignTimeResolveAssemblyReferences.cache
MyFormTest/obj/x86/Debug/ResolveAssemblyReference.cache
MyFormTest/obj/x86/Debug/MyFormTest.Park_Calc.resources
MyFormTest/obj/x86/Debug/Park_Calc.csproj.FileListAbsolute.txt
MyFormTest/obj/x86/Debug/MyFormTest.pdb
MyFormTest/Park_Calc.cs
MyFormTest/Park_Calc.Designer.cs
MyFormTest/Park_Calc.resx
MyFormTest/Park_Calc.txt
이 자료와 함께 구매한 자료
- [C#] C# - 사다리타기 21페이지
- [공학]C#계산기만들기 11페이지
- C# - 계산기 0페이지