Visual Basic.NET Control Naming Summary Prefix btn chk clst cldlg cbo cmnu crv dgrd dpkr dud erp fndlg grp Visual Basic type Button Checkbox Checked Listbox Color Dialog ComboBox ContectMenu Crystal Report Viewer Datagrid DateTime Picker DomainUpDown Error Provider Font Dialog GroupBox Visual Basic.NET Control Naming Summary Prefix Visual Basic type hlpp HelpProvider Continued … hsb Horizontal Scrollbar imgl ImageList lbl Label llbl Link Label lst Listbox lvw Listview mnu Menu cal MonthCalendar nicn Notify Icon nud Numeric Up Down ofdlg Open File Dialog pstp Page Setup Dialog pnl Panel pic Picturebox Visual Basic.NET Control Naming Summary Prefix Visual Basic type prdlg Print Dialog pdoc Print Document Continued … ppctl Print Preview Control ppdlg Print Preview Dialog pbr ProgressBar rad Radio Button rtx RichTextBox sfdlg Save File Dialog splt Splitter stbr StatusBar tab Tabcontrol txt Textbox tmr Timer tlbr ToolBar ttp ToolTip tbr TrackBar tvw Treeview Overview of VB.NET • .NET is a new platform for building distributed applications – Focus on Web Integration – CLR – Common Language Runtime Starting VB.NET • First Time – “My Profile” will be displayed • Successive Times “Get Started” tab will be selected • Open Project – From “My Projects” Directory • New Projects Other Tabs on Start Page • • • • • What’s New – VB6 to .Net Help Online Community – Newsgroups Headlines – Latest MSDN News and Info Search Online – Search MSDN Downloads – Add-ons, Service Packs and product Upgrades • XML Web Services – Available external sources Other IDE Sections • Solution Explorer (Ctrl+R) • Toolbox (controls or text) available for project. • Server Explorer – work with server resources. • Properties Window – View or modify the properties of a selected object Other IDE Sections • Dynamic Help – Help topics related to current object. • Output – Displays information about current IDE operation when compiling. • Debug – Used to view the value of watch variable. List of Objectives: Let’s Get Started: • Create an application using VB.NET • Start getting familiar with all of the various functions in the IDE. • Use the Code Editor and Object Browser. .NET Categorization • Application – a software program that runs (executes) on a computer. • Project – a set of files (e.g. VB.NET source code, graphic files, Icon files) that are used to build an Application. • Namespace - Namespaces organize the objects defined in an assembly • • • • • Assemblies For a .Net application assemblies form the fundamental unit of – Deployment – Version control – Reuse – Activation scoping – Security permission Assemblies take the form of – an executable (.exe) file or – a dynamic link library (.dll) file Assemblies provide the common language runtime with the information it needs to be aware of type implementations. Assemblies are different from .exe or .dll files because they contain all the information you would find in a type library, plus information about everything else necessary to use the application or component. They are similar to Project References in VB6. First Application lblCost txtCost lblQty txtQty lblTotal txtTotal btnCalc Total = Qty. * Cost HELP!!!! • How do I get Help? – F1 will get display context sensitive help for the currently selected object/word. – Select Help from the menu – Call your instructor at 1:00 a.m. Initial Form Code • You now have access to all of the code used to create a Windows form (in the Windows Form Designer generated code section). • *** DON’T Mess around with it! *** Initial Form Code • Each Class, Subroutine or Region (an area you define using #Region Name / # End Region) has collapsers and expanders. Microsoft Development Environment Integrated Development Environment or IDE VB 6 programmer -- VB.NET Best to think of VB.NET as NEW language with familiar syntax .NET Framework Classes Changes affect almost every aspect of .NET Creating & working with forms & controls arrays - string - etc…. How VB application is compiled and run .NET Framework Visual Studio .NET Integrated Development Environment 1 Visual Basic Compiler Common Language Runtime 2 Solution Project Source Files 3 Assembly Intermediate Lang. IL Class references