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.

45,046 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
15votes
0answers
4kviews

Could Not Load Type Microsoft.VisualBasic.Information

I am building .Net Core 2.0 web application that imports a .Net Framework 4.6.1 project class library. The solution builds properly, however, when reaching the below functionality, I receive the below ...
user avatar
  • 1,089
14votes
2answers
335views

Referencing SQLiteCommand class not valid when embedding interop type

I'm distributing System.Data.Sqlite.dll which I integrated into my project using NUGET. I'm releasing my application as x86. If I simply distribute System.Data.Sqlite.dll to my application folder, ...
user avatar
  • 9,063
12votes
0answers
568views

Any way to add custom code activities to VS toolbox for any workflow project?

What I would like to achieve is to have 2 tabs with custom code activities added automatically to the toolbox every time a new activity is created in any (workflow) project. Ideally this should be ...
user avatar
  • 129
10votes
1answer
1kviews

Export VB.NET Charting.Chart in Excel.Chart

Suppose I have a Charting.Chart: that I would like to export to an Excel.Workbook.Worksheet so that I can "play" with the data later (for example drag-and-dropping more data on the Excel chart etc.): ...
user avatar
10votes
1answer
229views

Alias Generic Type With ASP.Net Import Directive in VB.Net Page

I can't seem to import a generic type on an ASP.Net page set to a language of "vb": <%@ Page Language="vb" %> <%-- This works fine. --%> <%@ Import Namespace="MyString=System.String" %&...
user avatar
8votes
2answers
818views

RadAjaxManager AJAX Request Fails Roughly 10% of the time

I have a web application which uses a RadAjaxManager to populate RadComboBox controls as a user makes selections on one of my pages. This works correctly most of the time however roughly 10% of the ...
user avatar
7votes
0answers
180views

1 bit in double value changes between x86 Debug and Release build

In some numerical code I noticed that a debug and release build when compiled for x86 or with AnyCPU+"Prefer 32-bit" gave different results. I have broken my code down to pretty much the bare minimum ...
user avatar
  • 6,095
7votes
0answers
304views

Code Analysis CA0055 when target exists

I am trying to run Code Analysis for the first time against a number of different solutions we have. Each time I get a CA0055 error ("Could not load target") despite the fact that the target file ...
user avatar
  • 964
7votes
1answer
362views

Slow Paypal NVP API

I'm trying to interface my app to paypal account using NVP API. All works fine but I find the paypal response time veeery slow, almost unusable. If I query the last 100 transaction using the method "...
user avatar
  • 81
7votes
1answer
288views

RichTextBox.DetectUrls working intermittently

Environment: WinForms, .Net 4.5.1, VB.net, VS 2013 When loading plain text into a RichTextBox, it does not consistently detect the Urls in the plain text. I have set RichTextBox.DetectUrls but I am ...
user avatar
  • 1,103
7votes
0answers
8kviews

Why does systemprofile need Desktop folder to open excel file

We were unable to open an Excel Workbook with ASP.net before creating a folder named "Desktop" in the systemprofile Folder. The solution was to create a folder named "Desktop" in C:...
user avatar
  • 1,326
7votes
2answers
6kviews

Google OAuth Token error - 400 Bad Request

I'm trying to authenticate my application using OAuth2 and using the 'installed applications' flow (get auth-code and then request token). I'm getting a 400 bad request error when requesting the token ...
user avatar
7votes
3answers
3kviews

ASP.NET 3.5 Website missing namespaces in VS 2012

I have an issue that is very similar to this question: ASP.NET 3.5 Web Site stopped importing System namespace by default I have an ASP.NET 3.5 Website (not application) project in VB.NET that ...
user avatar
  • 592
7votes
1answer
7kviews

Missing request.CreateResponse in vb.net Webapi Projects

I seem to have tracked down the problem but do not know how to fix it, or if I can. When I create a new C# WebAPI project, and add an import for System.Net.Http I can access Request.CreateResponse<...
user avatar
  • 516
7votes
1answer
729views

How to Call VSTS Coded Ui Scripts to QTP?

I am trying to execute my Coded UI Scripts on QTP. First I created a dll for my Coded UI Project later I am able to access the methods from that dll but i am not able to access Coded UI testing ...
user avatar
  • 71
6votes
0answers
495views

Removing links from a PDF using iSharpText not all links removed

From what I have found online and read in other questions similar, the way to remove links to not write them out in the annotations, basically replacing the annotations that contain links with an ...
user avatar
  • 2,382
6votes
0answers
1kviews

Generate BIOS Manufacturer HWID (a GUID from SHA-1) exactly as Microsoft does

