2,913 questions

Sort by: Updated
2 answers

Login failed for User

I get "Login failed for User" error in visual basic connection to sql-server. This error occurs when I move my database from one PC to another. I solve this problem by using same "PC-name" & "User-Name" of my old PC…

Developer technologies | VB
Developer technologies | VB

An object-oriented programming language developed by Microsoft that can be used in .NET.

2,913 questions
SQL Server | Other
SQL Server | Other

Additional SQL Server features and topics not covered by specific categories

14,660 questions
asked 2022-06-27T17:45:45.307+00:00
Habib ur Rehman 41 Reputation points
edited an answer 2026-11-13T05:06:57.2033333+00:00
Habib ur Rehman 41 Reputation points
2 answers

Visual Basic app to connect to an online database

Hey Microsoft Community, I have an app with a login (name, email, and password) form and since it's hard to keep track of how many users are using the app, I want to know if it's possible and how to connect my Visual Basic application to an online…

Azure SQL Database
Developer technologies | VB
Developer technologies | VB

An object-oriented programming language developed by Microsoft that can be used in .NET.

2,913 questions
asked 2021-07-20T18:57:22.98+00:00
Doom 1 Reputation point
edited an answer 2026-11-13T04:33:27.8466667+00:00
Doom 1 Reputation point
0 answers

Help logging into remote server

I need to create a program to restart 3 remote, non AD joined servers. Using VS2019 and I added the LoginForm to the project. Now I am lost. Can anybody point me in the right direction to collect a username and password and then pass that to a restart…

Developer technologies | VB
Developer technologies | VB

An object-oriented programming language developed by Microsoft that can be used in .NET.

2,913 questions
asked 2020-11-27T20:15:27.917+00:00
Dickman, Scott 21 Reputation points
0 answers

How to make changes in Excel sheets only with Visual Basic .NET (Only Programing)

hi I want to have all kinds of changes in the sheets by programming. But the user cannot edit the cells in Excel itself. All edits should be programming only.

Microsoft 365 and Office | Excel | For business | Windows
Developer technologies | VB
Developer technologies | VB

An object-oriented programming language developed by Microsoft that can be used in .NET.

2,913 questions
asked 2024-01-15T11:30:17.4866667+00:00
Mansour_Dalir 2,036 Reputation points
1 answer

Office 365 SMTP not working anymore with ASP.NET VB Page

I've attempted several changes that I received from Microsoft and still not successful. Everything worked until around February 2022. I understand that Microsoft made some changes in regards to SMTP authentication. I have the SMTP credentials setup in…

Exchange Online
Exchange Online

A cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.

7,447 questions
Developer technologies | VB
Developer technologies | VB

An object-oriented programming language developed by Microsoft that can be used in .NET.

2,913 questions
Developer technologies | ASP.NET Core | Other
asked 2022-11-29T18:41:08.577+00:00
Jeff Thomas 21 Reputation points
edited an answer 2026-11-13T03:01:02.9366667+00:00
Jeff Thomas 21 Reputation points
1 answer

Change date display with DateTimePicker

hi Welcome The following tool DateTimePicker takes the Date of the device. I want if the date of the device is Hijri, the date will be shown in the tool DateTimePicker with the Gregorian date. I have tried all of the following methods to bypass…

Developer technologies | VB
Developer technologies | VB

An object-oriented programming language developed by Microsoft that can be used in .NET.

2,913 questions
asked 2021-08-02T10:37:03.36+00:00
AMER SAID 396 Reputation points
answered 2026-11-01T05:40:15.0566667+00:00
Riyadh Prayer 0 Reputation points
2 answers One of the answers was accepted by the question author.

Redistribution of Graph32.OCX in a VB6 application

Hello everybody. I have an old VB6 application, developed using VB6 Enterprise edition, that uses the Graph32.OCX control in a form. I am trying to find out what the redistribution rights are for this control for inclusion in an SBOM. I am familiar with…

Developer technologies | VB
Developer technologies | VB

An object-oriented programming language developed by Microsoft that can be used in .NET.

2,913 questions
asked 2026-10-28T09:25:21.44+00:00
Duncan Howe 20 Reputation points
commented 2026-10-29T10:59:32.2533333+00:00
Gatlin Le (WICLOUD CORPORATION) 1,475 Reputation points Microsoft External Staff Moderator
3 answers

Need to understand command structure in VBA for Word

