หน้าแรก
 การบ้าน
  C/C++ new
  Java new
  Windows Phone
  แจ้งเรื่องที่ต้องการ
 บทความ
  .NET
  Android
  Blackberry
  C++Builder
  Delphi
  Java
  Mobile
  Open Source
  Pocket PC
  Visual Basic
  Web
  Windows Phone
  Others
 แบบเรียนฟรี
  ASP
  ASP.NET Webmatrix
  C++
  eVB
  J2ME
  Java
  PHP
 ซอร์สโค้ด
  Android
  ASP
  C++
  VC++
  CGI-Perl
  Delphi
  Java
  jQuery
  PHP
  Visual Basic
  .NET
 บริการจากเรา
  เปิดท้าย... ขายโค้ด
  Freeware
  อัตราค่าโฆษณา
  รายชื่อลูกค้า
  สถิติผู้เข้าเว็บ
 ดาว์นโหลด
 ค้นหาข้อมูล
 กระดานสนทนา
  .NET
  C/C++
  Delphi
  Java
  Palm/PocketPC
  Visual Basic
  Web
  อื่นๆ
 กระดานงาน
 ลิงค์เว็บ
 เกี่ยวกับผม
 อัตราค่าโฆษณา
Social Network

Facebook  Twitter  YouTube
 New Article
 Webboard
 Freelanceboard
Freeware
โปรแกรมเบอร์ดี (BerDee)
โปรแกรมเบอร์ดี (Android)
เกมส์เป่ายิ้งฉุบ
เกมส์เป่ายิ้งฉุบ(Android)
WebcamMonitor
WebcamMonitor(Windows)
scSendMail
scSendMail(Windows)
MSN Caption
MSN Caption(Windows)
  Freelance comment
  ติดต่อสอบถามมาได้ตลอดนะ...
2015-07-29 13:35:58
  ถ้าผมต้องการเว็บที่พัฒน...
2015-01-18 15:33:54
  ถ้าผมต้องการเว็บที่พัฒน...
2015-01-18 15:32:51
  ติดต่อสอบถามเข้ามาได้นะ...
2014-01-06 12:47:38
  ถ้ายังหาคนสอนไม่ได้ ก็ลอ...
2013-07-06 01:04:37
  สนใจส่งขอบเขตมาคุยราคาก...
2013-03-24 18:54:20
  ถ้ายังไม่มีคนรับงานติดต...
2012-12-16 19:18:14
  สนใจคะ ติดต่อ 0905076277...
2012-11-12 11:07:46
  รับทำโปรเจ็คนักศึกษาหรื...
2012-10-29 03:10:46
  sukit_te34@hotmail.com...
2012-10-29 03:09:36
  Webboard comment
  เขียนโปรแกรมภาษาจาวา
1.โ...

2023-09-12 11:40:28
  ต้องลอง debug ดูเองครับ
ไล่...

2023-06-08 18:03:06
  ร้านค้าแห่งหนึ่ง จะต้องน...
2021-09-21 08:47:08
  จงเขียนโปรแกรมดำเนินการ...
2021-05-07 15:06:11
  จงเขียนโปรแกรมสำหรับคำน...
2021-03-09 14:21:45
  ขอดู...
2021-01-04 23:56:45
  ขอโค้ดเพื่อทำการเรียนกา...
2020-12-09 23:02:09
  แล้ว ?...
2020-12-09 10:56:34
  จ้า...
2020-10-18 16:53:21
  พอดีผมเหลื่อแค่ตัดสต๊อก...
2020-05-31 21:49:43
  Homework comment
  เขียนโปรแกรมเพื่อรับค่า...
2022-02-24 10:45:17
  จากโค้ดนี้อะครับ พอดีลอง...
2021-03-22 01:22:39
  จากโค้ดนี้อะครับ พอดีลอง...
2021-03-22 01:22:39
  โจทย์การบ้าน c++ เขียนรูปแ...
