2,714 questions with VB-related tags

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

g.SmoothingMode = SmoothingMode.AntiAlias

Just a quick question regarding the use of AntiAlias. If I want every line or curve I draw to be as smooth as possible do I need to use this everytime I go to draw a line or circle or is it once you set it does it stay in affect? And one quick question…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,714 questions
asked 2021-03-06T22:54:26.257+00:00
Les 281 Reputation points
accepted 2021-03-07T06:06:08.937+00:00
Les 281 Reputation points
5 answers One of the answers was accepted by the question author.

SendMessage to Watermarking Edit Controls

Hello Guys, I would like to write in an other application Watermarking (for example: Type here) search textbox . I tried usung the sendMassage methods, but it was unsuccesful. If the textbox is unfocused I changed only the grayed…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,714 questions
asked 2021-03-06T10:24:15.29+00:00
Labi 21 Reputation points
accepted 2021-03-06T18:07:43.05+00:00
Labi 21 Reputation points
1 answer One of the answers was accepted by the question author.

Integer vs single format in PointF function

I posted this initially in the wrong forum so excuse the double post. I am working with graphing some functions and I need some clarity on the following code snippet. For x = -175 To 175 Step 0.1 y = -CSng((x ^ 2) / 100) pts.Add(New PointF(x,…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,714 questions
asked 2021-03-04T20:08:40.667+00:00
Les 281 Reputation points
accepted 2021-03-06T05:32:05.247+00:00
Les 281 Reputation points
1 answer

In a list of integers, Find the index of a cell where the value in it is >600

Hello everybody, I have a list of integers. The list is sorted in ascending order. I am looking for a search tool in VB.NET that will return the first index, where the value in list is >600. Of course I can do it with a loop, but I have a feeling that…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,714 questions
asked 2021-03-04T22:56:36.493+00:00
Moshe Maor 21 Reputation points
commented 2021-03-04T23:19:09.727+00:00
Moshe Maor 21 Reputation points
8 answers One of the answers was accepted by the question author.

Self-destructive VB Application

Hi, Have VB application and here I have few buttons, one of them is "Exit" and I have following code: Me.Close( ) Me.Close ( ) exists from this app, is it possible to delete this file as well / kind of self destructive?

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,714 questions
asked 2021-02-26T12:23:21.237+00:00
~OSD~ 2,176 Reputation points
commented 2021-03-03T10:43:44.37+00:00
laurentcutey-3677 16 Reputation points
0 answers

Does ServicePointManager.SecurityProtocol handle both http and https (encrypted web pages)?

I have some code that downloads files off the net. (This is to save me time, for instance if I want to read news items from a opinion-site, I can load the links I'm interested in a user-friendly way.) Those files could be web pages, or PDFs, or text.…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,714 questions
asked 2021-03-02T22:28:11.897+00:00
gideon isaac 81 Reputation points
commented 2021-03-03T03:22:46.523+00:00
Xingyu Zhao-MSFT 5,366 Reputation points
0 answers

Visual Baisc

![73485-screenshot-2021-03-03-031339.png][1] [1]: /api/attachments/73485-screenshot-2021-03-03-031339.png?platform=QnA

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,714 questions
asked 2021-03-02T19:15:19.407+00:00
jianing zheng 1 Reputation point
commented 2021-03-02T22:47:55.797+00:00
Karen Payne MVP 35,401 Reputation points
0 answers

How do I make it so that my sprite will always be facing towards the mouse cusor? Visual Basic.

So I want to make it so that my character is always facing wherever the users mouse is. can someone help me with this. I'm trying to replicate what's done in a game called Darkwood if that makes things clearer.

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,714 questions
asked 2021-02-28T20:19:18.773+00:00
person78645 1 Reputation point
commented 2021-03-01T04:01:09.923+00:00
Castorix31 84,471 Reputation points
2 answers One of the answers was accepted by the question author.

Checking if a decimal number is between the top half or the bottom half or the same in VB.NET.

I'm trying to check if a decimal number is in the bottom half or the top half with VB.NET. For example: If the number is 2.3 or 1.25333 or 1.000001 or 1, then it reports that the number is in the bottom half. If the number is 0.5, 1.5, 2.5, 3.5,…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,714 questions
asked 2021-02-27T04:32:17.407+00:00
blinkor12 101 Reputation points
accepted 2021-02-28T07:02:52.657+00:00
blinkor12 101 Reputation points
1 answer

Microsoft Translation API for Winform

I'm trying to use the Microsoft Translation API in VB.Net, I'm using the Microsoft sample codes (I converted the code from C# to VB.Net), it was working fine until a month ago, but now, it's giving an error. Does anyone know the solution for this? …

Azure Translator
Azure Translator
An Azure service to easily conduct machine translation with a simple REST API call.
388 questions
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,843 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,714 questions
asked 2021-02-27T10:37:06.897+00:00
Inventerio Soft 1 Reputation point
answered 2021-02-27T11:15:26.517+00:00
Ken Tucker 5,851 Reputation points
1 answer One of the answers was accepted by the question author.

Problem with graphing an array

I must not have a full understanding of how to work with some of the graphic functions and need your help. I have included my code with 3 pics. Pic 1 is when I plot the portion of the graph I am working with, pic 2 is the successful plotting 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,714 questions
asked 2021-02-26T19:34:12.377+00:00
Les 281 Reputation points
commented 2021-02-26T21:41:25.043+00:00
Les 281 Reputation points
3 answers One of the answers was accepted by the question author.

How To Initialize A List Of String-Arrays

Hello everyone, I have a function f that takes a list of String-Arrays ( List(Of String()) ) as an argument. Right now I'm passing it to the function like this: Dim string1 As String() = {"foo", "bar"} Dim string2 As String() =…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,714 questions
asked 2021-02-26T08:55:00.887+00:00
Cator Canulis 21 Reputation points
answered 2021-02-26T21:01:13.047+00:00
Cator Canulis 21 Reputation points
2 answers One of the answers was accepted by the question author.

How can I move nodes between two treeview controls

I am trying to move nodes between two treeview controls without success. How can I drag/drop one node from treeview1 to treeview2. I managed to do it inside the same treeview but I failed when I tried between two treeview controls. Can you please help.…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,714 questions
asked 2021-02-23T13:17:21.767+00:00
Abdelmalek Aitouche 176 Reputation points
commented 2021-02-26T20:12:42.793+00:00
Abdelmalek Aitouche 176 Reputation points
0 answers

Binding Error with <Browsable(False)> DataGridView

Hallo, I am trying to hide a property in DataGridView using <Browsable(False)> , but if i use it i get binding error. I have lot of properties they are bound to some controls on the form but i don't want many of them to be displayed in…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,714 questions
asked 2021-02-14T15:33:54.607+00:00
Hobbyist_programmer 621 Reputation points
commented 2021-02-25T07:54:24.913+00:00
Xingyu Zhao-MSFT 5,366 Reputation points
3 answers One of the answers was accepted by the question author.

vb.net > Process.Start ( )

Hi, I have two Process.Start ( ) commands as: ![71695-image.png][1] Problem: If fist Process.Start ( ) command failed to find exe file (for example, mspaint.exe1), I get file not found error <which is expected > but problem is that next…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,714 questions
asked 2021-02-24T18:19:39.793+00:00
~OSD~ 2,176 Reputation points
commented 2021-02-25T06:19:19.063+00:00
~OSD~ 2,176 Reputation points
3 answers

Problem adding values assigned to check boxes

Hi all, I am running a simple program but am stuck when trying to tally up my check boxes. I assigned my chkBoxes values as such: Const CdblchkLevel3 As Integer = 5 Const CdblchkCloud As Decimal = 10 Const CdblchkOnSite As Decimal = 15 When I try 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,714 questions
asked 2021-02-25T00:13:50.58+00:00
Hekzdaddy 121 Reputation points
commented 2021-02-25T02:18:14.347+00:00
Hekzdaddy 121 Reputation points
1 answer

How to move only Current Row Column(4) and Column(5) using Enter Key in datagridview for VB.Net

I have facing some problem in datagridview current row movement. I want entry some number in Column(4) then press Enter key then next focus to Column(5) entry somthing then press Enter key add new row then focus. I was write some code. Someone know…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,714 questions
asked 2021-02-22T19:21:10.91+00:00
dopen oinam 1 Reputation point
commented 2021-02-24T07:07:08.133+00:00
Jack J Jun 24,501 Reputation points Microsoft Vendor
3 answers

It was exception unhandled during debugging my vb project

Hello, i would like to ask for solution in my code after i got 'exception unhandled' at line 13 da.Fill(dt) . here is my codes Imports System.Data.OleDb Imports System.Data Imports System.Data.DataTable Public Class frmMain Dim source1 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,714 questions
asked 2021-02-22T19:28:16.04+00:00
Ismet Othman 1 Reputation point
answered 2021-02-24T06:36:54.75+00:00
Peter Fleischer (former MVP) 19,321 Reputation points
2 answers

How to Group by using LINQ in VB.NET?

The following code can find duplicate files based on the same file size. But I want to dynamically increase more search conditions. For example, when the variable compareName = true, add the condition that compare the file name (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,714 questions
asked 2021-02-17T10:28:32.647+00:00
Steven Young 261 Reputation points
commented 2021-02-24T01:11:10.487+00:00
Steven Young 261 Reputation points
1 answer

VB.Net to test Camera, Mic and Speakers

Hi, On Windows 10, I need to test / verify if Camera, Sound and Mic are working properly or not. There are certain web sites that offer this type of services /tests.. but is f possible to perform these test with a .net form application? I have not 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,714 questions
asked 2021-02-21T18:12:08.767+00:00
~OSD~ 2,176 Reputation points
commented 2021-02-23T19:04:51.973+00:00
~OSD~ 2,176 Reputation points