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…
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…
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,…
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…
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?
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.…
Visual Baisc
![73485-screenshot-2021-03-03-031339.png][1] [1]: /api/attachments/73485-screenshot-2021-03-03-031339.png?platform=QnA
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.
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,…
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? …
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…
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() =…
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.…
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.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…
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…
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…
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…
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.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…