2,661 questions with VB-related tags

Sort by: Updated
2 answers One of the answers was accepted by the question author.

Visual basic 2019 access database operations.

Suppose I added a new data to a table thru this program (access database program). I have one data grid view on the form , IT SHOW OLD DATA NOT THE ONE I JUST ADDED TO THE DATA TABLE THRU THIS FORM. In other words datagridview do not refresh or reset.I…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,661 questions
asked 2021-01-25T16:47:24.6+00:00
Sheelnath Kekre 121 Reputation points
accepted 2021-01-26T13:12:03.403+00:00
Sheelnath Kekre 121 Reputation points
3 answers One of the answers was accepted by the question author.

Fix UI Unresponsive

HI I am working on a program where it reads a text file using zira.speak. it works fine but when i try to click on close_command button to stop it but the User Interface become non-responsive and i am unable to close it untill it has finished reading…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,661 questions
asked 2021-01-25T17:38:40.013+00:00
Lokesh R 61 Reputation points
commented 2021-01-26T11:14:39.783+00:00
Lokesh R 61 Reputation points
3 answers One of the answers was accepted by the question author.

Task never ends in Windows Form App (vb.net Framework 4.8)

Hi everybody, in a Windows Form App a Task never ends. If I put the same code into a Console App (same Framework Version) it runs well and the task ends. This is my code: Imports VCCLWebService Module Module1 Sub Main() Dim Url As String =…

Universal Windows Platform (UWP)
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,661 questions
asked 2021-01-25T14:34:31.783+00:00
SabineWo-8318 116 Reputation points
answered 2021-01-25T17:10:04.66+00:00
SabineWo-8318 116 Reputation points
1 answer

How to migrate System.EnterpriseServices to .NET5?

We have a lot of business logic in .NET 4.0 using System.EnterpriseServices. Can you suggest a migration path to .NET 5?

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,661 questions
asked 2021-01-21T07:53:21.31+00:00
pappasa 6 Reputation points
commented 2021-01-25T11:37:43.803+00:00
Karen Payne MVP 35,386 Reputation points
0 answers

Publishing resource files in vb

Hi the everyone, Ive designed a program in visual basic and placed my setup files in the debug folder but, when ever i publish the program it doesnt export or publish the files in the debug folder thus leaving the published program with errors. Can…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,661 questions
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,009 questions
asked 2021-01-24T17:34:28.267+00:00
HASSAN NOUREDINE 1 Reputation point
commented 2021-01-25T03:05:03.933+00:00
Dylan Zhu-MSFT 6,406 Reputation points
2 answers

Development time - Sense check

Hi I am working on a framework tool for product configurators to be edited through a 3rd party application. The idea is to have an application that mainly controls the navigation and 3rd party API integration, then create single product classes that i…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,661 questions
asked 2021-01-24T21:23:11.92+00:00
NachitoMax 416 Reputation points
commented 2021-01-24T23:00:06.087+00:00
Karen Payne MVP 35,386 Reputation points
1 answer One of the answers was accepted by the question author.

copy webpage into database

Hi Friends, I am trying to copy webpage into my databases table using vb.net 2008, I am using following code but its not working Dim Web As New HtmlAgilityPack.HtmlWeb Dim Doc As New HtmlAgilityPack.HtmlDocument Doc =…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,661 questions
asked 2021-01-14T14:19:42.247+00:00
Malik Asad Mahmood 126 Reputation points
accepted 2021-01-24T18:02:46.57+00:00
Malik Asad Mahmood 126 Reputation points
3 answers

Fundamental work with VB.NET Datatable and Treeview

Hi, I am coming with maybe silly question but I just cant figure it out. I have started project, not small from my point of view but I relisted after finishing first part that I handle in this program so big data that it will be really bad for user…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,661 questions
asked 2021-01-18T16:26:48.053+00:00
neytal 1 Reputation point
answered 2021-01-23T11:02:38.903+00:00
Peter Fleischer (former MVP) 19,316 Reputation points
2 answers

Visual Studio | VB.NET | MyApp.config vs MyApp.exe.config

Is there a way to default MyApp.exe to use MyApp.config rather than MyApp.exe.config? I was using .net framework 3.5 and my app used MyApp.config but now that I have upgraded my .net framework to 4.x the app will not load unless I rename MyApp.config to…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,661 questions
asked 2021-01-22T21:05:41.533+00:00
jim brown 271 Reputation points
answered 2021-01-22T23:56:00.06+00:00
Duane Arnold 3,216 Reputation points
0 answers

How do I determine if an SMTP server "advertises" StartTLS?

WHAT I HAVE: Visual Basic 2019, .NET 4.6.1, WinForms MY PROBLEM: I am using SmtpClient to send emails, and the documentation says that if EnableSsl is True when the server doesn't advertise StartTLS, an SmtpException is thrown. I'd like to handle…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,869 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,661 questions
asked 2021-01-21T02:12:22.607+00:00
Robert Gustafson 606 Reputation points
commented 2021-01-22T01:28:59.827+00:00
Xingyu Zhao-MSFT 5,361 Reputation points
1 answer

