使用 Visual Basic 创建应用程序指南
1. 放置控件到 Directions 应用程序
在 Directions 应用程序中放置 lblDirections、btnDisplayDirections 和 btnExit 控件,可按以下步骤操作:
1. 启动 Visual Studio 并打开 Directions 项目,以设计模式查看 Form1 窗体。若窗体不可见,在解决方案资源管理器中双击其名称。
2. 由于窗体过小,需将新控件放置在图形下方的窗体底部,因此要向下拖动窗体的底边,使其大致呈现如图 2 - 35 所示的样子。
3. 在窗体上创建一个新的 Label 控件,并将其移动到图像下方的位置。
4. 确保新的 Label 控件被选中,并将其 AutoSize 属性设置为 False。
5. 调整 Label 控件的大小和位置,使其与图 2 - 36 中所示的 Label2 控件相似。
6. 将 Label 控件的 Name 属性更改为 lblDirections。
7. 为 Label 控件的 Text 属性输入以下文本:
Traveling on I - 89, take Exit 125 onto Highway 101 South.
The hotel is on the left, just past the I - 89 intersection.
Traveling on Highway 101 North, the hotel is on the right,
just before the I - 89 intersectio
超级会员免费看
订阅专栏 解锁全文
843

被折叠的 条评论
为什么被折叠?



