欧美一级特黄大片做受成人-亚洲成人一区二区电影-激情熟女一区二区三区-日韩专区欧美专区国产专区

關(guān)于用vb.net設(shè)計備忘錄的信息

VB簡易備忘錄代碼怎么寫~跪求!

Private Sub Command1_Click()

創(chuàng)新互聯(lián)是網(wǎng)站建設(shè)技術(shù)企業(yè),為成都企業(yè)提供專業(yè)的網(wǎng)站建設(shè)、網(wǎng)站制作,網(wǎng)站設(shè)計,網(wǎng)站制作,網(wǎng)站改版等技術(shù)服務。擁有十年豐富建站經(jīng)驗和眾多成功案例,為您定制適合企業(yè)的網(wǎng)站。十年品質(zhì),值得信賴!

Open "d:\1.txt" For Output As #1

Print #1, Text1.Text "http:///" Text2.Text "http:///" Text3.Text "http:///" Text4.Text "http:///" Text5.Text

Close #1

End Sub

Private Sub Command2_Click()

Open "d:\1.txt" For Input As #1

Input #1, a

t = Split(a, "http:///")

For i = 0 To UBound(t)

Text1.Text = t(0)

Text2.Text = t(1)

Text3.Text = t(2)

Text4.Text = t(3)

Text5.Text = t(4)

Next i

Close #1

End Sub

搞了半天對split函數(shù)不熟。。。。

怎樣用vb.net做記事本??

簡單的 用TextBox 或者RichTextBox 控件啊 至于文件 可以存為ANSIC編碼的文本文件 或者數(shù)據(jù)庫存取也行啊

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

Dim sFileName As String

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 '文本框獲得焦點,以顯示所找到的內(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 '文本框獲得焦點

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) "文本編輯器版本號1.0" Chr(13) "由西南財經(jīng)大學天府學院" Chr(13) Space(5) "肖忠 開發(fā)" Chr(13) Space(2) "copyright:天府學院"

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做一個桌面?zhèn)渫?!如題 謝謝了

首先,vb肯定能做出你要的功能 但是有難度,只懂一點vb的話可能有問題,或者做出來的不太好使。 哆啦A夢的圖案嘛肯定是要用其它軟件先做好的,比如Photoshop。想要有動畫效果,只能多做幾張圖案,然后利用timer控件間隔顯示,因為vb支持的圖形格式很少耶。 你需要解決的主要是如何做不規(guī)則窗體的問題,這個網(wǎng)上有例子,要用到API函數(shù)。 輸備忘的地方就簡單了,用個文本框就行了。但還需要會操作文件,因為要把備忘的內(nèi)容保存到硬盤上,不然電腦一關(guān)機,就沒了。當然還有很多的細節(jié),比如打開軟件時要讀取文件中的備忘,還要比較時間,及時提醒等。 追問: 恩~能不能什么時候有空具體指點我做一下呢?謝謝 回答: 什么時候有空呀,天天上班,就晚上有點時間,還不是經(jīng)常上網(wǎng),呵呵~~

網(wǎng)站標題:關(guān)于用vb.net設(shè)計備忘錄的信息
文章URL:http://aaarwkj.com/article8/hhphip.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供品牌網(wǎng)站設(shè)計、網(wǎng)頁設(shè)計公司網(wǎng)站排名、自適應網(wǎng)站、商城網(wǎng)站App設(shè)計

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

成都網(wǎng)站建設(shè)公司
麻豆深夜激情在线观看| 亚洲黄片在线免费播放观看| 黄色录像免费一内片一级| 日本成年网站在线观看| 亚洲女同另类在线播放视频| 蜜桃av网站免费观看| 韩国三级在线视频网站| 色哟哟亚洲精品一区二区| 欧美视频综合一级91| 青青草视频免费观看高清在线观看新| 一区二区久久精品视频| 日韩不卡在线免费播放| 亚洲国产专区一区二区麻豆| 国产精品va在线观看入口| 插入内射视频在线观看| 99精品欧美日韩在线播放| 久久久久久这里都是精品| 国产一区二区激情在线| 蜜臀av一区二区高清| 欧美人与性一区二区三区| 国产亚洲国产av网站在线| 99精品午夜福利在线| 国产精品国产三级国产专播| 国产午夜三级视频在线观看| 精品人妻少妇免费久久蜜臀av| 久久精品一区二区三区不卡| 亚洲性码不卡视频在线| 日本午夜福利免费在线播放| 成人欧美精品一区二区不卡| 成人中文字幕日韩电影| 视频一区日本视频二区| 日本黄色小网站在线播放| 日韩精品一区二区三区电影在线播放| 精品欧美国产日韩在线观看 | 国产成人精品一二三四区| 久久精品国产亚洲av蜜点| 久久精品视频就在久久| 天堂中文在线官网在线| 亚洲av丰满熟妇在线观看| 欧美激情中文字幕日韩精品| 在线观看91精品国产秒播|