250 likes | 895 Views
VB.NET. VB.NET. Visual Basic.NET Control Naming Summary. Prefix Visual Basic type. btn Button chk Checkbox clst Checked Listbox cldlg Color Dialog cbo ComboBox cmnu ContectMenu crv Crystal Report Viewer dgrd Datagrid dpkr DateTime Picker dud DomainUpDown
E N D
VB.NET Visual Basic.NET Control Naming Summary PrefixVisual Basic type btn Button chk Checkbox clst Checked Listbox cldlg Color Dialog cbo ComboBox cmnu ContectMenu crv Crystal Report Viewer dgrd Datagrid dpkr DateTime Picker dud DomainUpDown erp Error Provider fndlg Font Dialog grp GroupBox
VB.NET Visual Basic.NET Control Naming Summary PrefixVisual Basic type hlpp HelpProvider 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 Continued …
Visual Basic.NET Control Naming Summary VB.NET PrefixVisual Basic type prdlg Print Dialog pdoc Print Document 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 Continued …
VB.NET Overview of VB.NET • .NET is a new platform for building distributed applications • Focus on Web Integration • CLR – Common Language Runtime
VB.NET 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
VB.NET 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
VB.NET 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
VB.NET 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.
VB.NET 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.
VB.NET .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
VB.NET 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.
VB.NET First Application txtCost lblCost txtQty lblQty txtTotal lblTotal btnCalc
VB.NET 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.
VB.NET 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! ***
VB.NET Initial Form Code • Each Class, Subroutine or Region (an area you define using #Region Name / # End Region) has collapsers and expanders.
VB.NET 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….
VB.NET How VB application is compiled and run .NET Framework Visual Studio .NET Common Language Runtime Integrated Development Environment Visual Basic Compiler 1 2 3 Solution Assembly Project Intermediate Lang. IL Source Files Class references