Content deleted Content added
No edit summary |
m remove arbitrary fixed sizes |
||
Line 5:
| name = Visual Basic
| logo = VB.NET Logo.svg
| year = {{Start date and age|2001}}
| designer = [[Microsoft]]
Line 37 ⟶ 36:
The Windows Forms library is most commonly used to create GUI interfaces in Visual Basic. All visual elements in the Windows Forms class library derive from the Control class. This provides the minimal functionality of a user interface element such as ___location, size, color, font, text, as well as common events like click and drag/drop. The Control class also has docking support to let a control rearrange its position under its parent.
Forms are typically designed in the [[Visual Studio]] [[Integrated development environment|IDE]]. In Visual Studio, forms are created using [[drag-and-drop]] techniques. A tool is used to place controls (e.g., text boxes, buttons, etc.) on the form (window). Controls have [[Attribute (computing)|attributes]] and [[
== Syntax ==
Line 263 ⟶ 262:
{{Update section|date=June 2022|reason=give update about Visual Studio 2022 release}}
Succeeding [[Visual Basic (classic)|the classic Visual Basic]] version 6.0, the first version of Visual Basic .NET debuted in 2002. {{as of|2020|3 = }}, ten versions of Visual Basic .NET are released.
=== 2002 (VB 7.0) ===
The first version, Visual Basic .NET, relies on [[.NET Framework version history#.NET Framework 1.0|.NET Framework 1.0]]. The most important feature is [[managed code]], which contrasts with the classic Visual Basic.
Line 273:
For this release, Microsoft added many features intended to reinforce Visual Basic .NET's focus as a [[rapid application development]] platform and further differentiate it from [[C Sharp (programming language)|C#]]., including:
* ''Edit and Continue'' feature{{
* Design-time expression evaluation{{
* A pseudo-[[namespace]] called "My", which provides:<ref>{{cite web|url = http://msdn.microsoft.com/en-us/magazine/cc163680.aspx|title = Navigate The .NET Framework And Your Projects With The My Namespace|website = MSDN Magazine Visual Studio 2005 Guided Tour 2006|publisher = [[Microsoft]]|first = Duncan|last = Mackenzie|year = 2006|access-date = February 6, 2014|archive-date = February 15, 2014|archive-url = https://web.archive.org/web/20140215053141/http://msdn.microsoft.com/en-us/magazine/cc163680.aspx|url-status = live}}</ref><ref>{{cite web|url = http://msdn.microsoft.com/en-us/library/ms379610.aspx|title = My.Internals: Examining the Visual Basic My Feature|first = Tyler|last = Whitney|date = November 2005|website = [[MSDN]]|publisher = [[Microsoft]]|access-date = February 6, 2014|archive-date = June 14, 2012|archive-url = https://web.archive.org/web/20120614025325/http://msdn.microsoft.com/en-us/library/ms379610.aspx|url-status = live}}</ref>
** Easy access to certain areas of the .NET Framework that otherwise require significant code to access like using <syntaxhighlight lang="vbnet" inline>My.Form2.Text = " MainForm "</syntaxhighlight> rather than <syntaxhighlight lang="vbnet" inline>System.WindowsApplication1.Forms.Form2.text = " MainForm "</syntaxhighlight>
Line 326:
=== 2012 (VB 11.0) ===
Visual Basic 2012 was released alongside [[.NET Framework 4.5]]. Major features introduced in this version include:{{
* [[Asynchronous programming]] with "async" and "await" statements
* Iterators
|