Category "vb.net"

Get row with first 10 empty cells in excel spreadsheet

I am creating a vb.net application to update an excel spreadsheet. I access the excel file using Imports Microsoft.Office.Interop. So far I can add data to the

Windows forms scalling

I'm trying to avoid wrong form showing when "Scale and layout" in windows screen settings is different than 100%. I've folloved this LINK, and it works but only

Handling property change several layers down

I am new to events and handling them, and this is a simplified example of the structure I have: Public Class Main Public world As World Public totalWorl

System.IndexOutOfRangeException: 'Index was outside the bounds of the array.' in datagridview

I'm trying to retrieve data from the web to desktop using vbnet, but whenever i tried to show it on datagridview it show this error. It only succes when i only

What is a NullReferenceException, and how do I fix it?

I have some code and when it executes, it throws a NullReferenceException, saying: Object reference not set to an instance of an object.

Get Labels from loaded ML.NET model

I have followed the ML.NET tutorial for image classification and already created my first Model. (https://docs.microsoft.com/en-us/dotnet/machine-learning/tutor

Visual Basic - 'GetObject' Not Declared

I've been running into an issue while attempting to update a script from VBScript to standard VB. The script simply checks for any running processes of Excel, t

Google.Analytics.Data.V1Alpha - property "daterange" read only

https://developers.google.com/analytics/devguides/reporting/data/v1/quickstart-client-libraries I have run the sample code of the quickstart in c# and this work

How do I programmatically click "Submit" on a Google form using Visual Basic?

I'm coding an A.I. in Visual Basic and when it when it doesn't know something the user inputted, it'll send the user's input into a Google form and submit it au

This method can't be used with an inline response mail item

I have an Outlook add-in that monitors sent items and moves specific emails to a folder. I am not sure what have changed, but when I send an email, I get this e

File Saveas or copy from xls to xlsx

I have an excel file in the C disk named C:\Book1.xls How can I saveas C:\Book1.xls to C:\Book2.xlsx ? Is there a System.IO.File.SaveAs class? The following

ClosedXML Gives 'File Corrupt' Error, But File is Not Corrupt (VB.net)

I am using the ClosedXML package (version 0.95.4) to open an Excel file (.xlsx), which was previously saved in a folder to which the application has access. Th

Split an Image into different PictureBoxes

I have a Image with size 187x16 which contain 10 smaller Images in a row. I want split those Images into 10 different PictureBoxes. Original Image: Dim

SQL (INSERT INTO) COMMAND DOES NOT WORK IN OLEDB IN VB.NET

I want to update in the "CIU" column in the database "GSDTS" and retrieve the data or values from the database "IFGTS" in the column "PRSOBNET" based on the con

Visual Basic loop sum of integers ^ 2 till user input. power of 2

I need help with one simple task: Input an integer number n and output the sum: 1 + 2^2 + 3^2 + ... + n^2. Use input validation for n to be positive. My code d

Check if email is digitally signed using VB.Net

I would like to know if it's possible, using VB.Net, to check if an e-mail is digitally signed and who is the issuer of the certificate. Using Extended MAPI Wr

vb.net: chart axis.X showing label is strange

Hope someone can help. Have a chart in vb.net winforms embeded which shows weeks on the axis.X. Interval is 8/30/2021 to 9/9/2022. AxisX.Interval is set to 1. F

Placeholder in TextBox in Window Forms using VB.NET

I'm working on a Windows Forms application in VB.NET and I am currently making a login screen using labels and TextBoxes. What I need is the Placeholder in Text

Hi folks. I am trying to update an app to VB dot net from vb6 and have enouctered a really basic problem. I will add the code of course in a sec. I

Trying to update an old VB6 app to VB.Net. I am having trouble with syntax, I think. In any case it is a simple matter of inserting a new record to the autolo

How to make the ball animate like its rolling And also the kicker how to animate the soccer player and how to sync them so it looks like he is kicking

THE PROGRAM HAS 3 FORMS FORM 1 CODE Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Lo