Loading presentation...

Present Remotely

Send the link below via email or IM


Present to your audience

Start remote presentation

  • Invited audience members will follow you as you navigate and present
  • People invited to a presentation do not need a Prezi account
  • This link expires 10 minutes after you close the presentation
  • A maximum of 30 users can follow your presentation
  • Learn more about this feature in our knowledge base article

Do you really want to delete this prezi?

Neither you, nor the coeditors you shared it with will be able to recover it again.


Visual Basic 2010 - Presentation

No description

arvin aguilar

on 30 September 2012

Comments (0)

Please log in to add your comment.

Report abuse

Transcript of Visual Basic 2010 - Presentation

P R E S E N T A T I O N Visual Basic 2010 History Visual Basic Is Object Oriented
Visual Basic Programs Are Event Driven
Visual Basic Code Is "Family Oriented"
WYSIWIG Form Designer
Adding Code to Each Object
On this text, we can find the new characteristics of Visual Basic 2010. For people who have worked before with Visual Basic, it´s realy an interesting text because some of this new functions of visual basic are quite useful.
In my opinion the most interesting are the new "Auto-implemented Propieties" because it is faster to create new objects, because you only need one line for define them. All other one, are interesting if you really use them, because, as for example, the "Embebed Interop Types", explain us how to exclude in our applicacion the dependency of the PIA´s, and this is only useful if you use them in your applications.