SCENARIO I would like to learn, in C# or VB.NET, how to generate a Hardware Id. based on the same methodology Microsoft developers does for that. First of all before continue I must advertise this ...
user avatar
6votes
0answers
720views

Format Document on View inserts "ExternalSource" Directive

I have an issue I've recently noticed in visual studio (2015 Enterprise) where when I'm working on a View and I format a document using the "Format Document" functionality either through the keyboard ...
user avatar
  • 387
6votes
0answers
2kviews

Calling .NET library function from Python

I am almost at the end of my wits here and am hoping you all could help me figure this one out. I am running Anaconda Python 3.5 64 bit and compiled Python.NET anaconda package to add .NET ...
user avatar
  • 157
6votes
1answer
1kviews

Does VSCode have built-in support or extensions available for VB.NET?

I'm running Ubuntu 17.04 and learning VB. I cannot find any extensions for VB.NET. Is there an extension or would a Windows VM be a better option?
user avatar
  • 69
6votes
1answer
277views

See POST Multipart Form Data Request

I'm trying to submit a multipart form through a C# and a VB.NET console application, but how do I see what it actually looks like? I've seen on some forums that you can see what it looks like through ...
user avatar
  • 1,779
6votes
0answers
1kviews

There were no HTTP Requests logged for this event

I am using the latest Twilio .NET SDK (5.0.2) in a VB.NET application. I am initiating a message via the REST Client that gets sent using a Messaging Service. In the Messaging Service I have "http://...
user avatar
6votes
2answers
771views

Catch the closing event of the chrome browser using chrome driver

I am doing the automation in an application for some web pages in the vb.net using the chrome driver. During the application operation here is a chance that chrome may close before completion of ...
user avatar
6votes
1answer
123views

Why are my LocalCopy dll's not localcopied from a reference project in a reference project?

I have the following situation: Solution with - Project 1: Web_Application (VB.NET Web Application) - Project 2: Code_Library (VB.NET DLL, Referenced in Project 1, References My_Reports, My_SQL) - ...
user avatar
6votes
2answers
647views

Is it possible to use an embbeded control in Excel to preview video feed from webcam using DirectShow?

There are a quite a few of sources to get a video stream from webcam into a picturebox embedded in a userform. Preview a camera in DirectShow and capture a still image - in VB.net How do i use ...
user avatar
6votes
1answer
697views

Where is the "Go To Type Definition" context menu item?

There used to be a handy little context menu item "Go To Type Definition". When I would right-click on a variable, for instance, I could use this to go to its type definition instead of the variable ...
user avatar
  • 32.2k
6votes
1answer
698views

Graphics.Clear() inside of OnPaint() occasionally causes generic GDI+ error

I'm working on an application where the Client experiences an issue every couple months (they are able to work around the issue by restarting the application). The stack trace always points to the ...
user avatar
  • 1,687
6votes
0answers
798views

OutOfMemoryException in Assembly.LoadFile

I'm quite stumped on this one. Sometimes, when I call Reflection.Assembly.LoadFile("path to my dll") it will throw an OutOfMemoryException. The StackTrace just shows: at System.Reflection....
user avatar
  • 2,023
6votes
2answers
2kviews

Web Service Adding extra forward slash in SOAPAction

I am using SoapUI to test a .Net Web Service that will be consumed by a Java client application. When I hook up my Web Service to SoapUI but updating the WSDL location and call one of the preset ...
user avatar
  • 819
6votes
1answer
1kviews

linq query cause System.AccessViolationException

I have a strange exception executing a simple linq query, the query is expressed in VB.NET (sorry..). The exception is, as the title says: "System.AccessViolationException", the full ...
user avatar
  • 1,919
6votes
3answers
7kviews

Gradient fill in VB.NET

Why in the world would the following simple code fail? This code always fills the path with the gradient from left to right, no matter which value of LinearGradientMode I use. graphPath is a ...
user avatar
  • 30.8k
6votes
4answers
7kviews

The microsoft jet database cannot open the file '...' It is already opened exclusively by another user or you need permission to view its data

I have a WinForms application that I have taken over support for and it was build using Visual Studio 2005 with VB.Net. The application makes use of an Access database. It runs fine when it is ...
user avatar
  • 6,584
6votes
1answer
1kviews

Windows printer spooler setjob function not working for Windows-7?

I am updating our "Printer Monitoring" application. Previously this application runs successfully on Windows 2000 server. Now we shifted to Windows 7 server. On windows 7 our "Print monitor" ...
user avatar
6votes
0answers
12kviews

Check if a string is UTF-8

Is it possible? I want to check if a string is utf-8 encoded. UPDATE: So, the problem is: I have a php webservice. This webservice has a method that receives a string. I'm trying to pass a VB.NET ...
user avatar
  • 85