Is there a .NET 5 Web API template for VB.NET in Visual Studio 2019?

Is there a .NET 5 Web API template for VB.NET in Visual Studio 2019? I can only find one for C#.

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,661 questions
asked 2021-01-21T07:49:42.293+00:00
pappasa 6 Reputation points
answered 2021-01-21T14:24:32.15+00:00
Karen Payne MVP 35,386 Reputation points
1 answer

Is it possible to continue editing a metafile which is stored in a variable

I have created a metafile and drawn a few lines into it. After that I stored the metafile in a variable. Dim myImage as Metafile . . System(0).Image = myImage When I try to load the metafile again to extend it myImage = System(0).Image …

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,869 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,661 questions
asked 2021-01-19T10:30:43.59+00:00
STL 21 Reputation points
commented 2021-01-21T12:32:18.097+00:00
Viorel 114.5K Reputation points
2 answers

Copy ALL Files and Folders Excluding Hidden or System Files

Hi, Initially I was using following VB code to copy directory (with all files and sub-directories etc.) Dim src_UsersFolder = "C:\myData\" Dim dst_UsersBackup = "D:\Backup\" …

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,154 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,661 questions
asked 2021-01-19T11:55:22.787+00:00
~OSD~ 2,131 Reputation points
commented 2021-01-19T14:19:44.22+00:00
Karen Payne MVP 35,386 Reputation points
2 answers

datagridview access row when added without the need to loop through rows

I have a datagridview to represent journal voucher debit/credit binded to bindingsource when I code Me.dgv_jv.DataSource = bs_jv the dgv is populated with data while the dgv is populated, I want to check a table field "DBCR" if equal CR…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,661 questions
asked 2021-01-19T08:45:57.767+00:00
Samir Ibrahim 1 Reputation point
answered 2021-01-19T13:08:25.04+00:00
Karen Payne MVP 35,386 Reputation points
2 answers One of the answers was accepted by the question author.

Running PowerShell command from VB (or C#) on multiple machines - how to know which computer is returning infomation

I am running code as per simple example below, in reality it will be a lot more machines, how do I know which machine each set of results is from? I read mention of PSComputerName, but how do I get the value from this as the usual way of getting a…

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,623 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,661 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,455 questions
asked 2021-01-18T14:06:33.337+00:00
Darren Rose 496 Reputation points
commented 2021-01-19T10:22:46.843+00:00
Darren Rose 496 Reputation points
5 answers One of the answers was accepted by the question author.

visual access code request

Hi! I have the starting table T1 in access 2013 with this data I need a visual code to create a new table with the field num where it indicates the number of different centers in which the user is on the same day. The output table should be…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,661 questions
asked 2021-01-14T18:45:34.51+00:00
jm saf 166 Reputation points
commented 2021-01-18T09:06:25.023+00:00
jm saf 166 Reputation points
0 answers

Disk Management and VB.Net

Hi, Currently I am using Diskpart to make desired disk layout. However, when combining with scripting, I am not getting desired results as diskpart script failed to procced further if a partition is not found etc. Desired Disk Layout: If "Q:\"…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,661 questions
asked 2021-01-15T10:21:43.777+00:00
~OSD~ 2,131 Reputation points
commented 2021-01-18T05:51:48.047+00:00
Xingyu Zhao-MSFT 5,361 Reputation points
1 answer One of the answers was accepted by the question author.

Running PowerShell command remotely from VB using remote runspaces / WSMAN

Hi I am trying to create a powershell remote runspace to another machine Following examples here converted to VB - https://video2.skills-academy.com/en-us/powershell/scripting/developer/hosting/remote-runspace-samples?view=powershell-7.1 I get…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,661 questions
asked 2021-01-11T15:27:16.157+00:00
Darren Rose 496 Reputation points
accepted 2021-01-16T13:17:43.23+00:00
Darren Rose 496 Reputation points
2 answers One of the answers was accepted by the question author.

How to add item selected in combo box to data table ?

I want user to select an item of his choice from drop down combobox and ADD to database thru save button.

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,661 questions
asked 2021-01-13T13:30:04.173+00:00
Sheelnath Kekre 121 Reputation points
accepted 2021-01-15T13:03:21.537+00:00
Sheelnath Kekre 121 Reputation points
2 answers One of the answers was accepted by the question author.

Using Access Database with linked tables in VB.NET

In my VS2019 VB.Net programme I am using an Access 2003 Database which has tables linked to another Access 2003 Database. The database it is linked to is updated periodically by another programme over which I have no control. My database has tables…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,661 questions
asked 2021-01-12T17:55:09.3+00:00
James Bartlett 21 Reputation points
answered 2021-01-15T01:56:30.863+00:00
Albert Kallal 5,231 Reputation points