2,591 questions with VB-related tags

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

How to get the length of strings in array elements LINQ

Dim MyArray as String()={"AB","ABC","DFG"} Need Result Dim int1 as Integer=8

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,591 questions
asked 2024-05-02T17:45:38.65+00:00
Mansour_Dalir 1,611 Reputation points
accepted 2024-05-02T20:23:44.9433333+00:00
Mansour_Dalir 1,611 Reputation points
0 answers

Excel script for filling cells within a specified range with a specific fill color if any cell within the range is selected

Using scripts in Excel (NOT VB macros), I need to be able to fill any cell within a specified range with a specific color if any cell within the range is selected ("clicked on"). Note that the spreadsheet will have different columns that need…

Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
1,512 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,591 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,554 questions
Excel Management
Excel Management
Excel: A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.Management: The act or process of organizing, handling, directing or controlling something.
1,652 questions
asked 2024-03-31T14:28:49.82+00:00
Robin Theodore 0 Reputation points
edited the question 2024-05-02T17:06:50.7833333+00:00
Robin Theodore 0 Reputation points
2 answers One of the answers was accepted by the question author.

UPDATE fields

Hello, This works when using insert into: Using command As New OleDbCommand("INSERT INTO Table (Column1) VALUES (?)", connection) command.Parameters.AddWithValue("@param1", field1) command.ExecuteNonQuery() …

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,341 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,591 questions
asked 2024-04-30T13:38:47.02+00:00
StewartBW 385 Reputation points
accepted 2024-05-02T14:19:50.1266667+00:00
StewartBW 385 Reputation points
1 answer

WebView2 fit to page

I am using a WebView2 control in a WinForms app. It is working fine. However, I'd like the "Fit to Page" button sizing to be the default when a PDF file is displayed in the WebView2 control. How do I make this the default setting in my VB.net…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,591 questions
asked 2024-04-27T14:35:38.2366667+00:00
DanM55 0 Reputation points
commented 2024-05-01T08:59:23.4433333+00:00
Jiachen Li-MSFT 26,916 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How to convert normal date to solar date(PersianCalendar)

with System.Globalization.PersianCalendar NameSpace Need function to convert to solar date

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,591 questions
asked 2024-04-30T04:04:17.3366667+00:00
Mansour_Dalir 1,611 Reputation points
accepted 2024-04-30T09:51:13.4866667+00:00
Mansour_Dalir 1,611 Reputation points
1 answer One of the answers was accepted by the question author.

Opening a Window Using Its Name

From my MainWindow I am trying to open another window knowing only its name. In my MainWindow ViewModel, I have: Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (lpClassName As String, lpWindowName As String) As…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,685 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,591 questions
asked 2024-03-26T09:29:31.52+00:00
RogerSchlueter-7899 1,236 Reputation points
accepted 2024-04-30T09:29:57.9366667+00:00
RogerSchlueter-7899 1,236 Reputation points
1 answer

Declaration expected

