1 / 20

VB.NET

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

guido
Télécharger la présentation

VB.NET

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. VB.NET

  2. 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

  3. 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 …

  4. 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 …

  5. VB.NET Overview of VB.NET • .NET is a new platform for building distributed applications • Focus on Web Integration • CLR – Common Language Runtime

  6. 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

  7. VB.NET

  8. 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

  9. 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

  10. 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.

  11. 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.

  12. 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

  13. 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.

  14. VB.NET First Application txtCost lblCost txtQty lblQty txtTotal lblTotal btnCalc

  15. 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.

  16. 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! ***

  17. VB.NET Initial Form Code • Each Class, Subroutine or Region (an area you define using #Region Name / # End Region) has collapsers and expanders.

  18. 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….

  19. 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

  20. VB.NET

More Related