2020-04-06 11:01:33
  แบบนี้ขอเป็น ภาษา php หน่อย...
2019-09-18 14:36:34
  ผมไม่อยากให้คุณได้คะแนน...
2019-04-27 01:29:07
  อาจารย์เขาบอกแนวข้อสอบม...
2019-04-27 00:44:29
  ขอสอบถามการเขียน c++ ครับ เ...
2018-04-02 12:19:21
  โค้ดตัวอย่างศึกษาให้เข้...
2017-11-26 14:50:05
  คำนวณค่าน้ำโดยรับค่ามิเ...
2017-11-20 23:15:26
  Article comment
  เท่าที่อ่าน error คือพื้นที่...
2022-03-23 13:56:48
  เรียน สอบถามปัญหา กับ อ.คร...
2022-01-24 17:39:49
  ต้องการ ให้เขียน โปรแกรม ...
2019-12-09 11:39:58
  รับเขียน arx จาก vc++ 2017 ล็อคโปร...
2019-09-19 09:48:09
  ทำการ register ไฟล์ที่ชื่อ mswinsck.oc...
2019-09-17 14:05:56
  ใน vb 6 ไม่มี component winsock เลยค่ะ ส...
2019-09-03 10:31:02
  รบกวนขอสอบถามหน่อยนะครั...
2019-03-04 05:31:04
  สามารถนำตัวหนังสือจากภา...
2018-12-25 08:54:32
  มีcode ของ VB ไหมค่ะ ถ้ามีรบกว...
2017-09-28 16:50:02
  น่าจะได้ครับ ไม่เคยลอง
...

2017-07-11 09:59:35
  9Mcode comment

Link Exchange

อัตราค่าโฆษณา
 
 Webboard

- - - - - - - - - - - - - - ผู้ให้การสนับสนุน- - - - - - - - - - - - - -

กระทู้ #1802 [Vb] (จาก IP: 117.47.55.83)

ขอ Source code โปรแกรมเครื่องคิดเลขหน่อยนะเจ้าค่ะ

ขอ Source code โปรแกรมเครื่องคิดเลขหน่อยนะเจ้าค่ะ
คำนวณเหมือนเครื่องคิดเลข คือ + - * / นะค่ะ ขอบคุณล่วงหน้าเจ้าค่ะ
จากคุณ : น้องนัน / NP-nan@hotmail.com [2008-02-09 13:43:45]  

203.170.235.4 ความคิดเห็น #26513 (จาก IP: 203.170.235.4)
โปรแกรม คิดเกรดเฉลี่ย
Private Sub chkDone_Click(Index As Integer)
Dim intCount As Integer, strChecked As String

If chkDone(Index).Value = vbChecked Then
cmdDisplay.Enabled = True
txtScore(Index).Enabled = True
txtScore(Index).SetFocus
Else
txtScore(Index).Text = 0
txtScore(Index).Enabled = False
strChecked = "N"
Do While intCount <= 4 And strChecked = "N"
If chkDone(intCount).Value = vbChecked Then
strChecked = "y"
End If
intCount = intCount + 1
Loop
If strChecked = "n" Then
cmdDisplay.Enabled = False
End If
End If


End Sub

Private Sub cmdClear_Click()
Dim x As Integer

For x = 0 To 4
chkDone(x).Value = False
txtScore(x).Text = ""
Next x

lblGrade.Caption = ""
txtName.SetFocus


End Sub

Private Sub cmdDisplay_Click()
Dim intEarned As Integer, intPossible As Integer
Dim sngRatio As Single, intCount As Integer

For intCount = 0 To 4
If chkDone(intCount).Value = vbChecked Then
intEarned = intEarned + Val(txtScore(intCount).Text)
Select Case intCount
Case 0 To 2
intPossible = intPossible + 10
Case Else
intPossible = intPossible + 50
End Select
End If
Next intCount

