2,642 questions with VB-related tags

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

Catch UnhandledException when Application Framework is off

Hello, When I disable Application Framework: AddHandler My.Application.UnhandledException, AddressOf MyUnhandledException Becomes invalid: UnhandledException is not an event of blah.My.MyApplication Using VB.net WinForms .NET FW 4.0 app, anyone can give…

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 2024-06-18T05:17:20.2766667+00:00
StewartBW 745 Reputation points
accepted 2024-06-20T00:34:07.5366667+00:00
StewartBW 745 Reputation points
3 answers

Search with oledb

Hello I use Access Database Engine and OleDbReader to search within my mdb database: New OleDbCommand("SELECT * From Blah WHERE TheID = ?" + strCondition, conn) strCondition can vary based on the user input: strCondition = " AND…

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 2024-06-17T05:12:04.8333333+00:00
StewartBW 745 Reputation points
commented 2024-06-19T06:28:10.2966667+00:00
Jiachen Li-MSFT 28,001 Reputation points Microsoft Vendor
0 answers

VB Defaults - VS2022

My VB defaults in Visual Studio are set to Infer Off, Strict and Explicit On. I create a windows forms app in VS2022. It is .Net 8. The form has a button and a textbox and this code shows no errors and runs. Code: Public Class Form1 Private Sub…

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 2024-06-17T13:04:53.5166667+00:00
Dewayne Basnett 1,361 Reputation points
edited the question 2024-06-18T01:35:35.6166667+00:00
Tianyu Sun-MSFT 28,931 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

How to run power toy in hidden window?

Dim p = New Process() p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden p.StartInfo.CreateNoWindow = True p.Start("C:\Program Files\PowerToys\WinUI3Apps\PowerToys.Settings.exe") After running this code, the setup window still appears. Is…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,566 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 2024-06-13T20:26:36.28+00:00
Yen Dang 20 Reputation points
accepted 2024-06-17T11:27:18.9533333+00:00
Yen Dang 20 Reputation points
0 answers

how to fix Cannot send a content-body with this verb-type with a Post request

I have a VB.net app that is trying to send a post request to get a token. However, I get the error above. Below is a snipit of the code in question. Dim client = New RestClient(stTokenURL) Dim request = New RestRequest(Method.Post) Dim…

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 2024-06-16T03:44:47.1566667+00:00
Mark Larsen 0 Reputation points
commented 2024-06-17T09:07:55.32+00:00
Jiachen Li-MSFT 28,001 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Select from table

Hello Using Access mdb with OleDbRader (Access Database Engine) to select all: "SELECT * FROM tabke WHERE clmn = 'blah'" This might return 100 items, how can I use select to read from number 5 to 50, for example? Possible? Thank you all

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,562 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 2024-05-24T00:46:41.91+00:00
StewartBW 745 Reputation points
commented 2024-06-16T11:20:45.6333333+00:00
StewartBW 745 Reputation points
3 answers One of the answers was accepted by the question author.

Limit the rows in Access table

Hello Is it possible to limit the number of rows in each Access mdb database table? Will need to apply the limitation via VB.NET OLEDB and using Access database engine. Thanks.

Access
Access
A family of Microsoft relational database management systems designed for ease of use.
332 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
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.
848 questions
asked 2024-06-13T15:00:50.7033333+00:00
StewartBW 745 Reputation points
answered 2024-06-15T14:13:18.4+00:00
Ken Sheridan 2,756 Reputation points
1 answer One of the answers was accepted by the question author.

Copy List Of String to another List Of String

Hello I need to know the difference between the 3 paths to my goal: Dim MyList as New List(Of String) MyList.Add(str1) ... and so on ... Dim NewList As New List(Of String) Now I have 3 ways: 1 NewList.AddRange(ResumeFailed) 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,642 questions
asked 2024-06-13T14:51:58.8366667+00:00
StewartBW 745 Reputation points
accepted 2024-06-15T00:53:39.6666667+00:00
StewartBW 745 Reputation points
1 answer

WebClient via EndPoint

Hello When using WebClient to send and/or receive data, how can I pass an EndPoint instance to the WebClient to connect via the specified IP and…

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 2024-06-08T23:34:52.1333333+00:00
StewartBW 745 Reputation points
edited a comment 2024-06-14T05:14:37.31+00:00
Jack J Jun 24,486 Reputation points Microsoft Vendor
3 answers

Make KeyChar Accept Decimal

Hi I am trying to build a custom calculator to make my data entry more efficient. I am trying to limit a textbox in Visual Basic to only accept one decimal point. So far this code only accepts integers and the Backspace button. Dim Ch As Char = e.KeyChar…

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 2021-10-30T17:42:08.813+00:00
Andy 1 Reputation point
commented 2024-06-13T08:19:54.64+00:00
KOZ6.0 6,300 Reputation points
3 answers

Make Class disposable

