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.

Filter by
Sorted by
Tagged with
-4
votes
1answer
30 views

How to convert ReDim?

I want to translate vb code to C# with code ReDim problem. I use convertor online but can't work for this case. Someone know to to translate it. Private bytIV() As Byte = _ {12, 241,...
0
votes
1answer
22 views

How do I set my picturebox (bullets in my case) on their own axis seperate from my character's movement in VB?

I'm very, VERY, new to coding and started a class in Visual Studio and the language Visual Basic in a .NET windows form app. So on that note, please cut me some slack. I am trying to make a little ...
-1
votes
0answers
11 views

VB create a maze with symbols

I got to the point that is able to set the array of paths and walls however it is not able to setup paths that look like a maze, currently I have no clue of how to refine that; any ideas regarding ...
-1
votes
0answers
13 views

Replace WebBrowser control in VS2019 with Mozilla browser control (v1.7.12)

I have looked at numerous posts that discuss embedding the Mozilla browser control in a VB.NET app, however they were all written many years ago and are incomplete, like: How to create simple browser ...
0
votes
1answer
17 views

System.Data.OleDb.OleDbException: 'Syntax error in INSERT INTO statement.'

I am trying to create a create button in visual basic so the record goes into my database but it get this error: System.Data.OleDb.OleDbException: 'Syntax error in INSERT INTO statement. my code ...
-1
votes
1answer
17 views

Import Visual Basic text inputs into Excel Spreadsheet

So I have the visual basic side of it all covered with the input stuff and dims all written by me and Microsoft.Office.Interop.Excel.Application stuff added from a Microsoft VB reference. The VB has ...
0
votes
1answer
25 views

BufferBlock getting blocked on OutputAvailableAsync

I am new to using TPL. I've been able to implement a simple post / receive transaction on a BufferBlock but when I try to go asynchronous, I get hung. Here is a simplified version of what I am ...
0
votes
0answers
6 views

Add AntiForgeryToken in WebForms VB.NET project that doesn't use Master Pages

I maintain a VB.net webforms application and need to add anti-CSRF measures. I have read that support is provided for projects that utilize master pages, however my project does not use them. How ...
0
votes
1answer
24 views

Invalid conditional compilation constant