sngRatio = intEarned / intPossible
Select Case sngRatio
Case Is >= 0.9
lblGrade.Caption = "A"
Case Is >= 0.8
lblGrade.Caption = "B"
Case Is >= 0.7
lblGrade.Caption = "C"
Case Is >= 0.6
lblGrade.Caption = "D"
Case Else
lblGrade.Caption = "F"
End Select

End Sub

Private Sub cmdExit_Click()
Unload frmGrade

End Sub

Private Sub cmdPrint_Click()
PrintForm
End Sub

Private Sub Form_Load()
frmGrade.Top = (Screen.Height - frmGrade.Height) / 2
frmGrade.Left = (Screen.Width - frmGrade.Width) / 2
End Sub

Private Sub Form_Unload(Cancel As Integer)
Const conBtns As Integer = vbYesNo + vbExclamation + vbDefaultButton1 + vbApplicationModal
Dim intUserResponse As Integer

intUserResponse = MsgBox("Do you want to exit?", conBtns, "Grade Application")
If intUserResponse = vbNo Then 'User does not want to quit the app
Cancel = 1 'prevent form unload.
End If

End Sub

Private Sub txtScore_GotFocus(Index As Integer)
txtScore(Index).SelStart = 0
txtScore(Index).SelLength = Len(txtScore(Index).Text)

End Sub
จากคุณ : Nick / sanook__sanook@hotmail.com [2008-02-09 13:51:30]

61.19.213.155 ความคิดเห็น #26833 (จาก IP: 61.19.213.155)
ขอ source code เครื่องคิดเลขหน่อยค่ะ
ขอบคุณล่วงหน้านะค่ะ


จากคุณโอ่จ๊ะ
จากคุณ : โอ๋ / supucha_2525@hotmail.com [2008-06-07 11:13:02]

58.8.233.71 ความคิดเห็น #27002 (จาก IP: 58.8.233.71)


โค้ดทั้งหมด

Public Class FrmConvertDigit

Dim Status As String

Private Sub b1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles b1.Click

If TxtDigit.Text = "0." Then
TxtDigit.Text = "1"
Else
TxtDigit.Text &= "1"
End If

End Sub

Private Sub b0_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles b0.Click

If TxtDigit.Text = "0." Then
TxtDigit.Text = "0"
Else
TxtDigit.Text &= "0"
End If

End Sub

Private Sub b2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles b2.Click
If TxtDigit.Text = "0." Then
TxtDigit.Text = "2"
Else
TxtDigit.Text &= "2"
End If
End Sub

Private Sub b3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles b3.Click
If TxtDigit.Text = "0." Then
TxtDigit.Text = "3"
Else
TxtDigit.Text &= "3"
End If
End Sub

Private Sub BClear_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BClear.Click

TxtDigit.Text = "0."

End Sub

Private Sub rBin_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles rBin.Click
b0.Enabled = True
b1.Enabled = True
b2.Enabled = False
b3.Enabled = False
b4.Enabled = False
b5.Enabled = False
b6.Enabled = False
b7.Enabled = False
b8.Enabled = False
b9.Enabled = False
ba.Enabled = False
bb.Enabled = False
bc.Enabled = False
bd.Enabled = False
be.Enabled = False
bf.Enabled = False

If Status = "BIN" Then

ElseIf Status = "OCT" Then
'---convert 8 >>> 10 -----------
Dim sum As Int16 = 0
If TxtDigit.Text <> "0." Then

Dim k As Int16 = TxtDigit.TextLength
For i As Int16 = 1 To TxtDigit.TextLength
sum += (Mid(TxtDigit.Text, i, 1) * Math.Pow(8, k - i))
Next i

Else
End If
'---convert 10 >>> 2 -----------
Dim j As Int16
Dim result As String = ""
Dim num1 As Int16 = sum
Do
j = num1 Mod 2
num1 = Int(num1 / 2)
result &= j

Loop Until num1 = 0
TxtDigit.Text = StrReverse(result)

ElseIf Status = "DEC" Then

