2,592 questions with VB-related tags

Sort by: Updated
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,592 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.
12,844 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,592 questions
Transact-SQL
Transact-SQL
A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
4,559 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,592 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,298 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,592 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,592 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,592 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,592 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,231 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,592 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,592 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,419 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,592 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,551 Reputation points Microsoft Vendor
6 answers One of the answers was accepted by the question author.

Bind or show object properties values in datagridview rows?

Hallo I am looking for a way to bind object properties to data grid view row items . for example i have sample class like blow Public Class Sample Public Readonly Property Prop1 as integer Public Readonly Property Prop2 as integer End Class and a…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,592 questions
asked 2020-12-04T22:55:45.677+00:00
Hobbyist_programmer 621 Reputation points
commented 2020-12-06T12:22:58.527+00:00
Karen Payne MVP 35,196 Reputation points
3 answers One of the answers was accepted by the question author.

Auto number increment

Hello everyone, i have issues with auto increment in DataGridView row count. As i adding columns in table, i get numbers of rows in right order, but when i delete a row, for example number 4, my ID skip reordering and continue to add next number of the…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,592 questions
asked 2020-12-03T21:20:23.24+00:00
DRGAGI 146 Reputation points
commented 2020-12-04T21:33:27.757+00:00
DRGAGI 146 Reputation points
2 answers One of the answers was accepted by the question author.

How to pass class as variable?

Hallo, I have code something like this, Dim C1= CType(Form1.BS_Classes.Current, Class1) Dim value As Integer = C1.Class2.Sum(Function(x) x.Property1) I have many classes or custom objects inside Class1. How do i pass them in a loop so that it goes…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,592 questions
asked 2020-11-28T20:34:56.71+00:00
Hobbyist_programmer 621 Reputation points
accepted 2020-12-04T14:10:13.237+00:00
Hobbyist_programmer 621 Reputation points
3 answers

Progress bar based on exe running process on task manager

Hi Everyone, I tried to code for progress bar based on running .exe file on the task manager. If the file run, the progress bar will appear and when it done, the progress bar will finish. Thank You very much for your help and answer Best Regard …

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,665 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,592 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.
974 questions
asked 2020-12-02T07:56:23.947+00:00
M Indra Ruslan 241 Reputation points
commented 2020-12-04T09:33:35.98+00:00
Viorel 112.8K Reputation points
2 answers

getting just profile name from profile path

Hi I have a list of profile paths, and I want to remove the c:\users\ and just keep the profile name Things to consider - if run on a computer with a different language then I assume it is not always called c:\users\ The list of profiles are not…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,592 questions
asked 2020-12-03T21:15:44.847+00:00
Darren Rose 281 Reputation points
answered 2020-12-03T21:49:56.543+00:00
Darren Rose 281 Reputation points
5 answers One of the answers was accepted by the question author.

How to auto calculate two rows into third one in datagridview table who uses access database

I insert Access database into Visual Studio Basic. I have put datagridview on the form who uses same database. What i am ask is: How to auto calculate one of the row cell as product of another two, within same datagridview, same database. When you enter…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,592 questions
asked 2020-12-02T17:51:10.327+00:00
DRGAGI 146 Reputation points
commented 2020-12-03T20:44:29.6+00:00
Karen Payne MVP 35,196 Reputation points
5 answers One of the answers was accepted by the question author.

Special variables declarion and saving output in vb.net

Hi, I am using following code but stuck with variable declaration %UserName% and saving output in text file with ">" Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Dim get_AppxList As New…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,437 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,592 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,395 questions
asked 2020-12-01T11:56:06.183+00:00
~OSD~ 2,131 Reputation points
accepted 2020-12-03T10:35:52.417+00:00
~OSD~ 2,131 Reputation points
1 answer

Datagridview as dataentry facing issue

Hi, Please I am using following code in vb.net in order to move datagridview cursor to move to next cell upon enter key, I am facing problem that when cell reached to last column upon enter its insert new row into datagridview before first row which is…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,592 questions
asked 2020-12-02T02:37:15.043+00:00
Malik Asad Mahmood 126 Reputation points
answered 2020-12-03T07:36:08.313+00:00
Xingyu Zhao-MSFT 5,356 Reputation points
3 answers

Getting a list of user profile paths on a computer

Hi I am trying to obtain a list of all user profile paths on a machine - just those which are real users so excluding ones like default, public, network services etc I can do it successfully by iterating HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,592 questions
asked 2020-12-02T14:48:58.73+00:00
Darren Rose 281 Reputation points
commented 2020-12-02T20:28:02.23+00:00
Castorix31 81,846 Reputation points
4 answers One of the answers was accepted by the question author.

Get selected files from the desktop

Hello Programmers ... Is there a way to get the dynamically selected file or folder paths from the windows 7 desktop? And the result, I would like to show them in a ListBox1 control. Yes, it's an example, it would be great. I await your prompt…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,592 questions
asked 2020-12-01T17:29:03.407+00:00
jenCarlos 141 Reputation points
commented 2020-12-02T17:03:51.31+00:00
RLWA32 40,856 Reputation points