Hello, Here's a class I use to log off the user, etc, the usage: Dim IExitWindows As New WinExitClass IExitWindows.PowerOffWindows() How can I make this class disposable? Couldn't figure out how to add disposable so instead of: Dim IExitWindows As New…

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 2024-06-09T16:31:59.73+00:00
StewartBW 745 Reputation points
commented 2024-06-13T06:41:35.5866667+00:00
Jack J Jun 24,486 Reputation points Microsoft Vendor
1 answer

Unable to set my 'Busy Status' in outlook when replying to a meeting invite?

I can't seem to set my 'busy status' (free, busy, out of office etc) during the 'response' screen when replying to meeting invites. Do I need to manually set this for each meeting by selecting from my calendar after responding to the email invite? I am…

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
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,680 questions
Outlook Management
Outlook Management
Outlook: A family of Microsoft email and calendar products.Management: The act or process of organizing, handling, directing or controlling something.
5,035 questions
asked 2024-06-11T15:43:45.1366667+00:00
Marcus Pottinger 0 Reputation points
commented 2024-06-12T14:09:09.6466667+00:00
Michael Taylor 50,506 Reputation points
1 answer One of the answers was accepted by the question author.

.net framework forward compatibe?

Hello, my app in .net framework 4.6.1 runs on Windows 8.1 with .net 4.5.1, but why? On a new Win8.1 setup, .net framework 4.5.1 is pre-installed, but I have set my app to require minimum .net 4.6.1, so why it should run on lower .net versions? Very…

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 2022-04-25T21:33:44.45+00:00
OSVBNET 1,386 Reputation points
edited an answer 2024-06-12T07:35:39.7066667+00:00
Jiachen Li-MSFT 28,001 Reputation points Microsoft Vendor
1 answer

Get data with post method using webclient

Hello There's a POST sample at the bottom of this page: https://ws.interfax.net/admin.asmx?op=GetAccountPPCardsBalance2 Sample HTTP POST request and response. The placeholders shown need to be replaced with actual values. POST…

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,562 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 2024-05-30T13:11:52.0833333+00:00
StewartBW 745 Reputation points
edited a comment 2024-06-11T07:12:04.4833333+00:00
Jiachen Li-MSFT 28,001 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Show form from thread

Hello, How can I call / invoke this code from inside thread? Using F As New blahForm F.Text = "xyz" F.Tag = "abc" F.ShowDialog(Me) End Using I think Invoke(Sub() ...) is single line command? If InvokeRequired then... Thanks :)

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 2024-06-09T15:10:06.14+00:00
StewartBW 745 Reputation points
accepted 2024-06-10T02:48:53.0366667+00:00
StewartBW 745 Reputation points
1 answer

How to get the text from the label by the handle with specific coordinates on any part of the desktop screen

I want to extract the text inside the label by giving certain coordinates from the screen, if the type of the coordinates is from the label, then extract the part of the obtained part.

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,868 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,492 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 2024-06-06T07:48:09.8966667+00:00
Mansour_Dalir 1,676 Reputation points
commented 2024-06-07T08:13:40.7266667+00:00
Castorix31 82,671 Reputation points
1 answer

How to get the index of duplicate elements along with the range of empty elements after it. LINQ

hi Dim ComplexArray As String() = Split("A C A B C A B A B C") Dim Arr3D = {({"A", ({"0-2", "5-9", "16-16", "19-20"})}), ({"B", ({"10-12",…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,868 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 2024-05-04T15:38:26.2533333+00:00
Mansour_Dalir 1,676 Reputation points
edited the question 2024-06-07T05:57:14.88+00:00
Anna Xiu-MSFT 27,551 Reputation points Microsoft Vendor
3 answers One of the answers was accepted by the question author.

How can I open Microsoft Excel in Visual Basic.NET

I am using Visual Studio 2023 for using Visual Basic. I have latest version of Microsoft Office. I want to open Excel using Visual Basic (not VBA). Please tell me how to go about it. It is very important for me.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,566 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
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,680 questions
asked 2024-06-02T16:30:14.32+00:00
Rajendra Deshpande 20 Reputation points
answered 2024-06-04T11:32:21.2666667+00:00
tejaswini 0 Reputation points
0 answers

Webrequest populate UserAgent and Headers

asp net version 2.0 asp.net forms with vb.net Dim strData As String = String.Empty Dim wr As HttpWebRequest = Nothing Dim wrRes As HttpWebResponse = Nothing wr = DirectCast(WebRequest.Create(URi),…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,566 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,394 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 2024-05-31T01:20:28.4933333+00:00
icm63 0 Reputation points
commented 2024-05-31T06:15:40.6466667+00:00
Lan Huang-MSFT 28,666 Reputation points Microsoft Vendor
3 answers

Query is too complex.

Hello To delete many selected records at once: In a loop I populate question marks: QuestionMarks = QuestionMarks + "?, " Then: "DELETE FROM table WHERE theID = ? AND fld IN (" + QuestionMarks + ")" And: For Each MyRow As…

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,562 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
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.
848 questions
asked 2024-05-24T08:22:33.26+00:00
StewartBW 745 Reputation points
commented 2024-05-31T05:48:41.7633333+00:00
Jiachen Li-MSFT 28,001 Reputation points Microsoft Vendor