Is CopyFolder a standard command or is it a combination of Copy and Folder?

Developer technologies | VB
Developer technologies | VB

An object-oriented programming language developed by Microsoft that can be used in .NET.

2,913 questions
asked 2026-10-15T12:27:16.52+00:00
Coates, Donald 5 Reputation points
edited a comment 2026-10-25T17:51:26.2533333+00:00
nora3422 0 Reputation points
1 answer

Westminster Clock Chime .wav files not sounding genuine when generated from a VB.NET Program

I have some code that supposedly is supposed to create Westminster Clock Chime .wav files. However, the .wav files don't sound like true Westminster Clock Chimes. I am not sure how to fix it. Imports System Imports System.IO Imports…

Developer technologies | VB
Developer technologies | VB

An object-oriented programming language developed by Microsoft that can be used in .NET.

2,913 questions
asked 2026-10-01T11:34:07.6466667+00:00
Marc Menzel 121 Reputation points
commented 2026-10-12T02:13:00.44+00:00
Brian Pham (WICLOUD CORPORATION) 1,425 Reputation points Microsoft External Staff Moderator
2 answers One of the answers was accepted by the question author.

Bug? Please confirm: "Progress Bar" color is always displaying as green regardless of Forecolor setting.

I may have stumbled across a bug in VS2026. Can anyone please confirm? I can't change the Forecolor of a progress bar. It's always coming up green regardless of the Property setting or when attempting to change the color via code. (No sample code. Simply…

Developer technologies | VB
Developer technologies | VB

An object-oriented programming language developed by Microsoft that can be used in .NET.

2,913 questions
asked 2026-09-24T12:00:23.6733333+00:00
Mugsy's RapSheet 266 Reputation points
edited a comment 2026-09-29T02:25:21.6433333+00:00
Nguyen Dam (WICLOUD CORPORATION) 1,420 Reputation points Microsoft External Staff Moderator
2 answers One of the answers was accepted by the question author.

Using VBS to open Excel spreadsheet with write access

I'm looking for assistance getting a vbs script to work with Task Scheduler on a new PC I've recently bought and configured. This script works fine when I manually run it, but it not working properly when I use Task Scheduler to run it. Also, this…

Developer technologies | VB
Developer technologies | VB

An object-oriented programming language developed by Microsoft that can be used in .NET.

2,913 questions
asked 2026-09-13T15:34:31.2366667+00:00
Rick Crosby 40 Reputation points
commented 2026-09-17T01:35:01.16+00:00
Jay Pham (WICLOUD CORPORATION) 4,760 Reputation points Microsoft External Staff Moderator
1 answer One of the answers was accepted by the question author.

Help to create a usercontrol VB.NET

I am trying to create a "Group" user control—similar to a GroupBox—that features a title and a "Launcher" button next to the title, while allowing me to add any other desired controls to the main body of the group later on the form.…

Developer technologies | VB
Developer technologies | VB

An object-oriented programming language developed by Microsoft that can be used in .NET.

2,913 questions
asked 2026-09-15T14:56:30.37+00:00
Apostolos Doudakmanis 161 Reputation points
accepted 2026-09-16T10:33:45.39+00:00
Apostolos Doudakmanis 161 Reputation points
1 answer

Calculator

Arkadaşlar ben bir hesap makinesi kodladım ve bu makinede Virgüllü toplama ,çıkarma çarpma veya bölme yapamıyorum.Mesela 8,6*7,2 diyorum Makine bunu 8*8,6 olarak algılayıp çarpıyor.Yardımınız lazım lütfen. - Türkçe Hi. I designed a Calculator and I…

Developer technologies | VB
Developer technologies | VB

An object-oriented programming language developed by Microsoft that can be used in .NET.

2,913 questions
asked 2021-02-08T19:06:29.7+00:00
JuiceMiner66 1 Reputation point
edited an answer 2026-09-15T07:01:58.2766667+00:00
Michael John 0 Reputation points
3 answers One of the answers was accepted by the question author.

Null data not handled properly

I am reading data from a SQL Server database with this code: Dim rdr As SqlDataReader = cmd.ExecuteReader While rdr.Read() evnt = New MyEvent With { .EventID = If(IsDBNull(rdr.GetInt32("EventID")), Nothing,…

Developer technologies | VB
Developer technologies | VB

An object-oriented programming language developed by Microsoft that can be used in .NET.

2,913 questions
asked 2026-09-13T16:06:35.95+00:00
RogerSchlueter-7899 1,801 Reputation points
commented 2026-09-15T02:40:49.04+00:00
Gatlin Le (WICLOUD CORPORATION) 1,475 Reputation points Microsoft External Staff Moderator
4 answers One of the answers was accepted by the question author.

In wpf with vb, there is no closing of a popup opened from another popup with the Staysopen property set to true.

Hello, In WPF with VB, I have a main window representing a toolbar. A button in the main window opens a popup with the StaysOpen property set to True. From a button in the popup, I open a second popup with StaysOpen set to False. After the first time the…

Developer technologies | VB
Developer technologies | VB

An object-oriented programming language developed by Microsoft that can be used in .NET.

2,913 questions
asked 2026-08-08T17:23:32.26+00:00
jacky Perpète 216 Reputation points
answered 2026-09-05T04:22:35.0333333+00:00
jacky Perpète 216 Reputation points
3 answers One of the answers was accepted by the question author.

Why does my code work only once?

My application includes a stopwatch plus a lap counter. The stopwatch is working fine using the following code: Private Sub StartTimer(sender As Object, e As RoutedEventArgs) Handles btnStart.Click CurrentTime = TimeSpan.Zero LapTime =…

Developer technologies | VB
Developer technologies | VB

An object-oriented programming language developed by Microsoft that can be used in .NET.

2,913 questions
asked 2026-08-22T02:35:16.3133333+00:00
RogerSchlueter-7899 1,801 Reputation points
commented 2026-08-25T05:15:40.6566667+00:00
RogerSchlueter-7899 1,801 Reputation points
2 answers One of the answers was accepted by the question author.

How do I restore controls and there properties from a .json file?

I am trying to learn some new things with VB.Net that I have never done before, like creating custom controls, and so far I have been able to look things up on Google and modify them to suit my needs. I have come to a situation where I now need to…

Developer technologies | VB
Developer technologies | VB

An object-oriented programming language developed by Microsoft that can be used in .NET.

2,913 questions
asked 2026-08-13T05:43:00.5433333+00:00
Cynolycus 305 Reputation points
commented 2026-08-19T00:55:24.6166667+00:00
Jay Pham (WICLOUD CORPORATION) 4,760 Reputation points Microsoft External Staff Moderator
2 answers

Request for Microsoft guidance: Migration strategy from VB.NET/ASP.NET MVC/System.Web to .NET 10

Dear Microsoft Support Team, We are currently evaluating a modernization strategy for an existing enterprise system, GMTP/F-GDC, and would like to request Microsoft's official technical guidance before deciding on our migration approach. 1. Current…

Developer technologies | VB
Developer technologies | VB

An object-oriented programming language developed by Microsoft that can be used in .NET.

2,913 questions
asked 2026-08-08T06:24:25.0766667+00:00
PHAM VAN NAM 5 Reputation points
commented 2026-08-17T03:35:52.9766667+00:00
Danny Nguyen (WICLOUD CORPORATION) 8,985 Reputation points Microsoft External Staff Moderator
3 answers

Can an existing VB.NET ASP.NET Web Forms application be migrated to .NET 10 while keeping VB.NET?

Hello Microsoft Support, We have a legacy enterprise system developed with VB.NET on .NET Framework 3.5 (ASP.NET Web Forms). We are planning to migrate the system to .NET 10 and would like to minimize code changes. Our questions are: Is it possible to…

Developer technologies | VB
Developer technologies | VB

An object-oriented programming language developed by Microsoft that can be used in .NET.

2,913 questions
asked 2026-08-06T10:16:00.91+00:00
PHAM VAN NAM 5 Reputation points
commented 2026-08-13T02:50:54.42+00:00
Damien Pham (WICLOUD CORPORATION) 2,300 Reputation points Microsoft External Staff Moderator
3 answers

Reading Datafile in As Few Lines As Necessary

I know the DataReader method, but I thought there was a way using "ReadLine" or something like that.

Developer technologies | VB
Developer technologies | VB

An object-oriented programming language developed by Microsoft that can be used in .NET.

2,913 questions
asked 2026-08-03T18:21:58.1066667+00:00
Stephen Woehr 0 Reputation points
commented 2026-08-11T01:23:49.9566667+00:00
Jay Pham (WICLOUD CORPORATION) 4,760 Reputation points Microsoft External Staff Moderator