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ù)時(shí)間:8:30-17:00
      你可能遇到了下面的問題
      關(guān)閉右側(cè)工具欄

      新聞中心

      這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
      vb.net三層源碼,net 三層

      用vb.net編寫記事本源代碼

      Dim sFileName As String

      成都網(wǎng)站設(shè)計(jì)、做網(wǎng)站的關(guān)注點(diǎn)不是能為您做些什么網(wǎng)站,而是怎么做網(wǎng)站,有沒有做好網(wǎng)站,給成都創(chuàng)新互聯(lián)一個(gè)展示的機(jī)會(huì)來證明自己,這并不會(huì)花費(fèi)您太多時(shí)間,或許會(huì)給您帶來新的靈感和驚喜。面向用戶友好,注重用戶體驗(yàn),一切以用戶為中心。

      Dim Search

      Private Sub dateTimeMenu_Click()

      Text1.Text = Now

      End Sub

      Private Sub deleteMenu_Click()

      Text1.Text = Left(Text1.Text, Text1.SelStart) + Mid(Text1.Text, Text1.SelStart + Text1.SelLength + 1)

      End Sub

      Private Sub findMenu_Click()

      Search = InputBox("請輸入要查找的字詞:")

      Dim Where1 '獲取需要查找的字符串變量

      Text1.SetFocus '文本框獲得焦點(diǎn),以顯示所找到的內(nèi)容Search = InputBox("請輸入要查找的字詞:")

      Where1 = InStr(Text1.Text, Search) '在文本中查找字符串

      If Where1 Then

      '若找到則設(shè)置選定的起始位置并使找到的字符串高亮

      Text1.SelStart = Where1 - 1

      Text1.SelLength = Len(Search)

      ' Me.Caption = Where1 '測試用

      '否則給出提示

      Else: MsgBox "未找到所要查找的字符串。", vbInformation, "提示"

      End If

      End Sub

      Private Sub findNextMenu_Click()

      Dim Where2

      Dim StartMe As Integer '查找的起始位置變量

      Text1.SetFocus '文本框獲得焦點(diǎn)

      StartMe = Text1.SelLength + Text1.SelStart + 1 '給變量賦值

      Where2 = InStr(StartMe, Text1.Text, Search) '令其從上次找到的地方找起

      If Where2 Then

      Text1.SelStart = Where2 - 1

      Text1.SelLength = Len(Search)

      Else: MsgBox "未找到所要查找的字符串.", vbInformation, "提示"

      End If

      End Sub

      Private Sub aboutMenu_Click()

      MsgBox Space(2) "文本編輯器版本號(hào)1.0" Chr(13) "由西南財(cái)經(jīng)大學(xué)天府學(xué)院" Chr(13) Space(5) "肖忠 開發(fā)" Chr(13) Space(2) "copyright:天府學(xué)院"

      End Sub

      Private Sub allMenu_Click()

      Text1.SelStart = 0

      Text1.SelLength = Len(Text1.Text)

      End Sub

      Private Sub backcolorMenu_Click() '設(shè)置背景色代碼

      Form1.CommonDialog1.Action = 3

      Text1.BackColor = Form1.CommonDialog1.Color

      End Sub

      Private Sub colorMenu_Click() '改變文字顏色代碼

      Form1.CommonDialog1.Action = 3

      Text1.ForeColor = Form1.CommonDialog1.Color

      End Sub

      Private Sub cutMenu_Click()

      Clipboard.SetText Text1.SelText

      Text1.Text = Left(Text1.Text, Text1.SelStart) + Mid(Text1.Text, Text1.SelStart + Text1.SelLength + 1)

      End Sub

      Private Sub exitMenu_Click()

      End

      End Sub

      Private Sub fontMenu_Click() '字體菜單代碼

      Form1.CommonDialog1.Flags = 3 Or 256

      Form1.CommonDialog1.Action = 4

      If Len(Form1.CommonDialog1.FontName) = 0 Then

      Form1.Text1.FontName = "宋體"

      Else

      Form1.Text1.FontName = Form1.CommonDialog1.FontName

      End If

      Form1.Text1.FontSize = Form1.CommonDialog1.FontSize

      If Form1.CommonDialog1.FontBold = True Then

      Form1.Text1.FontBold = True

      Else

      Form1.Text1.FontBold = False

      End If

      If Form1.CommonDialog1.FontItalic = True Then

      Form1.Text1.FontItalic = True

      Else

      Form1.Text1.FontItalic = False

      End If

      Text1.ForeColor = Form1.CommonDialog1.Color

      End Sub

      Private Sub Form_Load()

      Form1.Text1.Width = Form1.Width - 130

      Form1.Text1.Height = Form1.Height

      End Sub

      Private Sub Form_Resize()

      Form1.Text1.Width = Form1.Width - 130

      Form1.Text1.Height = Form1.Height

      End Sub

      Private Sub help1Menu_Click()

      Form1.CommonDialog1.HelpCommand = cdlHelpForceFile

      Form1.CommonDialog1.HelpFile = "c:\windows\system32\winhelp.hlp"

      CommonDialog1.ShowHelp

      End Sub

      Private Sub newMenu_Click()

      If Len(Trim(Text1.Text)) = 0 Then

      Form1.Caption = "我的記事本" "--" "未命名"

      sFileName = "未命名"

      Text1.FontSize = 15

      Text1.FontName = "宋體"

      Text1.Text = ""

      Else

      Call saveAsMenu_Click

      Form1.Caption = "我的記事本" "--" "未命名"

      sFileName = "未命名"

      Text1.FontSize = 15

      Text1.FontName = "宋體"

      Text1.Text = ""

      End If

      End Sub

      Private Sub openMenu_Click() '打開文件代碼

      If Len(Trim(Text1.Text)) = 0 Then

      Form1.Caption = "我的記事本"

      Form1.CommonDialog1.Filter = "文本文件|*.txt"

      Form1.CommonDialog1.Flags = 4096

      Form1.CommonDialog1.Action = 1

      If Len(Form1.CommonDialog1.FileName) 0 Then

      sFileName = Form1.CommonDialog1.FileName

      Form1.Caption = Form1.Caption "--" Form1.CommonDialog1.FileTitle

      Open sFileName For Input As #1

      Text1.FontSize = 15

      Text1.FontName = "宋體"

      Do While Not EOF(1)

      Line Input #1, Text$

      All$ = All$ + Text$ + Chr(13) + Chr(10)

      Loop

      Text1.Text = All

      Close #1

      End If

      Else

      Call saveAsMenu_Click

      Form1.Caption = "我的記事本"

      Form1.CommonDialog1.Filter = "文本文件|*.txt"

      Form1.CommonDialog1.Flags = 4096

      Form1.CommonDialog1.Action = 1

      If Len(Form1.CommonDialog1.FileName) 0 Then

      sFileName = Form1.CommonDialog1.FileName

      Form1.Caption = Form1.Caption "--" Form1.CommonDialog1.FileTitle

      Open sFileName For Input As #1

      Text1.FontSize = 15

      Text1.FontName = "宋體"

      Do While Not EOF(1)

      Line Input #1, Text$

      All$ = All$ + Text$ + Chr(13) + Chr(10)

      Loop

      Text1.Text = All

      Close #1

      End If

      End If

      End Sub

      Private Sub pasteMenu_Click() '粘貼菜單代碼

      Text1.Text = Left(Text1.Text, Text1.SelStart) + Clipboard.GetText() + Mid(Text1.Text, Text1.SelStart + Text1.SelLength + 1)

      End Sub

      Private Sub printMenu_Click()

      Form1.CommonDialog1.ShowPrinter

      For i = 1 To CommonDialog1.Copies

      Printer.Print Text1.Text

      Printer.Print Text1.Text

      Next

      Printer.EndDoc

      End Sub

      Private Sub saveAsMenu_Click() '另存為菜單代碼

      If Len(Trim(Text1.Text)) 0 Then

      Form1.CommonDialog1.DialogTitle = "保存文件"

      Form1.CommonDialog1.InitDir = "D:\"

      Form1.CommonDialog1.Filter = "文本文件|*.txt"

      Form1.CommonDialog1.Flags = 2

      Form1.CommonDialog1.ShowSave

      If Len(Form1.CommonDialog1.FileName) 0 Then

      sFileName = Form1.CommonDialog1.FileName

      Open sFileName For Output As #1

      whole$ = Text1.Text

      Print #1, whole

      Close #1

      End If

      End If

      End Sub

      Private Sub saveMenu_Click()

      If Len(Trim(Text1.Text)) 0 Then

      Form1.CommonDialog1.DialogTitle = "保存文件"

      Form1.CommonDialog1.InitDir = "D:\"

      Form1.CommonDialog1.FileName = "新建文本"

      Form1.CommonDialog1.Filter = "文本文件|*.txt"

      Form1.CommonDialog1.Flags = 2

      Form1.CommonDialog1.ShowSave

      If Len(Form1.CommonDialog1.FileName) 0 Then

      sFileName = Form1.CommonDialog1.FileName

      Open sFileName For Output As #1

      whole$ = Text1.Text

      Print #1, whole

      Close #1

      End If

      End If

      End Sub

      Private Sub statusMenu_Click()

      End Sub

      求VB.NET網(wǎng)站權(quán)限的源代碼或?qū)嵗?/h2>

      GRANT { { SELECT | INSERT | UPDATE | DELETE | REFERENCES | TRIGGER }

      [,...] | ALL [ PRIVILEGES ] }

      ON [ TABLE ] tablename [, ...]

      TO { username | GROUP groupname | PUBLIC } [, ...] [ WITH GRANT OPTION ]

      GRANT { { USAGE | SELECT | UPDATE }

      [,...] | ALL [ PRIVILEGES ] }

      ON SEQUENCE sequencename [, ...]

      TO { username | GROUP groupname | PUBLIC } [, ...] [ WITH GRANT OPTION ]

      GRANT { { CREATE | CONNECT | TEMPORARY | TEMP } [,...] | ALL [ PRIVILEGES ] }

      ON DATABASE dbname [, ...]

      TO { username | GROUP groupname | PUBLIC } [, ...] [ WITH GRANT OPTION ]

      GRANT { EXECUTE | ALL [ PRIVILEGES ] }

      ON FUNCTION funcname ( [ [ argmode ] [ argname ] argtype [, ...] ] ) [, ...]

      TO { username | GROUP groupname | PUBLIC } [, ...] [ WITH GRANT OPTION ]

      GRANT { USAGE | ALL [ PRIVILEGES ] }

      ON LANGUAGE langname [, ...]

      TO { username | GROUP groupname | PUBLIC } [, ...] [ WITH GRANT OPTION ]

      GRANT { { CREATE | USAGE } [,...] | ALL [ PRIVILEGES ] }

      ON SCHEMA schemaname [, ...]

      TO { username | GROUP groupname | PUBLIC } [, ...] [ WITH GRANT OPTION ]

      GRANT { CREATE | ALL [ PRIVILEGES ] }

      ON TABLESPACE tablespacename [, ...]

      TO { username | GROUP groupname | PUBLIC } [, ...] [ WITH GRANT OPTION ]

      GRANT role [, ...] TO username [, ...] [ WITH ADMIN OPTION ]

      希望對(duì)你有幫助

      如何用vb.net獲得網(wǎng)頁的源代碼

      Dim url As String=" 網(wǎng)址"

      Dim httpReq As System.Net.HttpWebRequest

      Dim httpResp As System.Net.HttpWebResponse

      Dim httpURL As New System.Uri(url)

      httpReq = CType(WebRequest.Create(httpURL), HttpWebRequest)

      httpReq.Method = "GET"

      httpResp = CType(httpReq.GetResponse(), HttpWebResponse)

      httpReq.KeepAlive = False ' 獲取或設(shè)置一個(gè)值,該值指示是否與

      Internet資源建立持久連接。

      Dim reader As StreamReader = _

      New StreamReader(httpResp.GetResponseStream,

      System.Text.Encoding.GetEncoding(-0))

      Dim respHTML As String = reader.ReadToEnd() 'respHTML就是網(wǎng)頁源代碼

      求vb.net的源代碼,最好說明其解決問題,越多越好,滿意加50分。

      下面這段代碼,是我用來計(jì)算每個(gè)月存500元進(jìn)銀行,連續(xù)30年,最后連本帶利能有多少錢。這里面涉及復(fù)利計(jì)算。界面中右邊的文本框用來輸出每一次計(jì)算的結(jié)果。

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

      ? Dim nianxian As Integer '年限變量

      ? Dim dingcun As Integer '定存變量

      ? Dim fuli_big As Long '大復(fù)利

      ? Dim fuli_small As Long '小復(fù)利

      ? Dim i As Integer '循環(huán)變量

      ? Dim DATAstring As String '數(shù)據(jù)字符串

      ? nianxian = Val(年限_TextBox.Text)

      ? dingcun = Val(定存_TextBox.Text)

      ? DATAstring = ""

      ? For i = 1 To nianxian

      ? ? ? fuli_small = dingcun * (1 + 0.1875)

      ? ? ? dingcun = fuli_small

      ? ? ? fuli_big = fuli_big + fuli_small

      ? ? ? DATAstring = DATAstring + "[" + Trim(Str(i)) + "]" + Str(fuli_big) + Chr(13) + Chr(10)

      ? ? ? 'DATAstring = DATAstring + "[" + Trim(Str(i)) + "]" + Str(fuli_small) + Chr(13) + Chr(10)

      ? Next

      ? 'fuli_big = fuli_small

      ? TextBox1.Text = DATAstring

      ? 結(jié)果_TextBox.Text = Str(fuli_big) + "元"

      End Sub

      VB.NET獲取需要登錄后的源碼

      很簡單的。這個(gè)最基本的了。

      就是從數(shù)據(jù)庫表中 找出一個(gè)記錄,名稱和密碼都和你輸入的一樣的記錄,就表示登陸成功。

      簡單的思路:(密碼也沒有加密等)

      dim dt As New DataTable

      dim cmd As New SqlCommand

      With cmd

      .CommandText = "Select * From Users Where UserName=@UserName and UserPwd=@UserPwd"

      .Parameters.Add(New SqlClient.SqlParameter("@UserName", "=你輸入的用戶名TextBox1.Text"))

      .Parameters.Add(New SqlClient.SqlParameter("@strColorNo", "=你輸入的密碼TextBox2.Text"))

      End With

      dt =SqlHelper.GetDatatable(cmd)

      if dt.rows.count0 then

      msgbox "ok"

      else

      msgbox "error"

      end if


      當(dāng)前題目:vb.net三層源碼,net 三層
      當(dāng)前網(wǎng)址:http://www.ef60e0e.cn/article/hschdo.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>

        淳化县| 乾安县| 金川县| 北票市| 沙湾县| 仙游县| 广南县| 囊谦县| 伊金霍洛旗| 察哈| 镇宁| 淮安市| 宜兰县| 孝义市| 通山县| 隆林| 宜丰县| 兴安县| 公安县| 无极县| 美姑县| 安溪县| 门头沟区| 崇仁县| 双桥区| 鹿邑县| 佛冈县| 壤塘县| 锦州市| 岐山县| 永州市| 河南省| 乌海市| 靖远县| 阳城县| 望城县| 大港区| 渭源县| 苏尼特左旗| 石泉县| 克什克腾旗|