1. <ul id="0c1fb"></ul>

      <noscript id="0c1fb"><video id="0c1fb"></video></noscript>
      <noscript id="0c1fb"><listing id="0c1fb"><thead id="0c1fb"></thead></listing></noscript>

      99热在线精品一区二区三区_国产伦精品一区二区三区女破破_亚洲一区二区三区无码_精品国产欧美日韩另类一区

      RELATEED CONSULTING
      相關(guān)咨詢
      選擇下列產(chǎn)品馬上在線溝通
      服務(wù)時間:8:30-17:00
      你可能遇到了下面的問題
      關(guān)閉右側(cè)工具欄

      新聞中心

      這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
      vb.net課程設(shè)計 vb程序設(shè)計教學(xué)設(shè)計

      求VB.net程序源代碼 繪圖板、二十一點游戲、計算器、井字棋游戲、屏幕保護程序等

      說明:1.共有4個文本框其,其中三個是填入或輸出數(shù)據(jù)的(名稱分別是:txta txtb txtc),剩下的那個是符號(txtd)2.共7個按鈕,4個是符號按鈕,一個計算,一個清零.這是我弄的程序”袖珍計算器”代碼也是自己編寫的,代碼如下:通用聲明Dim j As Integer '定義j為整型

      成都創(chuàng)新互聯(lián)公司專注為客戶提供全方位的互聯(lián)網(wǎng)綜合服務(wù),包含不限于網(wǎng)站設(shè)計、網(wǎng)站制作、寧津網(wǎng)絡(luò)推廣、小程序定制開發(fā)、寧津網(wǎng)絡(luò)營銷、寧津企業(yè)策劃、寧津品牌公關(guān)、搜索引擎seo、人物專訪、企業(yè)宣傳片、企業(yè)代運營等,從售前售中售后,我們都將竭誠為您服務(wù),您的肯定,是我們最大的嘉獎;成都創(chuàng)新互聯(lián)公司為所有大學(xué)生創(chuàng)業(yè)者提供寧津建站搭建服務(wù),24小時服務(wù)熱線:18980820575,官方網(wǎng)址:www.cdcxhl.com

      Private Sub Text1_Change()End SubPrivate Sub Command1_Click()

      txtfuhao.Text = "+" '將”+”顯示到文本框txtfuhao.Text中

      End SubPrivate Sub Command2_Click()

      txtfuhao.Text = "-" ''將”-”顯示到文本框txtfuhao.Text中

      End SubPrivate Sub Command3_Click()

      txtfuhao.Text = "×" '將”×”顯示到文本框txtfuhao.Text中

      End SubPrivate Sub Command4_Click()

      txtfuhao.Text = "÷" 將”÷”'顯示到文本框txtfuhao.Text中

      End Sub

      Private Sub Command5_Click()

      Dim a, b, c As Integer

      a = Val(txta.Text) '將txta.Text里的內(nèi)容轉(zhuǎn)化為數(shù)值型,然后再賦給a

      b = Val(txtb.Text) '將txtb.Text里的內(nèi)容轉(zhuǎn)化為數(shù)值型,然后再賦給b

      If txtfuhao.Text = "+" Then '運算過程

      c = a + b '運算過程

      ElseIf txtfuhao.Text = "-" Then '運算過程

      c = a - b '運算過程

      ElseIf txtfuhao.Text = "÷" Then '運算過程

      c = a / b '運算過程

      ElseIf txtfuhao.Text = "×" Then '運算過程

      c = a * b '運算過程

      Else

      j = MsgBox("您輸入的符號不正確", vbOKOnly, "錯誤信息")

      End If

      txtc.Text = c '將運算結(jié)果c輸出到文本框txtc中

      End SubPrivate Sub Command6_Click()

      txta.Text = "" '將空字符輸入到文本框內(nèi)(刷新)

      txtb.Text = "" '將空字符輸入到文本框內(nèi)(刷新)

      txtc.Text = "" '將空字符輸入到文本框內(nèi)(刷新)

      txtfuhao.Text = "" '將空字符輸入到文本框內(nèi)(刷新)

      End SubPrivate Sub Command7_Click()

      End '結(jié)束程序

      End SubPrivate Sub Form_Load()End Sub

      vb.net課程設(shè)計 圖書預(yù)訂系統(tǒng) 分不多20,略表心意

      可以依靠Baidu Hi提醒我

      有時間可能完成你所面臨的任務(wù)

      具體的要求也可能提醒我

      ES:\\2ADE47C733644B4DE5F49C3986EDDAE4

      交易提醒:預(yù)付定金是詐騙

      用VB語言制作英漢小辭典

      Public Class Form1

      Inherits System.Windows.Forms.Form

      Public filename As String = "英漢詞典.txt"

      Public myword(6500, 1) As String

      Public words As Integer = 0

      Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

      Dim a As String

      Dim b As Integer

      Dim i As Integer = 0

      Dim n As String

      Dim m As String

      Dim stringb As Integer

      TextBox1.Text = ""

      TextBox2.Text = ""

      FileOpen(1, "英漢詞典.txt", OpenMode.Input)

      Do While Not EOF(1)

      a = LineInput(1)

      b = InStr(a, " ")

      n = Microsoft.VisualBasic.Left(a, b - 1)

      myword(i, 0) = n

      ListBox1.Items.Add(n)

      stringb = Len(a) - b

      m = Trim(Microsoft.VisualBasic.Right(a, stringb))

      myword(i, 1) = m

      i += 1

      Loop

      words = i

      FileClose(1)

      End Sub

      Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

      Dim i As Integer = -1

      If TextBox1.Text = "" Then

      MessageBox.Show("不能輸入空格,請重新輸入")

      TextBox2.Text = ""

      TextBox1.Focus()

      Exit Sub

      Else

      For i = i + 1 To words

      If LCase(TextBox1.Text) = LCase(myword(i, 0)) Then

      TextBox2.Text = Trim(myword(i, 1))

      Exit Sub

      End If

      Next

      MessageBox.Show(" 您需要的單詞不存在,請重新輸入")

      End If

      End Sub

      Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged

      Try

      TextBox1.Text = myword(ListBox1.SelectedIndex, 0)

      TextBox2.Text = Trim(myword(ListBox1.SelectedIndex, 1))

      Catch ex As Exception

      End Try

      Exit Sub

      End Sub

      Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click

      Dim ch, enterwords As String

      Dim j, m As Integer

      If -1 = ListBox1.SelectedIndex Then

      MsgBox("請選擇單詞", , "")

      ListBox1.Focus()

      Exit Sub

      End If

      enterwords = InputBox("請修改單詞", "修改單詞", Trim(myword(ListBox1.SelectedIndex, 0)))

      Do While enterwords = ""

      m = MsgBox("單詞不能為空", MsgBoxStyle.RetryCancel, "修改單詞")

      If m = 4 Then

      enterwords = InputBox("請修改單詞", "修改單詞", Trim(myword(ListBox1.SelectedIndex, 0)))

      Else

      Exit Sub

      End If

      Loop

      ch = InputBox("請修改中文意思", "修改單詞", Trim(myword(ListBox1.SelectedIndex, 1)))

      Do While ch = ""

      m = MsgBox("中文意思不能為空", MsgBoxStyle.RetryCancel, "修改單詞")

      If m = 4 Then

      ch = InputBox("請修改中文意思", "修改單詞", Trim(myword(ListBox1.SelectedIndex, 1)))

      Else

      Exit Sub

      End If

      Loop

      myword(ListBox1.SelectedIndex, 1) = ch

      myword(ListBox1.SelectedIndex, 0) = enterwords

      FileOpen(1, filename, OpenMode.Output)

      For j = 0 To words - 1

      PrintLine(1, myword(j, 0) " " myword(j, 1))

      Next

      FileClose(1)

      MsgBox("修改成功")

      ListBox1.Items.Clear()

      Form1_Load(sender, e)

      End Sub

      Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click

      Dim i As Integer = 0

      Dim k, m As Integer

      Dim enterwords, ch As String

      enterwords = InputBox("請輸入要添加的單詞", "添加單詞")

      Do While enterwords = ""

      m = MsgBox("單詞不能為空,請輸入單詞!", MessageBoxButtons.RetryCancel, "添加單詞")

      If m = 4 Then

      enterwords = InputBox("請輸入要添加的單詞", "添加單詞")

      Else

      Exit Sub

      End If

      Loop

      ch = InputBox("請輸入中文意思", "添加中文")

      Do While ch = ""

      m = MsgBox("中文不能為空,請輸入中文意思!", MessageBoxButtons.RetryCancel, "添加中文")

      If m = 4 Then

      ch = InputBox("請輸入中文意思", "添加中文")

      Else

      Exit Sub

      End If

      Loop

      Do While LCase(myword(i, 0)) LCase(enterwords)

      i = i + 1

      If words = i Then

      myword(i, 0) = enterwords

      myword(i, 1) = ch

      words = words + 1

      FileOpen(1, filename, OpenMode.Output)

      For i = 0 To words - 1

      PrintLine(1, myword(i, 0) " " myword(i, 1))

      Next

      ListBox1.Items.Clear()

      FileClose(1)

      ListBox1.Items.Clear()

      Form1_Load(sender, e)

      MessageBox.Show("添加成功")

      Exit Sub

      End If

      Loop

      If LCase(myword(i, 0)) = LCase(enterwords) Then

      MessageBox.Show("該單詞已存在!")

      ListBox1.SelectedIndex = i

      Exit Sub

      ElseIf LCase(myword(0, 0)) LCase(enterwords) Then

      For k = words To 0 Step -1

      myword(k + 1, 0) = myword(k, 0)

      myword(k + 1, 1) = myword(k, 1)

      Next

      myword(0, 0) = enterwords

      myword(0, 1) = ch

      words = words + 1

      FileOpen(1, filename, OpenMode.Output)

      For i = 0 To words - 1

      PrintLine(1, myword(i, 0) " " myword(i, 1))

      Next

      ListBox1.Items.Clear()

      FileClose(1)

      Form1_Load(sender, e)

      MessageBox.Show("添加成功")

      Exit Sub

      End If

      For k = words To i + 1 Step -1

      myword(k + 1, 0) = myword(k, 0)

      myword(k + 1, 1) = myword(k, 1)

      Next k

      myword(i, 0) = enterwords

      myword(i, 1) = ch

      words = words + 1

      FileOpen(1, filename, OpenMode.Output)

      For i = 0 To words - 1

      PrintLine(1, myword(i, 0) " " myword(i, 1))

      Next

      FileClose(1)

      ListBox1.Items.Clear()

      Form1_Load(sender, e)

      MessageBox.Show("添加成功")

      Exit Sub

      End Sub

      Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click

      Dim i, j, k As Integer

      If -1 = ListBox1.SelectedIndex Then

      MsgBox("請選擇單詞", , "")

      ListBox1.Focus()

      Exit Sub

      End If

      k = MsgBox("確定是否刪除", MsgBoxStyle.YesNo, "提示")

      If k = 6 Then

      For i = ListBox1.SelectedIndex To words

      myword(i, 0) = myword(i + 1, 0)

      myword(i, 1) = myword(i + 1, 1)

      Next

      words = words - 1

      FileOpen(1, filename, OpenMode.Output)

      For j = 0 To words - 1

      PrintLine(1, myword(j, 0) " " myword(j, 1))

      Next

      FileClose(1)

      MsgBox("單詞已刪除")

      ListBox1.Items.RemoveAt(ListBox1.SelectedIndex)

      ListBox1.Refresh()

      TextBox1.Text = ""

      TextBox2.Text = ""

      Exit Sub

      Else

      Exit Sub

      End If

      End Sub

      Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click

      TextBox1.Text = ""

      TextBox2.Text = ""

      End Sub

      End Class

      這是代碼,文字性的內(nèi)容自己去做。

      VB.net和SQL做的課程設(shè)計 圖書預(yù)訂系統(tǒng) 請高手指教

      可以依靠Baiduhi提醒我們

      有機會能夠處理你所遇到的工作

      具體的要求也能夠提醒我們

      ES:\\FF8FB115C12C422937C837B3A7220F94

      交易提醒:預(yù)付定金有風(fēng)險


      新聞標(biāo)題:vb.net課程設(shè)計 vb程序設(shè)計教學(xué)設(shè)計
      當(dāng)前地址:http://ef60e0e.cn/article/doshgpj.html
      99热在线精品一区二区三区_国产伦精品一区二区三区女破破_亚洲一区二区三区无码_精品国产欧美日韩另类一区
      1. <ul id="0c1fb"></ul>

        <noscript id="0c1fb"><video id="0c1fb"></video></noscript>
        <noscript id="0c1fb"><listing id="0c1fb"><thead id="0c1fb"></thead></listing></noscript>

        林口县| 平遥县| 象州县| 紫阳县| 上杭县| 彝良县| 石狮市| 察哈| 孟州市| 朝阳县| 德州市| 金沙县| 嵊州市| 崇仁县| 武冈市| 高雄市| 祁门县| 井陉县| 大兴区| 哈密市| 会宁县| 惠安县| 勐海县| 西藏| 如皋市| 紫金县| 蓬溪县| 财经| 东光县| 方山县| 当雄县| 昌邑市| 宽城| 荣成市| 巴林右旗| 西宁市| 阆中市| 仙居县| 延边| 天台县| 河源市|