6votes
1answer
333views

WCF data restrictions

Is there still no way to inform the consuming client of data restrictions? This question is definitely a duplicate of others that were never answered or are at least 5 years old with no viable ...
user avatar
  • 1,228
6votes
5answers
27kviews

Set the focus to a HTML Textbox or Button in a WebBroswer control

I am opening a website in a WebBrowser control using VB.NET 2008. On the fourth page of the website, I want to focus the control by triggering the tab key programmatically. I am using the following ...
user avatar
6votes
4answers
3kviews

DataGridView resizeable columns, but last column can't be resized bigger?

For c = 0 To grd.Columns.Count - 1 grd.Columns(c).Resizable = DataGridViewTriState.True Next c That allows all the columns in my DataGridView to be resizable EXCEPT the last column. Why? I DO ...
user avatar
  • 161
5votes
1answer
332views

IIS Classic Mode .NET Web API Call returns 404 Error

I have a pre-existing VB.NET web application running on IIS 8 in Windows Server 2012 R2. The application needs to handle a new API call (ex. localhost/test/ping) which I implemented using the ...
user avatar
  • 83
5votes
3answers
288views

Auto increment isn't correct when running two instances

I have 2 Instances of the below code running, which connects to System.Data.SQLite database. When I insert a row into the database using any one instance, the auto incremented value (ID) is not proper ...
user avatar
5votes
0answers
253views

Reading TCP/IP datastream with Westhold's Race Manager software

I am working on an application that uploads timing results of an auto race to an online website. Currently, it uses XML files. There is also a data stream option where what's called an RMonitor ...
user avatar
5votes
0answers
175views

How to solve EnterpriseLibraryCoreExtension issue while upgrade enterprise library version 5.0 to 6.0?

I'm getting the EnterpriseLibraryCoreExtension is not defined error while upgrade Enterprise library version 5.0 to 6.0. Code: container.AddNewExtension(Of EnterpriseLibraryCoreExtension) When I ...
user avatar
5votes
1answer
629views

VB6 COM+ calling .Net COM DLL

Happy 20th Birthday VB6! Yes, VB6 is still alive even though support ran out 13 years ago. Feel free to razz me but please also provide any insight you might have on this issue. I have a VB6 EXE on a ...
user avatar
  • 1,442
5votes
1answer
623views

Call Slack API in vb.NET with a proxy

Trying to call a Slack API through an app in vb.NET behind a proxy. However, I don't have an expertise in .NET, so it's somehow out of my league. This is the part of the code: Private Function ...
user avatar
  • 6,783
5votes
1answer
926views

VLC with VB NET: How to rotate stream/video 180°? (Tools-Effects-Geometry-Zoom-Transform)

I'm working with "AxVLCPlugin21" Through VB.Net and I can do the basic stuff like play, pause, etc. But now I want to rotate a video 180° but i cant find info about this, can you help me with a ...
user avatar
5votes
0answers
209views

Efficient bit field extraction from bytes array being interpreted as a bitstream, possibly using Intel's BMI Set 1

In order to extract bit fields from a bytes array being interpreted as a bitstream, I am aiming to device an efficient bit field extraction function, optimized for Intel's modern CPUs (ideally making ...
user avatar
  • 1,313
5votes
1answer
953views

Access elements inside html <embed> tag source html using VB.Net

I’m using SHDocVw.InternetExplorer APIs in my Vb.Net WinForms application to fetch elements from Internet Explorer. I can easily access the elements inside parent document and frame elements but I am ...
user avatar
  • 3,007
5votes
1answer
207views

Lock convoys in ASP.NET website

TL;DR: Made refactoring for performance, website got slower. Ran the Concurrency Visualizer, the graph looks like the lock convoys as described on MSDN. Context I’m helping with refactoring an ASP....
user avatar
  • 375
5votes
0answers
2kviews

What are the .cache files in Visual Studio?

I'm working in Visual Studio and am seeing all these binary files with .cache extensions. For example, XXXGenerateResource.Cache, DesignTimeResolveAssemblyReferencesInput.cache etc. Can anyone ...
user avatar
  • 133
5votes
0answers
198views

Visual Studio 2015 - First Event Handler Stops Event?

I'm working on a project which has currently migrated to Visual Studio 2015. I've just encountered a problem I so far have no idea what to do with. In a chain of inherited classes, looking like this: ...
user avatar
  • 771
5votes
0answers
70views

Force Visual Studio to show items in item group at any time in vbproj

In a C# project (csproj), you can expand an item group (for example a form), regardless of the "Show All Files" setting: On the other hand, in a VB.NET project(vbproj), you can only expand an item ...
user avatar
  • 4,513

15 30 50 per page
1
2 3 4 5
901