Questions tagged [vb.net]

Visual Basic.NET (VB.NET) is a multi-paradigm, managed, type-safe, object-oriented computer programming language. Along with C# and F#, it is one of the main languages targeting the .NET Framework. VB.NET can be viewed as an evolution of Microsoft's Visual Basic 6 (VB6) but implemented on the Microsoft .NET Framework. DO NOT USE this tag for VB6, VBA or VBScript questions.

Microsoft's Visual Basic .NET (VB.NET) is a multi-paradigm, managed, type-safe, object-oriented computer programming language. Along with C# and F#, it is one of the main languages targeting the .NET Framework. VB.NET can be viewed as an evolution of Microsoft's Visual Basic 6, but implemented on the Microsoft .NET Framework. This is reflected in VB.NET's version numbering, which continues from VB6. Although Microsoft decided to drop the ".NET" portion of the language's name in 2005, it is still often referred to that way in order to distinguish it from its predecessors.

This tag should only be used for questions which relate to .NET versions of VB. It should not be confused with , , or . Although those languages share a similar syntax with VB.NET, they are entirely different technologies.

To date, the following versions of VB.NET have been released:

VB.NET is supported in a wide range of platforms:

Popular VB.NET questions on Stack Overflow

Resources

134281 questions
11
votes
3 answers

Visual Studio 2015 Analyzer threw an exception

After updating from VS 2015 Update 1 RC to VS 2015 Update 1, I keep getting the following error message: Analyzer 'Microsoft.CodeAnalysis.VisualBasic.CodeFixes.SimplifyTypeNames.VisualBasicSimplifyTypeNamesDiagnosticAnalyzer' threw an exception of…
mrc
  • 307
  • 1
  • 4
  • 17
11
votes
2 answers

Upgrading to Office 2016 Reference Error: Microsoft.Office.Interop.Excel

Visual Studio 2015 is giving me an error stating that the "Namespace or type specified in the Imports 'Microsoft.Office.Interop.Excel' doesn't contain any public member or cannot be found." I just started getting this error after upgrading to Office…
Fly Guy
  • 245
  • 1
  • 4
  • 10
11
votes
4 answers

In which namespace is the DelegateCommand in?

I am trying to work out an example from ".NET Domain Driven Design with C#", which contains a code example where you can see declared some attributes of type DelegateCommand. Now, I've tried googling it up, but I can't find its reference anywhere on…
devoured elysium
  • 90,453
  • 117
  • 313
  • 521
11
votes
1 answer

Using List.Exists and Predicates correctly

All I am currently trying implement something along the lines of dim l_stuff as List(of Stuff) dim m_stuff as new Stuff m_stuff.property1 = 1 m_stuff.property2 = "This" if not l_stuff.exists(m_stuff) then l_stuff.add(m_stuff) end if This…
Dean
  • 5,800
  • 11
  • 54
  • 94
11
votes
1 answer

Visual Studio slow down the execution when use conditional break points

Am using a For Loop like following: for (int i = 0; i < 1000; i++) { int mod = i % 1795; //Do some operations here } it works fine, but when i put a break point and apply condition as mod=150 then it slow down the execution.…
sujith karivelil
  • 26,861
  • 6
  • 46
  • 76
11
votes
2 answers

Using a web-proxy service to get the html content of the target url?

In C# or else VB.Net, I need to access to a webpage through a web-proxy service to do a web-scraping on the target url which I am interested to. Let's give as example a random web-proxy service (really no matter which one, I'm open to suggestions)…
ElektroStudios
  • 17,150
  • 31
  • 162
  • 376
11
votes
4 answers

Get MAC Address when network adapter is disabled?

Is there any way i can retrieve MAC Address when Network Adapter is disabled in .net? Thanks in advance,
Ulhas Tuscano
  • 5,224
  • 14
  • 52
  • 85
11
votes
1 answer

Label printer starts printing blank pages in large jobs

I'm running into an extremely strange issue that a user of mine is reporting: A Crystal Reports report is printing blank pages past a certain point. My troubleshooting has sort of narrowed down the culprit, but at the same time, has displayed some…
fbueckert
  • 393
  • 1
  • 5
  • 21
11
votes
3 answers

Is there a lang-vb or lang-basic option for prettify.js from Google?

Visual Basic code does not render correctly with prettify.js from Google. on Stack Overflow: Partial Public Class WebForm1 Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles…
Zack Peterson
  • 53,106
  • 76
  • 203
  • 279
11
votes
2 answers

Dynamically generated Linkbutton does not fire Onclick event VB.Net

I have followed some of the instructions to create a new LinkButton at runtime with an event trigger and add an event handler for the LinkButton generated. I have no idea why the new LinkButton does not trigger the event added to it. Anyone please…
Giri Dharan
  • 161
  • 4
  • 27
11
votes
6 answers

Is there a way to know in VB.NET if a handler has been registered for an event?

In C# I can test for this... public event EventHandler Trigger; protected void OnTrigger(EventArgs e) { if (Trigger != null) Trigger(this, e); } Is there a way to do this in VB.NET? Test for null I mean? MORE INFO I forgot to mention. …
Seth Spearman
  • 6,421
  • 16
  • 57
  • 102
11
votes
2 answers

Access property using its name in vb.net

For example: Sub Test() Dim car as new MyCar car.chassis.wheel.radius = 15 Console.WriteLine(car.chassis.wheel.radius) End Sub So question is. Is it possible to access the property using its string name like…
rqm.yorik
  • 111
  • 1
  • 1
  • 4
11
votes
3 answers

Can I get an Action's return type from an Action Filter?

I have an ASP.NET MVC 2 application in which I am creating a custom action filter. This filter sits on the controllers in the application and verifies from the database whether that function is currently available. Public Overrides Sub…
Nick
  • 3,637
  • 9
  • 42
  • 56
11
votes
2 answers

If, IIf() and If()

I recently asked a question about IIf vs. If and found out that there is another function in VB called If which basically does the same thing as IIf but is a short-circuit. Does this If function perform better than the IIf function? Does the If…
Bryan Roth
  • 9,829
  • 15
  • 43
  • 55
11
votes
3 answers

SNMP for Local printer?

I am searching for a way to Get Information from a local printer. Maybe with the SNMP Protocol? The printer is connected with USB or PPI (parallel port). All printers have a internal TotalPagesCount and support SNMP. Here some examples of the…
Werewolve
  • 2,238
  • 5
  • 22
  • 36