Trying to follow this Orleans tutorial in vb.net (not C# as in the tutorial), I have the following error in two projects in the solution: 1>vbc : error BC31030: Conditional compilation constant '; ...
0
votes
2answers
38 views

Search Another Type Text SQL Server VB.Net

I have a problem with search: how do I search our language text from SQL query and which type data I select Dim cmd As New SqlCommand cmd.Connection = cn cmd.CommandText = "SELECT * FROM Table_12 ...
0
votes
0answers
23 views

How do i install the Twilio package in Visual Studio using NuGet manager?

Please help me with the Twilio package installation in Visual Studio. I get the following error message when I try to install through NuGet manager. Attempting to resolve dependency 'JWT (≥ 1.3.4)'....
0
votes
0answers
23 views

Namespace added automatically before public class on entity framework context.vb file after project build

I am working on VB.NET project for the last two years with VS 2017 professional. Its been working fine and I have deployed the project on production without any issue. I have upgraded to VS 2019 ...
-1
votes
1answer
32 views

Is there a way around unwanted reuse of Public Shared variables in VB?

We have a business rule built in VB that uses an MVC layout. We have need of certain variables throughout the different functions/subs at any given moment, so we made a class similar to this: Public ...
0
votes
0answers
31 views

How to using Linq with Dataview?

I am learning linq to dataset from this post: https://docs.microsoft.com/en-us/dotnet/framework/data/adonet/creating-a-dataview-object-linq-to-dataset and I am having trouble when running this code, I ...
-1
votes
0answers
60 views

Setting the text of a label

I have a label on my form that displays and address. I also have a button that opens another form that has a grid of all the addresses associated for that record. When the user selects an address from ...
0
votes
0answers
10 views

Fill treeview by mysql and three column

I'm looking for a way to fill a treeview from mysql database, I found a code that fill treeview using by Dictionary but its work with two column and I have three column in my table it would be grate ...
-1
votes
2answers
29 views

Adding a value into a string on a label vb.net [duplicate]

I'm trying to recall something from my brain from 6 years ago but I can't find it and the standard searches aren't bringing me joy. I have a label like this: Hello, this is my label and the value of ...
0
votes
1answer
43 views

How to change the background color of the dropdown options on mouse over?

I have the following drop down list: <asp:DropDownList ID="ddlSubdivision" AppendDataBoundItems="true" runat="server" Height="30px" Width="450px" AutoPostBack="True" OnSelectedIndexChanged="...
3
votes
1answer
99 views

Where is the Winforms “application framework” in C# that exists in VB.NET?

I've developed VB.NET Winforms projects in the past that use the "Windows Application Framework" settings, which are found on the "Application" tab in the project properties: One particularly useful ...
0
votes
1answer
27 views

How to save the last Position/Value of a trackbar when closing a form?

I have a Form1 that sends a line of text to another open application using AppActivate. This line of text is created from dropdowns and textboxes, and is sent to the other app using sendkeys and ...
0
votes
0answers
46 views

DinoLite BarCode (VB to C#)

I'm trying to use a DINOLITE to read some barcodes, well the SDK example is in VB and it's working well, but now I need to convert this code to C#... Dim BarCodeReturn As Object BarCodeReturn = ...
0
votes
0answers
16 views

“Mailbox size limit exceeded” or “InsufficientStorage” when sending mail on an empty exchange account with MimeKit

I am using MimeKit and Mailkit to send emails from my VB.NET application, through my own SMTP server (run on Windows Server 2016, with SmarterMail). Until then, I was sending emails to [email protected]
-5
votes
0answers
31 views

How to make File Textbox in Visual Basic [closed]

Someone Please Help me Making File Textbox. Example Folder: C:/Users/UnknownUsers/Desktop/ Run EXE: test.exe when i press run, that app will run Please Fast Answer
-1
votes
0answers
24 views

Problem in Opening other forms while Messagebox is opened [closed]

I have a question about using Messagbox in vb.net. In the middle of my code, I use MessageBox.Show in which the user should decide about its yes/no options. In this way, he/she needs to review some ...
0
votes
0answers
30 views

Get browser result and source from VB

First of all, i don't have a real good understanding about web programming. I try to get a html (succeed) source from vb. Here is the preview of the html: As you can see (red arrow) that the list ...
0
votes
0answers
25 views

XmlTextWriter 'Cannot use a prefix with an empty namespace.'

I need to create an XML Node which looks like this: <cac:OrderReference> <someline>abc</someline> </cac:OrderReference> And the solution that I found was to use something ...
0
votes
0answers
28 views

How are the message boxes and runtime error windows localized in VB .NET?

I'm working with VB .NET application and trying to find a working way of localizing dialogue boxes (invoked by InputBox function - localize Cancel button) and any Runtime error notifications. I tried ...
-1
votes
1answer
36 views

How to avoid Memory leak in .NET SSLStream

I have designed an SSL Server in VB.NET. However, when I receive multiple TCP requests (10s per second) to my server, I get a memory leak. Means memory increases every time I receive a request. ...
1
vote
2answers
47 views

Me keyword not able to execute subroutine in derived class due to Shadows

I am having some difficulty understanding how Shadows works when used with Me. The following is the code I wrote: Module Module1 Sub main() Dim c As New Customer() c.UseMe() 'See ...
0
votes
0answers
17 views

populate listbox from an sql query (VBNET) [duplicate]

so basically what I want to do is populate the contents of a listbox with the result of an SQL query but I haven't done this before and so don't know how I can do this. This is what I have so far ...
0
votes
0answers
63 views

How to change form title when you change form language?

I have a vb.net WinForms app and one form (frmUser) in the app is used to set user settings, including the UI language via ComboBox. When I change the language with the ComboBox using the following ...
0
votes
1answer
37 views

How to load correctly my css asp.net Visual Basic

Yesterday I was working on my college project, everything was running smooth so I decided to upload it to github where my partner could access it. Today I opened the local repo and suddenly my CSS ...
-1
votes
1answer
30 views

why do i keep getting this message? [closed]

I'm trying to launch a file made by VB but i keep getting this error I have updated my VB dist and checked but i can't put my finger on the problem I even have re-installed my VB 2013 and relaunched ...
0
votes
0answers
45 views

Exclude folder from being copied

Hi I know how to copy files from one folder to the next, but I've run into a snag when we need to exclude a folder. More specifically the ".svn" folder. I've tried using Not SourceDir.Name = skipDir ...
0
votes
0answers
8 views

How to add Mozilla ActiveX Control v1.7.12 to my vb.net windows form project

I downloaded the mozillacontrol1712.exe file and installed it. It created a new folder in the Program Files (x86) folder...Mozilla ActiveX v1.7.12, containing 14 folders and 169 files. All of the ...
0
votes
1answer
47 views

Writing large amounts of data to a csv file

I couldn't find anything specific to this so here goes. I have a For Each loop where I want to write values to a csv file. Currently, I use a WriteToFile function: Public Sub WriteToFile(stuff as ...
1
vote
1answer
68 views

SQL HashBytes vs .Net HashAlgorithm

I am working on integrating a new Authentication rest API that our web dev team wrote. The last piece I need to get working will return a User's User_Id GUID when given a username and password hash ...
0
votes
0answers
30 views

Using WebBrowser to fill out a form - Element without ID

I am trying to use this line of code: WebBrowser1.Document.GetElementById("MainContentPH$TxtNameofRegister").SetAttribute("value", txtRegister.Text.Trim) For this element which is a textbox on ...
0
votes
0answers
34 views

How would I go about making an If Then Statement with a ListBox?

I'm trying to make an If statement where if the person selects English as there Language of choice then the next section of the form will become visible, if they don't select English then the form ...
-2
votes
1answer
35 views

Two Column Data Select SQL Server Vb.net [closed]

Hello friend i need help i have two column (Brand Model) i need when i find the data from my table through text boxes then show this data already available in the following row Dim cmd As New ...
-2
votes
0answers
34 views

Extract the href in VB using RegEx

I am trying to build a newsreader to scrape the headline links on https://post-gazette.com/news/, each of which looks like the snippet below. Each a headline element contains the phrase "pgevoke-...
-1
votes
0answers
42 views

Why does a generic handler in asp.net return 'Internal Server Error' even though a valid parameter is passed?

I'm becoming desperate by the minute with a project deadline hanging above my head and a problem I can't solve. I am trying to post data to a database table using javascript and a asp.net handler. The ...
-2
votes
0answers
41 views

VB NET Custom DataGridView

I have a DataGridView with i fill from a list of two objects. This is the class where i put my two object into the list Public Class Casados Dim casado1 As Gallo Dim casado2 As Gallo ...
0
votes
1answer
47 views

How to click the enter button on the keyboard?

Is there a way to Click the ENTER key on the keyboard, other than SendKeys.Send("{ENTER}"? I have an Application I created in VB.net that will create a line of text then send it to another application ...
0
votes
0answers
10 views

extracting pre-DNS resolution URL from HttpContext.Current

I am trying to get details from the HTTP request which comes into my web server. The request made into the browser url is by DNS record, which then hits my server as an IP address. Is there a way of ...
1
vote
1answer
38 views

Jagged Array VB.NET

I'm trying to use jagged arrays to build an AES encryption tool. It is purely to help me get my head around the maths of the encryption, not for any real application. I tried using 2D arrays but just ...
0
votes
0answers
34 views

Connect to multiple APIs using VB.NET [closed]

I have a VB.NET page that queries an API provider which works as expected but I want to add another APIs from a different provider on the same page. How can I achieve this in VB.NET? I have tried: ...
0
votes
1answer
35 views

Treeview items don't expand

I'm developing a WPF application for my company, and everything needs to look the same way corresponding to our company's look. Therefore I have to make a custom folder explorer, which will feature a ...
-1
votes
0answers
30 views

Encrypt the vb.net source code to prevent reverse engineering [closed]

I'm exploring the options on encrypting the vb.net source code, any recommendations on any softwares or applications to accomplish this task. Have tried few free software but those aren't meeting the ...
0
votes
1answer
33 views

VB.Net - I can't find anything wrong with my code [closed]

I have a button that should "enable" a "disabled" record in the database. It displays the success message yet it doesn't change the record at all. Private ActivateSelection As String = Nothing ...