Course Learning Outcome (CLO)

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

3/14/2012

F5227VISUALBASIC.NET PROGRAMMING

CourseLearningOutcome(CLO)
Upon completion of this course, students should be able to : 1. Create a simpe VB.NET based application based on the Windows Application template. 2. Describe on essential terminology including memory, data types and graphical user interface interface. 3. Apply object oriented programming techniques to create classes, add methods and add properties. 4. create a simple VB.NET based Web forms application that uses an XML Web Service and manipulate data in database by using Microsoft ADO.NET.

Topic1.0 Introductionto.NETTechnology 1.1.1 Explainthe.NETFramework

CourseLearningOutcome:
Topic1.0 Describeonessentialterminologyincluding memory,datatypesandgraphicaluser interface.

Introduction
ThenextgenerationofVisualBasic,Visual Basic.NETisdesignedtobetheeasiestand mostproductivetoolforcreating.NET applications,includingWindowsapplications, applications including Windows applications WebServices,andWebapplications.

VisualBasic.NETalsoallowsoptionaluseof newlanguagefeatures.Inheritance,method overloading,structuredexceptionhandling, andfreethreadingallmakeVisualBasica and free threading all make Visual Basic a powerfulobjectorientedprogramming language,whileprovidingthetraditionalease ofuseofVisualBasicdevelopment,.

VisualBasic.NETfullyintegrateswiththe CommonLanguageRuntime(CLR)andthe .NETFramework,whichtogetherprovide languageinteroperability,simplified language interoperability simplified deployment,enhancedsecurity,andimproved versioningsupport.

3/14/2012

DifferencebetweenVBand VB.NET
VisualBasic.NETalsoallowsoptionaluseof newlanguagefeatures. Inheritance,methodoverloading,structured exceptionhandling,andfreethreadingall exception handling and free threading all makeVisualBasicapowerfulobjectoriented programminglanguage,whileprovidingthe traditionaleaseofuseofVisualBasic development,. VB.NETiswhatitgottransformedintounder theMicrosoft.NETframeworkandVBisan obsoletelanguage However,VB.NET,C++.NETandC#allcompile intothesame.NETcode inacertainsenseit isalmostliketheyarethesamelanguage.

DifferencebetweenVBand VB.NET
ThegreatestchangeinVB.NETandVB6isofruntime environment. VB6usedtheVBRuntimewhilerunningtheprogrambut VB.NETusesthe.NetCommonLanguageRuntime(.NetCLR). In comparision to VB Runtime the CLR is much better IncomparisiontoVBRuntime,theCLRismuchbetter designedandimplemented.VBRuntimeinterpretsthecode whiletheCLRusesbettercodetranslationthroughJustin Timecompiler.IncomparisiontoVB6,theCLRGarbage Collectorisalsomoreefficientoneasitmaydetectcyclic referencestoo.

DifferencebetweenVBand VB.NET
VB6wasinterpreterbasedlanguagewhile VB.NETisacompiledlanguageandtheVB6 wasnotatypesafelanguagewhileVB.NETis atypesafelanguage. a type safe language Thereisnonomagicaltypeconversionsin VB.NETandvarianttypehappeninVB.NET

DifferencebetweenVBand VB.NET
VB6usedOnErrorGotosyntaxtohandle exceptionsatruntime.VB.NETusesthe Try..Catch.Atruntime,finallysyntaxisusedto handleexceptions. handle exceptions InVB6,alotofcode(likeuserinterfacecode) washiddenfromdeveloper.InVB.NETno codeishiddenfromdeveloperandyoucan accessandcontroleachpartofyour application
VB.NEThasmuchenhancedobjectorientedsupport thanVB6 VB6doesnotallowdevelopingthemultithreaded applicationsbutinVB.NETyoucancreate multithreadedapplications. VB6wasonlyconsideredgoodfordesktopwindows applicationbutinVB.NETyoucanalsodevelopweb applications,distributedapplications,create.NET windowsandwebcontrolsandcomponents,write windowsandwebservices.

3/14/2012

InVB.NET,toreadthemetadataof types,reflectionsisusedandusingreflectionemit youcanalsogeneratecodetoinvokeanddefine yp typesatruntime. VB.NETuses.NETframeworkclasslibraryalong withspecializedVBlibrary(System.VisualBasic)as astandardlibraryandsothatthestandardlibrary forVB.NETismuchenhancedanduseful comparedtoVB6standardlibrary

VB.NETisplatformindependentbecauseof .Netframeworkandprogramswrittenin VB.NETcanrunonanyplatformwhere.Net frameworkispresent. framework is present Theplatformincludebothsoftware(operating system)andhardwareplatforms.

VB.NETalsosupportslanguage interoperabilitywithvarious.NETcompliant languagesandthismeansthatyoucanuse andenhancethecodewritteninother.NET and enhance the code written in other NET compliantlanguages.

SimilarlythecodewritteninVB.NETcanalso beusedandenhancedbyother.NET compliantlanguages. Although VB6 also provided this functionality AlthoughVB6alsoprovidedthisfunctionality throughCOMbutitwaslimitedanddifficult touseandmanage.VB.Netmakesiteasier becauseofthepresenceofIntermediate Language(IL)andCommonLanguage Specification(CLS)ofthe.NETarchitecture.

VB6usesCOM(ComponentObjectModel)as componentarchitecturewhereasVB.NET usesassembliesasitscomponentarchitecture andtheAssembliesarchitecturehasremoved and the Assemblies architecture has removed alotofproblemswithCOMincludingDLLHell andversioningproblem.

ComponentscreatedinVB6(COM)needto updateandmakeregistryentries. VB.NETdoesnotrequireanyregistryentry whicmakesthedeploymenteasier whic makes the deployment easier

3/14/2012

AdvantagesofUsingVB.NET
VB6usedASPtobuildwebapplicationswhere asVB.NETusesASP.NETtobuildweb applications. VB6 used record sets and ADODB to VB6usedrecordsetsandADODBto implementdataaccessapplicationswhereas VB.NETusesADO.NETanddatasetstobuild dataaccessapplications. AndalsotheADO.NETalsosupportsthe disconnecteddataaccess. ProblemsSolvedeffectivelyandeasily. BuildRobustWindowsbasedApplications. ResolveDeploymentandVersioningIssues Seamlessly. S l l XCOPYdeployment CreateWebApplicationswithaZeroLearning Curve

You might also like