2,642 questions with VB-related tags

Sort by: Updated
2 answers

How to set get path to run exe?

Im developing an app to run an exe file on button click, but how do I set the path to run the exe regardless of the drive its copied on or moved 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,642 questions
asked 2020-12-04T22:31:02.293+00:00
Alphaprotocol 1 Reputation point
commented 2020-12-12T03:04:57.727+00:00
WayneAKing 4,921 Reputation points
4 answers One of the answers was accepted by the question author.

LINQ Specify Property as variable VB.Net

Hallo, I have a function like this Dim test =List.Sum(Function(x) x.Weight) Where "Weight" is the property in the object. I would like to know if it is possible to make List.Sum(Function(x) x.Variable) so that i can change the properties…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,642 questions
asked 2020-12-08T20:10:39.047+00:00
Hobbyist_programmer 621 Reputation points
answered 2020-12-11T10:49:16.933+00:00
Hobbyist_programmer 621 Reputation points
1 answer

objADGroup2 = GetObject ("WinNT://"&strDomain&"/Domain Admins,group") failed at Windws 10 startup

Hi Guys I tried to add some local and domain group to local admins group via windows group policy -startup scripts, as below. Set objGroup = GetObject("WinNT://"&strComputerName&"/Administrators,group") Set objUser =…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,642 questions
asked 2020-12-10T07:46:36.22+00:00
超 邓 1 Reputation point
commented 2020-12-10T22:36:49.073+00:00
Rich Matheisen 45,596 Reputation points
7 answers One of the answers was accepted by the question author.

Undo/Redo database

Hello everyone, i have a DataGridView with a database. I need help about adding option Undo and Redo. I use DataSet, DataBindingSource and TableAdapter. Any suggestions?

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,642 questions
asked 2020-12-05T17:43:10.82+00:00
DRGAGI 146 Reputation points
answered 2020-12-10T17:33:47.72+00:00
DRGAGI 146 Reputation points
1 answer One of the answers was accepted by the question author.

Datagridview combobox column unique value each row

Hi, Please I am using winform vb.net I have datagridview which contain combobox column and I want to assign unique values to combobox column of each row, It could be 3 to 4 values and these values I am already getting from database as out parameters…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,642 questions
asked 2020-12-09T18:13:34.503+00:00
Malik Asad Mahmood 126 Reputation points
accepted 2020-12-10T17:07:01.357+00:00
Malik Asad Mahmood 126 Reputation points
2 answers One of the answers was accepted by the question author.

Process.Start() is not working for VB Forms application

Hi, I am using command line syntax and saving output as text file using ">" switch to current user profile as: wmic product get Description, InstallDate, Version > C:\Users\%UserName%\Documents\AppList.txt When I use the same command…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,642 questions
asked 2020-12-09T12:26:07.563+00:00
~OSD~ 2,131 Reputation points
commented 2020-12-10T12:11:23.65+00:00
~OSD~ 2,131 Reputation points
2 answers

Disk Detection and Drive Leeters Assignment in VB.Net

Hi, Currently I am using Diskpart (Windows command line utility) to manage disks and assign drive letters. Disk 0 is present almost 99.99% scenarios, however, I need to check for the disk 1 and disk 2 all the time. If disk 1 is present,…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,572 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,642 questions
asked 2020-12-09T09:28:06.457+00:00
~OSD~ 2,131 Reputation points
answered 2020-12-10T02:35:36.55+00:00
Xingyu Zhao-MSFT 5,356 Reputation points
2 answers One of the answers was accepted by the question author.

App Crashing on First Open with error Faulting module name: USER32.dll, version: 10.0.18362.1171, time stamp: 0x13516cf1 Exception code: 0xc0000005

The error is: Faulting module name: USER32.dll, version: 10.0.18362.1171, time stamp: 0x13516cf1 Exception code: 0xc0000005 Fault offset: 0x000000000000afd5 Faulting process id: 0x1dcc I am at a loss. I recently installed this same application for…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,642 questions
asked 2020-12-03T20:50:22.407+00:00
Paul Bill 66 Reputation points
accepted 2020-12-09T20:42:34.993+00:00
Paul Bill 66 Reputation points
14 answers One of the answers was accepted by the question author.

What is this error (process 16500) exited with code -1073740940. ?

Hi, When I build my small Visual Basic Console program I get this message on the console; " H:\My Program Projects MS VS 2019 Community\Swe_Version Function Testing\bin\Debug\netcoreapp3.1\Swe_Version Function Testing.exe (process 16500)…

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
326 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,642 questions
asked 2020-12-08T11:59:07.78+00:00
VKSB 236 Reputation points
accepted 2020-12-09T19:34:42.053+00:00
VKSB 236 Reputation points
2 answers One of the answers was accepted by the question author.

VB 2010 App w/ Report viewer upgrade to VB 2019 Professional

I have a VB 2010 App that uses Report Viewer 2010. The app compiles and runs properly when deployed. I now have VB 2019 and have opened my VB 2010 App with it. The App, including the generation of the Report Viewer report runs properly. However, if I…

SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
2,855 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,642 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
962 questions
asked 2020-12-07T18:24:15.633+00:00
Duggan, Daniel 96 Reputation points
accepted 2020-12-09T18:02:09.877+00:00
Duggan, Daniel 96 Reputation points
2 answers One of the answers was accepted by the question author.