Dim j As Int16
Dim result As String = ""
Dim num1 As Int16 = TxtDigit.Text
Do
j = num1 Mod 2
num1 = Int(num1 / 2)
result &= j

Loop Until num1 = 0
TxtDigit.Text = StrReverse(result)
End If

Status = "BIN"

End Sub

Private Sub rDec_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles rDec.Click
b0.Enabled = True
b1.Enabled = True
b2.Enabled = True
b3.Enabled = True
b4.Enabled = True
b5.Enabled = True
b6.Enabled = True
b7.Enabled = True
b8.Enabled = True
b9.Enabled = True
ba.Enabled = False
bb.Enabled = False
bc.Enabled = False
bd.Enabled = False
be.Enabled = False
bf.Enabled = False

If Status = "DEC" Then
ElseIf Status = "OCT" Then
If TxtDigit.Text <> "0." Then
Dim sum As Int16 = 0
Dim k As Int16 = TxtDigit.TextLength
For i As Int16 = 1 To TxtDigit.TextLength
sum += (Mid(TxtDigit.Text, i, 1) * Math.Pow(8, k - i))
Next i
TxtDigit.Text = sum
Else
End If
ElseIf Status = "BIN" Then
If TxtDigit.Text <> "0." Then
Dim sum As Int16 = 0
Dim k As Int16 = TxtDigit.TextLength
For i As Int16 = 1 To TxtDigit.TextLength
sum += (Mid(TxtDigit.Text, i, 1) * Math.Pow(2, k - i))
Next i
TxtDigit.Text = sum
Else
End If

Else
End If
Status = "DEC"

End Sub


Private Sub FrmConvertDigit_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
rBin.Checked = True
Status = "BIN"


End Sub


Private Sub b4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles b4.Click
If TxtDigit.Text = "0." Then
TxtDigit.Text = "4"
Else
TxtDigit.Text &= "4"
End If
End Sub

Private Sub b5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles b5.Click
If TxtDigit.Text = "0." Then
TxtDigit.Text = "5"
Else
TxtDigit.Text &= "5"
End If
End Sub

Private Sub b6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles b6.Click
If TxtDigit.Text = "0." Then
TxtDigit.Text = "6"
Else
TxtDigit.Text &= "6"
End If
End Sub

Private Sub b7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles b7.Click
If TxtDigit.Text = "0." Then
TxtDigit.Text = "7"
Else
TxtDigit.Text &= "7"
End If
End Sub

Private Sub rOct_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles rOct.Click
b0.Enabled = True
b1.Enabled = True
b2.Enabled = True
b3.Enabled = True
b4.Enabled = True
b5.Enabled = True
b6.Enabled = True
b7.Enabled = True
b8.Enabled = False
b9.Enabled = False
ba.Enabled = False
bb.Enabled = False
bc.Enabled = False
bd.Enabled = False
be.Enabled = False
bf.Enabled = False

If Status = "OCT" Then

ElseIf Status = "BIN" Then
'-- convert 2 >>> 10 -------
Dim sum As Int16 = 0
If TxtDigit.Text <> "0." Then
Dim k As Int16 = TxtDigit.TextLength
For i As Int16 = 1 To TxtDigit.TextLength
sum += (Mid(TxtDigit.Text, i, 1) * Math.Pow(2, k - i))
Next i
TxtDigit.Text = sum
Else
End If

'-- convert 10 >> 8 -------
Dim j As Int16
Dim result As String = ""
Dim num1 As Int16 = sum
Do
j = num1 Mod 8
num1 = Int(num1 / 8)
result &= j
Loop Until num1 = 0
TxtDigit.Text = StrReverse(result)

ElseIf Status = "DEC" Then
Dim j As Int16
Dim result As String = ""
Dim num1 As Int16 = TxtDigit.Text
Do
j = num1 Mod 8
num1 = Int(num1 / 8)
result &= j
Loop Until num1 = 0
TxtDigit.Text = StrReverse(result)
End If
Status = "OCT"

End Sub

