- 1、本文档共10页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
VB制作个人记事本(国外英文资料)
VB制作个人记事本(国外英文资料)
Chapter 1 let our Notepad run right away
Eager for success is a common aspiration of beginners. Well, please do the following three steps, and our wishes will come true at once!
Step 1: draw the interface.
Create a standard EXE project, change its Caption attribute to super Notepad, and click the Icon property to find a suitable Icon icon for it. Click the menu project - - part, find the MicrosoftRichTextBox 6 and the public dialog box Microsoft CommonDialog6.0 in the pop-up widget dialog box, select them, and click the OK button. When the left toolbar appears two controls we just added. Drawing RichTextBox and CommnDialog on the form, the size and position of RichTextBox can not be ignored, we will deal with it in the code, of course, it is necessary to put its ScrollBar property to 2-rtfVertical, so in the open and edit files when the vertical scroll bar is available.
Step two: edit the menu.
Press Ctrl+E to bring up the menu editor. Lets do the following menus:
File menu:
File (Tier 1) mnuFile
New (second layer) mnuNew
Open (second layers) mnuOpen
Save (second layers) mnuSave
- (second layers) mnuFileSep (dividing line)
Exit (Tier second) mnuExit
Two. Edit menu:
Edit (Tier 1) mnuEdit
Copy (second layers) mnuCopy
Cut (second layers) mnuCut
Paste (second layers) mnuPaste
- (second layers) mnuEditSep (dividing line)
Select (second) mnuSelecAll
Three. Search menu:
Search (Tier 1) mnuSearch
Find (second layers) mnuFind
Find the next (second layer) mnuFindOn
Four. Help menu:
Help (Tier 1) mnuHelp
Directions for use (second layers), mnuUsage
About (second layers) mnuAbout
(Note: shortcut keys for each menu item are set by yourself)
Well, other menu items will be added later as needed. Enter now:
Step three: write code.
declare lookup variables
Dim sFind As String
Declare file type
Dim, FileType, FiType, As, String
Initialization program
Private, Sub, Form_Load ()
Set the size of the program when it is started
Me.border=1Height = 6000
Me.Width = 9000
E
文档评论(0)