1
00:00:00,215 --> 00:00:04,215
<b>《<u><font color="#00F0F5">Using Visual Basic documentation</font></u>》</b>
<b><u><font color="#F9DF08">【本字幕由ACELY 整理&转码】</font></u></b>
Whenever you learn a programming language you're going to need to know how to get

2
00:00:04,215 --> 00:00:08,215
to the documentation for the language. I won't be able to tell you all of the

3
00:00:08,215 --> 00:00:13,215
details of Visual Basic in this course and so you'll always need to be able to

4
00:00:13,215 --> 00:00:17,215
get to more information. Here's some tips about navigating the

5
00:00:17,215 --> 00:00:22,215
documentation and help resources that are available with Visual Studio.

6
00:00:22,215 --> 00:00:26,215
By default, your help resources are online, and so to get to them while

7
00:00:26,215 --> 00:00:30,215
you're doing your development work, you'll need an Internet connection.

8
00:00:30,215 --> 00:00:37,215
To get to the primary help resources, go to the menu and chose Help, View Help.

9
00:00:37,215 --> 00:00:43,215
That will open a browser and take you to the documentation for Visual Studio 2012.

10
00:00:43,215 --> 00:00:48,215
If you're looking for language documentation, click on Visual Basic and

11
00:00:48,215 --> 00:00:53,215
Visual C#, and then from there, on Visual Basic.

12
00:00:53,215 --> 00:00:57,215
From here, you can find conceptual information, and the complete API

13
00:00:57,215 --> 00:01:03,215
reference for Visual Basic, and for the .NET or WinRT libraries.

14
00:01:03,215 --> 00:01:08,215
You can also get the context sensitive help for particular language elements.

15
00:01:08,215 --> 00:01:13,215
For example let's say that you wanted to learn about the class statement.

16
00:01:13,215 --> 00:01:17,215
This is how you define a software class in Visual Basic.

17
00:01:17,215 --> 00:01:22,215
To get to the documentation for this keyword, double click on the keyword to

18
00:01:22,215 --> 00:01:24,215
select it. Then press F1.

19
00:01:24,215 --> 00:01:29,215
That will open the documentation online, and you can read the conceptual

20
00:01:29,215 --> 00:01:34,215
information and take a look at the structure of the command and sometimes

21
00:01:34,215 --> 00:01:37,215
some sample code. Here's another example.

22
00:01:37,215 --> 00:01:42,215
Let's say you wanted to learn about the dim statement, the keyword that declares

23
00:01:42,215 --> 00:01:46,215
a variable. I'll double click and press f1 again.

24
00:01:46,215 --> 00:01:50,215
And that takes me to the documentation for dim.

25
00:01:50,215 --> 00:01:54,215
You can also use context sensitive help with zamil.

26
00:01:54,215 --> 00:01:59,215
I'll go to my zamil file in my code runner application, and I'll double click

27
00:01:59,215 --> 00:02:04,215
on the label element, and press F1. And that takes me to all the information

28
00:02:04,215 --> 00:02:10,215
I need about the Label class. If you prefer, you can download

29
00:02:10,215 --> 00:02:15,215
documentation and use it locally. To do this, go to the menu and choose

30
00:02:15,215 --> 00:02:23,215
Help > Add and Remove Help Content. That opens an application called Help Viewer.

31
00:02:23,215 --> 00:02:27,215
From here, you can select one or more documents that you want to download and

32
00:02:27,215 --> 00:02:32,215
use locally. I'll click the add link for visual basic

33
00:02:32,215 --> 00:02:37,215
and visual c sharp and I see a status of add pending.

34
00:02:37,215 --> 00:02:43,215
Now, to actually download that documentation, I'll click the update button.

35
00:02:43,215 --> 00:02:48,215
If you see a user account control dialogue box at this point, click yes.

36
00:02:48,215 --> 00:02:52,215
It won't always show up. But once you've gotten to this point,

37
00:02:52,215 --> 00:02:55,215
you'll be downloading the documentation that you selected.

38
00:02:55,215 --> 00:02:58,215
It'll be merged into your local documentation.

39
00:02:58,215 --> 00:03:03,215
And it'll be ready to use. Then to change the way visual studio

40
00:03:03,215 --> 00:03:10,215
behaves when you ask for help, go to the menu and choose help, set help

41
00:03:10,215 --> 00:03:18,215
preference, launch in health viewer. Now to test that, I'll go back to my vb window.

42
00:03:18,215 --> 00:03:24,215
I'll once again double click to select the dim keyword, and I'll press F1.

43
00:03:24,215 --> 00:03:28,215
And now the local documentation opens in help view.

44
00:03:28,215 --> 00:03:32,215
So if you're going on a trip, you're not going to have an internet connection, but

45
00:03:32,215 --> 00:03:36,215
you still want to keep on programming, prepare ahead of time.

46
00:03:36,215 --> 00:03:40,215
Download the documentation that you'll need, change your options, and you'll be

47
00:03:40,215 --> 00:03:44,215
able to get to all the information you need when you need it.

48
00:03:44,215 --> 00:03:48,215
<i><font color="#00F0F5">【本字幕由 CGSUB.COM 独家制作发布】</font></i>
<b><i><u><font color="#F563B7">-----欢迎加入群号：214645753-----</font></u></i></b>
For the purpose of this course, I'll be using the online help, but both of these

49
00:03:48,215 --> 00:03:53,215
documentation sets have the same information and can help you as you learn

50
00:03:53,215 --> 00:56:01,215
Visual Basic.