Private Sub b8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles b8.Click
If TxtDigit.Text = "0." Then
TxtDigit.Text = "8"
Else
TxtDigit.Text &= "8"
End If
End Sub

Private Sub b9_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles b9.Click
If TxtDigit.Text = "0." Then
TxtDigit.Text = "9"
Else
TxtDigit.Text &= "9"
End If
End Sub

Private Sub AboutProgrammerToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AboutProgrammerToolStripMenuItem.Click
MsgBox("โปรแกรมแปลงเลขฐาน รุ่น 1.0 " & vbCrLf & "พัฒนาโดย อ. นัฐพงศ์ ส่งเนียม" & vbCrLf & "http://www.siam2dev.com")
End Sub
End Class

จากคุณ : Amary JooB / dazzling_fashions@hotmail.com [2008-08-18 19:37:43]

110.171.82.214 ความคิดเห็น #28910 (จาก IP: 110.171.82.214)
ได้โจทย์มาให้เขียนโปรแกรมเครื่องคิดเลขประกอบด้วย เมธอดต่าง ดังนี้ addition +,Subtraction-,Multiplication*,Divistion/ โดยเมธอดทั้งสี่จะรับค่าเป็นจำนวนเต็มสองค่าและคืนค่าผลการคำนวนให้กับเมธอดที่เรียกใช้งาน

Lists of an arithmetic operator
1)Addition (+)
2)Subtraction (-)
3)Multiplication (*)
4)Divistion (/)
Plaese select the arithmetic operator:1
Input a first number:5
Input a first nunber:18
the result is 23.
จากคุณ : pp / krtkallaya@gmail.com [2013-09-21 14:27:54]

58.8.191.24 ความคิดเห็น #28925 (จาก IP: 58.8.191.24)
มีเฉลยเป็น C++ ครับ ที่
http://www.sourcecode.in.th/homeworks.php?id=13
จากคุณ : maddog [2013-09-26 09:54:38]
ตอบกระทู้
  • ห้ามการโฆษณา หากต้องการติดต่อหาลูกค้า ติดต่อโฆษณาโดยตรงได้ที่ webmaster@sourcecode.in.th
  • ห้ามใช้คำหยาบและคำพูดที่ไม่เหมาะสม
  • ขอสงวนสิทธิหากตรวจพบ ข้อความที่ไม่เหมาะสม ข้อความนั้นจะถูกลบทันที
ชื่อ
อีเมล์
รายละเอียด

- - - - - - - - - - - - - - ผู้ให้การสนับสนุน- - - - - - - - - - - - - -

 
 
คลิปสอนเขียนโปรแกรม
เรียนเขียนโปรแกรมดอทเน็ต
เรียนเขียนโปรแกรมแอนดรอยด์
เรียนเขียนโปรแกรมเบล็คเบอร์รี่
เรียนเขียนโปรแกรมซี ซีพลัสพลัส
เรียนเขียนโปรแกรมจาวา
เรียนการใช้งานลินุกส์
เรียนการเขียนโปรแกรมวินโดว์โฟน
เรียนการเขียนโปรแกรมพีเฮชพี มายเอสคิวเอล
อัตราค่าโฆษณา
 
Tutorial
eVB Tutorial
ASP.NET Webmatrix Tutorial
J2ME Tutorial
C++  Tutorial
Java  Tutorial
PHP Tutorial
ASP Tutorial
 
แบบสำรวจ

Home - Article - Tutorial - Sourcecode - Dev Handbook - Search - WebBoard - Links - About Us

สงวนลิขสิทธิ์ ห้ามคัดลอก ทำซ้ำ แก้ไข ดัดแปลง ไม่ว่าในรูปแบบใด โดยไม่ได้รับอนุญาตเป็นลายลักษณ์อักษร
เลขทะเบียนพาณิชย์อิเล็กทรอนิกส์จากกระทรวงพาณิชย์: 7100503002000
Copyright 2001 SourceCode.in.th