Copy data from DataGrid View to another

hi I want to copy data from DataGrid View to another, as follows The second DataGrid View contains 8 columns, they are actually a duplicate of the first DataGrid, but in order for the data to be grouped next to some What do I want to collect data from…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,642 questions
asked 2020-12-08T09:03:26.237+00:00
ahmedAlie 161 Reputation points
commented 2020-12-09T11:32:26.673+00:00
ahmedAlie 161 Reputation points
2 answers

Problem in SQL backup code via network

Hi all , I have 2 machines (The first PC is "MSServer" that hosts a SQL Server Express 2017 and the second PC hosts my VB.net App.) every thing is Okay. But suddenly i realized that my backup code on the second PC is backed up a wrong data,…

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,201 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,642 questions
Transact-SQL
Transact-SQL
A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
4,591 questions
asked 2020-12-08T10:01:37.033+00:00
Amr_Ali 136 Reputation points
commented 2020-12-08T19:01:41.543+00:00
Amr_Ali 136 Reputation points
1 answer One of the answers was accepted by the question author.

Print Preview and Print DataGridView

I have DataGridView with a database attached, is there any way to print data from it with print preview?

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,642 questions
asked 2020-12-07T19:18:34.223+00:00
DRGAGI 146 Reputation points
commented 2020-12-08T16:53:03.593+00:00
DRGAGI 146 Reputation points
2 answers One of the answers was accepted by the question author.

Changing HTML controls to be Compatible with ASP.NET code

I have imported a page from a HTML template into an VB.NET asp.net web form. However, I've found out that the controls in the web form are different then those that can be dragged in the toolbox. What this means is that there is no VB.NET server-side…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,396 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,642 questions
asked 2020-12-03T01:58:35.753+00:00
blinkor12 101 Reputation points
accepted 2020-12-08T16:27:48.007+00:00
blinkor12 101 Reputation points
7 answers

Copy Files and Folders from CURRENT directory to User Home Folder VB.Net

Hi, Is it possible to use "Current Directory" as source (instead of full /absolute path) to copy file /folder to current user profile? Source: C:\myData\Backups\Latest**UserBackup**\SavedData\StdDoc.txt <Instead of using the whole path,…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,642 questions
asked 2020-12-04T09:00:50.813+00:00
~OSD~ 2,131 Reputation points
answered 2020-12-08T14:53:36.267+00:00
Cory Smith 11 Reputation points
10 answers One of the answers was accepted by the question author.

Is there a list (of string) or equivalent in VB that I can configure to only hold x entries and then overwrite oldest

Is there a list (of string) or equivalent in VB that I can configure to only hold x entries and then overwrite oldest each time I add something new to it? e.g. I can set it to hold say 25 items, and then if I add a 26th item it overwrites the first…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,642 questions
asked 2020-12-05T13:56:26.65+00:00
Darren Rose 496 Reputation points
commented 2020-12-07T20:40:18.6+00:00
Darren Rose 496 Reputation points
2 answers

Include Datagridview or Datatable as part of Class object?

Hallo, I would like to know is there a way to make datagridview or datatable as part of the object. I have a class and i want to include a datagrid view with some rows and columns so user can type their values and comments and only rows with 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,642 questions
asked 2020-12-06T11:13:50.71+00:00
Hobbyist_programmer 621 Reputation points
commented 2020-12-07T13:48:37.23+00:00
Peter Fleischer (former MVP) 19,306 Reputation points
0 answers

VB.net RDLC report error in client side while set RDLC reference assembly

Help I create a setup and install it at local, it runs perfectly. But When using the client pc to access it, the RDLC report forces my application to shutdown. In order to check the problems, I had tried: RDLC report with no reference…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,642 questions
asked 2020-12-05T07:20:48.32+00:00
Soh Chem Seng 1 Reputation point
commented 2020-12-07T08:00:03.85+00:00
Xingyu Zhao-MSFT 5,356 Reputation points
1 answer

reading data from a USB port using VB.net and Visual Studio Community - windows Forms application

I need to read lines of data coming in on a USB port. I am using VB.net and Forms. In the toolbox, there is a 'SerialPort' control which I placed in my Form1.vb[Design] window. I am using the 'DataReceived' event and the event handler test code…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,642 questions
asked 2020-12-02T18:02:56.24+00:00
Lloyd Linnell 1 Reputation point
answered 2020-12-07T05:52:43.75+00:00
Xingyu Zhao-MSFT 5,356 Reputation points
3 answers

How to add a wildcard on a VB Script

Hi, I am using this vbscript in SCOM to monitor the existence of a file. It works without a wildcard, but when I add a wildcard it doesn't work. I also need to find the existence of 2 different filenames with wildcards within the same location. Dim…

Operations Manager
Operations Manager
A family of System Center products that provide infrastructure monitoring, help ensure the predictable performance and availability of vital applications, and offer comprehensive monitoring for datacenters and cloud, both private and public.
1,441 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,642 questions
asked 2020-12-05T08:37:10.203+00:00
javad 1 Reputation point
answered 2020-12-07T04:06:59.127+00:00
AlexZhu-MSFT 5,626 Reputation points Microsoft Vendor