The second article that we have readed have been, " How to build SharePoint Projects with TFS Team Build".
This new Technical Article really are not so interesting because it is only a little gide about how to install tools that you need for create a new SharePoint solutions using TFS Team Build (new Team Foundation Server from Microsoft).
A little summary of it could be:
On first steeps yo need to install TFS, .Net Framework, windows SDK, DSL Assembly and finally the SharePoint assemblies (for each one, the article give us the routes and places for install it), and how to copy the SharePoint Tool assemblies and Files to the GAC.
Before of install all this packages, we can create the SharePoint projects using TFS Team built.
New Features in the Visual Studio 2010 IDE and .NET Framework 4.0
•Call Hierarchy of methods
•A New Quick Search
•Multi-targeting more accurate
•Parallel Programming and Debugging
•XSLT Profiling and Debugging
•The XSD Designer
On April 12, 2010, Microsoft released Visual Studio 2010, codenamed Dev10and .NET Framework 4. Visual Studio 2010 comes with .NET Framework 4 and supports developing applications targeting Windows 7. It supports IBM DB2 and Oracle databases, in addition to Microsoft SQL Server.] It has integrated support for developing Microsoft Silverlight applications, including an interactive designer. Visual Studio 2010 offers several tools to make parallel programming simpler: in addition to the Parallel Extensions for the .NET Framework and the Parallel Patterns Library for native code, Visual Studio 2010 includes tools for debugging parallel applications. The new tools allow the visualization of parallel Tasks and their runtime stacks. Tools for profiling parallel applications can be used for visualization of thread wait-times and thread migrations across processor cores. Intel and Microsoft have jointly pledged support for a new Concurrency Runtime in Visual Studio 2010 and Intel has launched parallelism support in Parallel Studio as an add-on for Visual Studio. Visual Studio 2010 no longer supports development for Windows Mobile prior to Windows Phone 7. Visual Studio 2010 Service Pack 1 was released in March 2011. Characteristics of Visual Basic 2010 What is new on Visual Basic 2010. Capabilities of Visual Basic 2010 Advantages and Disadvantages Advantages - Newest technology from MS for app development
- Supports fully managed, but also a hyrid mix of managed and native through P/Invoke and Managed/Unmaged C++, which means that its easier to write code that doesn't have lots of memory leaks
- WPF and WCF are the new way of buildign UI's and Communicating between processes and systems
- Fully integrated IDE available
- Linux and Mac support through 3rd parties (Mono)
- Many languages available, both dynamic (IronPython and IronRuby) and static (C#, VB.NET, C++), both object oriented (C#, VB.NET, C++) and functional (F#) Disadvantages - Multi platform support isn't available from MS and isn't available straight after installing Visual Studio

- Managed code can be slower than native code Control Structure
Visual Basic 2010 Selection Statements Visual Basic provides three types of selection statements. • The If ... Then selection statement either performs (selects) an action (or sequence of actions) if a condition is true, or skips the action (or sequence of actions) if the condition is false. The If...Then statement is called a single-selection statement because it selects or ignores a single action (or a sequence of actions).
• The If ... Then ... Else selection statement performs an action (or sequence of actions) if a condition is true, and performs a different action (or sequence of actions) if the condition is false. The If...Then...Else statement is called a double-selection statement because it selects between two different actions (or sequences of actions).
• The Select...Case selection statement performs one of many possible actions (or sequences of actions), depending on the value of an expression. For this reason, the Select...Casestatement is called a multiple-selection statement. Repetition Statements Visual Basic provides seven types of repetition statements (also called looping statements or loops) that enable programs to perform statements repeatedly based on the value of a condition.
•The Do While...Loop and While...End While repetition statements execute a set of statements while a condition—known as the loop-continuation condition—remains true. If the condition is initially false, the set of statements does not execute.
•The Do Until...Loop repetition statement executes a set of statements until a condition—known as the loop-termination condition—becomes true. If the condition is initially true, the set of statements does not execute.
•The Do...Loop While repetition statement executes a set of statements while its loop-continuation condition remains true. The set of statements is guaranteed to execute at least once.
•The Do...Loop Until repetition statement executes a set of statements until its loop-termination condition becomes true. The set of statements is guaranteed to execute at least once.
•The For...Next repetition statement executes a set of statements a specified number of times—this is known as counter-controlled (or definite) repetition.
•The For Each...Next repetition statement (introduced in Chapter 7) performs a set of statements for every element of a so-called array or collection of values.
The words If, Then, Else, End, Select, Case, While, Do, Until, Loop, For, Next and Each are all keywords. By providing many repetition statements, the designers of Visual Basic make it more convenient for you to express certain types of algorithms. Theoretically, however, you need only one repetition statement that enables you to loop zero or more times based on the truth or falsity of a condition—both Do While...Loop and While...End While allow you to do this. In this book, we typically use the Do While...Loop, For...Next and For Each... Next repetition statements. Methods of Visual Basic 2010 Extract Method One of the best ways to start refactoring a long method is to break it up into several smaller methods. The Extract Method refactoring action is invoked by selecting the region of code you want moved out of the original method and selecting Extract Method from the context menu. In C#, this will prompt you to enter a new method name, as shown in Figure 8-11. If there are variables within the block of code to be extracted that were used earlier in the original method, they automatically appear as variables in the method signature. Once the name has been confirmed, the new method is created immediately after the original method. A call to the new method replaces the extracted code block. Encapsulate Field Another common task when refactoring is to encapsulate an existing class variable with a property. This is what the Encapsulate Field refactoring action does. To invoke this action, select the variable you want to encapsulate and then choose the appropriate refactoring action from the context menu. This gives you the opportunity to name the property and elect where to search for references to the variable, as shown in Figure 8-14. The Encapsulate Field refactoring action using CodeRush Xpress works in a similar way, except that it automatically assigns the name of the property based on the name of the class variable. The interface for updating references is also different, as shown in Figure 8-16. Instead of a modal dialog, CodeRush Xpress presents a visual aid that can be used to navigate through the references (or you can navigate between references using the Tab key). Where a replacement is required, click the check mark or press Enter. Unlike the C# dialog box, in which the checkboxes can be checked and unchecked as many times as needed, once you accept a replacement there is no way to undo this action. Extract Interface As a project goes from prototype or early-stage development to a full implementation or growth phase, it’s often necessary to extract the core methods for a class into an interface to enable other implementations or to define a boundary between disjointed systems. In the past you could do this by copying the entire method to a new file and removing the method contents so you were just left with the interface stub. The Extract Interface refactoring action enables you to extract an interface based on any number of methods within a class. When this refactoring action is invoked on a class, the dialog in Figure 8-17 is displayed, which enables you to select which methods are included in the interface. Once selected, those methods are added to the new interface. The new interface is also added to the original class. Rename Visual Studio 2010 provides rename support in both C# and VB. The Rename dialog for C# is shown in Figure 8-22; it is similar in VB although it doesn’t have the options to search in comments or strings.
Unlike the C# rename support, which displays the preview window so you can confirm your changes, the rename capability in VB simply renames all references to that variable. Promote Variable
Parameter One of the most common refactoring techniques is to adapt an existing method to accept an additional parameter. Promoting a method variable to a parameter makes the method more generic. It also promotes code reuse. Intuitively, this operation would introduce compile errors wherever the method was referenced. However, the catch is that the variable you are promoting to a parameter must have an initial constant value. This value is added as a parameter value to all the method references to prevent any changes to functionality. Starting with the following snippet, if the method variable output is promoted, you end up with the second snippet: Generate Method Stub As you write code, you may realize that you need to call a method that you haven’t written yet. For example, the following snippet illustrates a new method that you need to generate at some later stage. IDE parts and Functions of Visual Basic 2010 File Menu The File menu contains commands for opening and saving projects or project items, as well as commands for adding new or existing items to the current project. For the time being, use the New > Project command to create a new project, Open Project/Solution to open an existing project or solution, Save All to save all components of the current project, and the Recent Projects submenu to open one of the recent projects. Edit Menu The Edit menu contains the usual editing commands. Among these commands are the Advanced command and the IntelliSense command. Both commands lead to submenus, which are discussed next. Note that these two items are visible only when you’re editing your code, and are invisible while you’re designing a form. View Menu This menu contains commands to display any toolbar or window of the IDE. You have already seen the Toolbars menu. The Other Windows command leads to a submenu with the names of some standard windows, including the Output and Command windows. The Output window is the console of the application. The compiler’s messages, for example, are displayed in the Output window. The Command window allows you to enter and execute statements. When you debug an application, you can stop it and enter VB statements in the Command window. Project Menu This menu contains commands for adding items to the current project (an item can be a form, a file, a component, or even another project). The last option in this menu is the Project Properties command, which opens the project’s Properties Pages. The Add Reference and Add Web Reference commands allow you to add references to .NET components and web components, respectively. Build Menu The Build menu contains commands for building (compiling) your project. The two basic commands in this menu are Build and Rebuild All. The Build command compiles (builds the executable) of the entire solution, but it doesn’t compile any components of the project that haven’t changed since the last build. The Rebuild All command does the same, but it clears any existing files and builds the solution from scratch. Debug Menu This menu contains commands to start or end an application, as well as the basic debugging tools. The basic commands of this menu are discussed briefly in Chapter "GUI Design and Event-Driven Programming in Visual Basic 2008" and in the section "Debugging and Error Handling in VB 2008". Data Menu This menu contains commands you will use with projects that access data. You’ll see how to use this short menu’s commands in the discussion of the visual database tools in Chapters 21 and 22 of the tutorial. Format Menu The Format menu, which is visible only while you design a Windows or web form, contains commands for aligning the controls on the form. The commands of this menu are discussed in Chapter "GUI Design and Event-Driven Programming in VB". The Format menu is invisible when you work in the code editor — its commands apply to the visible elements of the interface. Tools Menu This menu contains a list of useful tools, such as the Macros command, which leads to a submenu with commands for creating macros. Just as you can create macros in a Microsoft Office application to simplify many tasks, you can create macros to automate many of the repetitive tasks you perform in the IDE. The last command in this menu, the Options command, leads to the Options dialog box, in which you can fully customize the environment. The Choose Toolbox Items command opens a dialog box that enables you to add more controls to the Toolbox. In Chapter, ‘‘Building Custom Windows Controls in Visual Basic 2008’’ you’ll learn how to design custom controls and add them to the Toolbox. Window Menu This is the typical Window menu of any Windows application. In addition to the list of open windows, it also contains the Hide command, which hides all toolboxes, leaving the entire window of the IDE devoted to the code editor or the Form Designer. The toolboxes don’t disappear completely; they’re all retracted, and you can see their tabs on the left and right edges of the IDE window. To expand a toolbox, just hover the mouse pointer over the corresponding tab. Help Menu This menu contains the various help options. The Dynamic Help command opens the Dynamic Help window, which is populated with topics that apply to the current operation. The Index command opens the Index window, in which you can enter a topic and get help on the specific topic.
Full transcript