Microsoft Q&A

VB

1,845 questions

An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.

Browse all VB tags

1,845 questions with VB-related tags

Sort by: Updated
0 answers

VB.NET - Email code does not work with Office 365

The code below has been used successfully for awhile, but we recently discovered that it is not compatible with Office 365. We need to modify the code but we don't know where to start (online searches were not helpful). Could someone please point us to…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
1,845 questions
asked 2023-02-07T17:25:21.6366667+00:00
SuperCoder 21 Reputation points
commented 2023-02-07T17:49:43.3033333+00:00
Reza Aghaei 4,081 Reputation points MVP
0 answers

Email code in VB.NET does not work with Office 365

We have been using the code below for awhile and recently found out that it is not compatible with the Office 365 version of Outlook. Could someone point me in the right direction to resolve this issue? Thank you. Private Sub btnEmail_Click(sender As…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
1,845 questions
asked 2023-02-07T17:16:07.1833333+00:00
SuperCoder 21 Reputation points
edited the question 2023-02-07T17:17:42.1566667+00:00
SuperCoder 21 Reputation points
1 answer One of the answers was accepted by the question author.

I can't seem to figure out how to resolve "Conversion from type 'DBNull' to type 'Integer' is not valid." error

Greetings again. Please forgive me for being a bother again. As embarrassing as it sounds, I have been working on this pretty all day and can't seem to figure it out. When I try to run the following code: Dim undetected As Integer = 0 Dim…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
1,845 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,212 questions
asked 2023-02-07T05:47:51.5533333+00:00
Simflex 81 Reputation points
commented 2023-02-07T16:09:20.6366667+00:00
Reza Aghaei 4,081 Reputation points MVP
2 answers One of the answers was accepted by the question author.

User drawn ToolStrip Menu ToolTips

With considerable help from this forum, I have recently completed conversion of my vb.net applications to use user draw for controls. However, I have had no luck asking how to extend the user draw property to ToolTip of ToolstripMenuItems. And perhaps…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
1,845 questions
Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,330 questions
asked 2023-01-20T16:41:05.3733333+00:00
Frank Brady 21 Reputation points
edited a comment 2023-02-07T15:45:00.42+00:00
Reza Aghaei 4,081 Reputation points MVP
1 answer

How do I return RTF for ALL selected text, including any invisible text, when .NET version is 4.7 or higher?

WHAT I HAVE: Visual Basic 2019, WinForms, .NET Framework 4+, RichTextBox MY PROBLEM: For .NET Framework 4.6 and lower, SelectedRtf returns any and all hidden (invisible) text in a RichTextBox selection, even when the hidden text isn't surrounded within…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
1,845 questions
Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,330 questions
asked 2023-01-10T06:42:02.02+00:00
Robert Gustafson 601 Reputation points
edited an answer 2023-02-07T11:39:15.95+00:00
Reza Aghaei 4,081 Reputation points MVP
1 answer

How many processes can use a thread?

WHAT I HAVE: Visual Basic 2019, WinForms MY QUESTION: True or false: Multiple application domains within the same process can use the same thread, but multiple processes can't do so. If I look within Process.GetProcesses and ProcessThread.Id for the…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
1,845 questions
Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,330 questions
asked 2023-02-07T06:03:58.1133333+00:00
Robert Gustafson 601 Reputation points
answered 2023-02-07T08:07:35.91+00:00
Castorix31 66,071 Reputation points
1 answer

CommunityToolkit (apparently ) not generating internal code

I've decided to give the CommunityToolkit a try but my code and the parts of the Toolkit are not making a connection. Here's the relevant parts of my MainWi8ndow: <Window x:Class="MainWindow" <Window.DataContext> …

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
1,845 questions
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,190 questions
asked 2023-02-06T20:19:06.5733333+00:00
Roger Schlueter 976 Reputation points
answered 2023-02-07T03:17:25.8866667+00:00
Hui Liu-MSFT 14,651 Reputation points Microsoft Employee
1 answer

VB. How do you re-open Form2 that was called by Form1 after Form2 has been closed.

I have Form1 that has buttons on it, one of which opens Form2. Originally this button just used Form2.show but that resulted in a new form each time the button was clicked and I didn't want to have extra forms open for no reason so I changed the…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
1,845 questions
Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,330 questions
asked 2023-02-04T12:49:12.0566667+00:00
Cynolycus 0 Reputation points
commented 2023-02-07T02:57:35.2933333+00:00
Jiachen Li-MSFT 10,911 Reputation points Microsoft Employee
1 answer

Como abrir um Form com VB .net no segundo monitor direto?

Oi, Estou esperimentando 2 monitores no meu projeto do VB .net E estava querendo saber como que consigo iniciar um Form direto no meu segundo monitor com o Form já maximizado, pq qualquer teste que eu faço ele só abre no monitor principal Qualquer ajuda…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
1,845 questions
asked 2023-02-06T18:09:09.4566667+00:00
Eduardo Andrade 0 Reputation points
commented 2023-02-07T01:27:45.0466667+00:00
Jiachen Li-MSFT 10,911 Reputation points Microsoft Employee
3 answers

Dir Sep Char / Volume sep char or hardcoded backslash?

Hello all expert users I'm adding a back slash directory separator char at the end if: If TargetDir.EndsWith(" : ") = False Then TargetDir = TargetDir + " \ " My vb.net app which targets .net framework 4.0 will only run on Windows 7…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
1,845 questions
asked 2023-02-05T12:38:39.0766667+00:00
Alec Pointer 0 Reputation points
edited an answer 2023-02-06T17:21:44.2833333+00:00
Dewayne Basnett 526 Reputation points
1 answer One of the answers was accepted by the question author.

I am trying to cast a type into an interface and have some problems with it

Hi guys! I have the following code snippet that I'm currently trying to reason about. It looks a bit constructed but contains all important assets of the actual code, so please bear with me here :) Interface ISpark Function Swing() As Double End…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
1,845 questions
asked 2023-01-24T18:15:52.9266667+00:00
Daniel Bischof 20 Reputation points
accepted 2023-02-06T13:21:11.4133333+00:00
Daniel Bischof 20 Reputation points
0 answers

SSRS Sql Server Reporting Server Custom Security 2019 exception in Windows Server 2019

Hello Friends I am facing a problem with respect to SSRS(Sql Server Reporting Server) 2019 Custom security Exception in windows server 2019. SSRS report works fine from winforms vb.net code in previous version of SQL Server (2016, 2014 and 2012) but…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
1,845 questions
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,131 questions
asked 2023-02-03T12:56:39.3966667+00:00
Guru dath 0 Reputation points
edited the question 2023-02-06T08:46:25.85+00:00
Jack J Jun 19,381 Reputation points Microsoft Employee
1 answer

Application has stopped working after a change in the interface of legacy VB 6.0 ActiveX DLL (DCOM)

Hi, I have changed an interface in the existing legacy VB 6.0 ActiveX DLL, but after the change unable to create the object from another server (DCOM). Below are the steps followed to deploy the component 1.      After the change, rebuilt the VB 6.0 DLL…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
1,845 questions
asked 2023-02-04T08:55:05.4366667+00:00
Harsha Shankarappa 0 Reputation points
commented 2023-02-06T08:09:01.76+00:00
RLWA32 28,676 Reputation points
1 answer

Cannot Get a ComboBox to Show the Items Properly

I have created a very simple project to illustrate my problem. I fear the resolution is simple but for the life of me I can't see it. I have but one model: Public Class SECategory Public Property CategoryID As Integer Public Property Plural As…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
1,845 questions
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,190 questions
asked 2023-02-02T05:04:58.44+00:00
Roger Schlueter 976 Reputation points
commented 2023-02-06T05:36:10.6666667+00:00
Hui Liu-MSFT 14,651 Reputation points Microsoft Employee
1 answer

SELECT MONTH AND YEAR FROM DATE FIELD FOR SQL DATASOURCE FOR A GRID VIEW

I have a gridview with sqldata source in my aspx+Vb +sql web. There is a date field in my table have on dropdownlist mthtxt.text and another dropdownlist yrtxt.text Table name is Clinic_Med_Issue Empno Name Medicine qty effdate MM001 Baiju …

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
1,845 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,212 questions
asked 2023-02-03T09:24:00.44+00:00
Baiju EP 121 Reputation points
answered 2023-02-06T05:20:21.3066667+00:00
Lan Huang-MSFT 9,281 Reputation points Microsoft Employee
1 answer

records update using visual basic and UPDATE SET statement ACCESS table

Hello There I am trying to update ACCESS table records using the statement UPDATE SET WHERE and a datagridview as source, the code that I put together seems to be running fine (syntax talking), I say syntax because there is not error or break during…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
1,845 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
640 questions
asked 2023-01-15T21:31:17.18+00:00
salvatore Colaiuda 0 Reputation points
commented 2023-02-06T02:48:55.18+00:00
Jiachen Li-MSFT 10,911 Reputation points Microsoft Employee
1 answer

how can i disable the arrows and enter key when I edit the datagridview cell in vb.net

Aslam o Alikum I am making a project in vb.net and I am facing a problem in datagridview when i am typing some word in a cell when i press the up or down key then my cursor move to next cell. i want when i press the enter key then my cursor is move to…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
1,845 questions
asked 2023-02-04T11:19:15.6333333+00:00
Muhammad Usman Qader 0 Reputation points
edited the question 2023-02-06T01:18:28.0966667+00:00
Jack J Jun 19,381 Reputation points Microsoft Employee
1 answer

How to mimic MouseEnter event?

Hello, When I move the mouse pointer over a Button it will highlight, is it possible to trigger this mode from code, so it seems like the mouse is over the Button? Primary vb.net 2010 .net 4.0 Thank you

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
1,845 questions
asked 2023-02-05T06:12:21.58+00:00
Alec Pointer 0 Reputation points
edited the question 2023-02-06T01:14:27.77+00:00
Jack J Jun 19,381 Reputation points Microsoft Employee
4 answers One of the answers was accepted by the question author.

(VB.NET) How to verify login permissions using a DataSet and QueryBuilder?

I wasnt quite sure how to properly write the question so bear with me please, here i'll explain as much as I can. And sorry if its too long. I am building a basic school project that allows employees to register their time-in and time-out of the job…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
1,845 questions
Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,330 questions
asked 2021-01-06T02:11:17.987+00:00
edbanshee 21 Reputation points
answered 2023-02-05T17:39:50.32+00:00
jajal99 0 Reputation points
1 answer

VB What is the best way to populate a Datagridview from a text file?

I haven't coded for many many years and have had little experience with .Net. VB6 is mostly what I used and I am trying to adapt, so I thank you for your assistance and patients. I need to populate a DataGridView from a text file. This file is delimited…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
1,845 questions
asked 2023-02-05T03:50:09.4733333+00:00
Cynolycus 0 Reputation points
edited an answer 2023-02-05T05:41:46.9366667+00:00
Reza Aghaei 4,081 Reputation points MVP