Public Module GlobalVariables Public gDataGridShowing Public gDatabase As String ```End Module Public Class Form1 gDatabase = "ganswind" **<<< error "Declaration expected"** Function HideMenuPoints(ByVal…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,591 questions
asked 2024-04-29T19:34:17.8733333+00:00
Malcolm Fellmann 5 Reputation points
commented 2024-04-30T08:24:03.3566667+00:00
Viorel 112.8K Reputation points
2 answers One of the answers was accepted by the question author.

efficient way to add csv to database

Hello I read a csv text file line by line and use oldb sql command insert into table to add each line's fields to the table's row. But it takes a very long time, I wonder if there's faster achievements, please advise the most efficient and fastest way to…

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,341 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,591 questions
asked 2024-04-26T08:05:21.28+00:00
StewartBW 385 Reputation points
accepted 2024-04-29T14:30:16.48+00:00
StewartBW 385 Reputation points
2 answers

Having issue with Keyword not supported: 'trust server certificate in Visual Studio VB

Hi. I'm trying to run VB code in visual studio form project but get an error when code is trying to run. Error is: "System.ArgumentException: 'Keyword not supported: 'trust server certificate'.'". The line in code affected is: Data…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,591 questions
asked 2023-08-11T17:02:43.75+00:00
Cesar Rivas 0 Reputation points
edited an answer 2024-04-28T06:17:34.5066667+00:00
Abhay Sharma 5 Reputation points
1 answer One of the answers was accepted by the question author.

How to Get address datagridview cells row by row to an array Linq

I do not want to address this way. Is there another way of LINQ? And if there is no way with linq, with a function that obtains cell addresses row by row Dim AddressCells As DataGridViewCell() = {dgv.Rows(0).Cells(0), dgv.Rows(0).Cells(1),…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,591 questions
asked 2024-04-26T15:52:24.5033333+00:00
Mansour_Dalir 1,611 Reputation points
edited an answer 2024-04-27T06:38:52.8666667+00:00
KOZ6.0 4,895 Reputation points
2 answers One of the answers was accepted by the question author.

No more support for Web forms in Visual Studio 2022?

Hi, In new Visual Studio there is no more option to create Web Forms web application? Are MVC only future architecture Visual Studio will support for WEB pages? Thx

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,297 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,591 questions
asked 2022-01-29T12:43:57.717+00:00
nickCroat 106 Reputation points
commented 2024-04-24T21:15:05.66+00:00
Robert Oberg 0 Reputation points
1 answer One of the answers was accepted by the question author.

How to get the highest parent(The form in which the user control is located) of an object(user control)

When I want to reach the highest parent(meaning the same form) in my fake user control , these are returned due to the placement of the user control in (TableLayoutPanel, Panel, TabControl,...).

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,591 questions
asked 2024-04-23T06:29:36.65+00:00
Mansour_Dalir 1,611 Reputation points
commented 2024-04-23T08:06:32.5433333+00:00
Mansour_Dalir 1,611 Reputation points
0 answers

vb.net Unit Test Project .NET Framework 4.8 has stopped seeing all subroutines and function in the project being tested.

I have created a vb.net project using .NET Framework 4.8 with a single public subroutine. Also, created a Unit Test project within the same solution and set the references in the Unit Test project pointing to the project being tested. I was able 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,591 questions
Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
331 questions
asked 2024-04-22T05:25:41.7233333+00:00
John Smith 0 Reputation points
edited a comment 2024-04-23T03:00:30.9933333+00:00
Anna Xiu-MSFT 26,391 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Get encoding from Encoding.EncodingName

Hello I need to get the Encoding from a string which is a valid string : Encoding.EncodingName ie: Korean (EUC) or Central European (Windows) Having this string, how to get the proper encoding? Encoding.GetEncoding("Central European (Windows)")…

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,341 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,591 questions
asked 2024-04-22T15:43:18.0133333+00:00
Chery Lidan 20 Reputation points
accepted 2024-04-22T21:16:33.2166667+00:00
Chery Lidan 20 Reputation points
3 answers

Working with Access database via OleDbReader

Hey all I have no problem when all my access mdb are string! I'm using Access database engine 2010 to connect to mdb. The problem occurs when I have Boolean / Integer / Date fields: New OleDbCommand("INSERT INTO tableblah (strfield, intfield,…

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,341 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,591 questions
Access Development
Access Development
Access: A family of Microsoft relational database management systems designed for ease of use.Development: The process of researching, productizing, and refining new or existing technologies.
830 questions
asked 2024-04-01T16:00:49.7066667+00:00
StewartBW 385 Reputation points
commented 2024-04-19T09:41:12.49+00:00
Jiale Xue - MSFT 34,501 Reputation points Microsoft Vendor
0 answers

Error 429 only if Outlook is already open when try to automate an email

Good day Gurus of .Net Since I started trying to get my app to be option strict compliant, I've suddenly started getting error 429 Unable to create active x component BUT only when Outlook is already open. I have the following code to get an instance of…

Outlook
Outlook
A family of Microsoft email and calendar products.
3,073 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,591 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,554 questions
asked 2024-04-18T12:05:49.05+00:00
Hugh Self Taught 81 Reputation points
commented 2024-04-19T08:37:26.6933333+00:00
Hugh Self Taught 81 Reputation points
0 answers

How to lose the focus of the selected cells when it is done with the 'Clipboard.Clear()' command in Visual Basic?

hi Private Sub tsmFillNumberMerged_Click(sender As Object, e As EventArgs) Handles tsmFillNumberMerged.Click 'Trying to (Fill Auto Namber) cells when they are merging If Clipboard.GetText IsNot Nothing Then Dim sttClip As…

Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
1,512 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,591 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,554 questions
asked 2024-04-18T17:02:16.4433333+00:00
Mansour_Dalir 1,611 Reputation points
edited the question 2024-04-19T00:43:50+00:00
Emi Zhang-MSFT 22,086 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

VB.NET SQL Connection and SQL Command Error BC3002

Hello, I'm in the process of converting VBA to VB.NET with SQL statements. One of the changes is utilizing the "ExecuteNonQuery". Since I'm still learning the syntax, I simply copied the VB.NET statements from a web-site. But I'm getting 2…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,591 questions
SQL Server Transact-SQL
SQL Server Transact-SQL
SQL Server: A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.Transact-SQL: A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
48 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 2024-04-16T16:02:09.4533333+00:00
Giacomo Raucci 321 Reputation points
commented 2024-04-19T00:41:22.3566667+00:00
Giacomo Raucci 321 Reputation points
1 answer

Check self signature status

Hello Using VB.net or C# .net framework 4.0, is it possible to add a self check for the digital signature of assembly file? So assembly file should check itself to make sure if it's signed using my code signing certificate and if not, or file is modified…

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,341 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,591 questions
asked 2024-04-16T05:13:06.1+00:00
StewartBW 385 Reputation points
commented 2024-04-18T06:30:35.4966667+00:00
Jiachen Li-MSFT 26,916 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Binding Errors in a Simple Project

I have carved out a simple project from a larger one to demonstrate the binding errors I am getting so the names I use might seem ... odd. The following is the ENTIRE project: Window…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,685 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,591 questions
asked 2024-04-16T22:49:29.3466667+00:00
RogerSchlueter-7899 1,236 Reputation points
commented 2024-04-18T02:15:22.2366667+00:00
Hui Liu-MSFT 40,866 Reputation points Microsoft Vendor