Category "vb.net"

Reading line count using VB.NET

How to calculate the number of rows in a file which we have uploaded. The file might be either a text file or a CSV or Excel file. I'm using the folowing code t

Uncaught Reference Error: Activexobject is not defined

I am using the activexobject in my project it works fine in IE. I know this is the microsoft control. I want to run the project in Mozila and Chrome but it show

Using a SELECT statement to return a row where a DateTime column = variable of type Date?

I am using OleDb, trying to do this: Dim d as Date = DateSerial(Year(rptDate), Month(rptDate), 1 - 1) Dim conn as OleDbConnection = new OleDbConnection(connSt

Filter sent items based on the recipients email address in Outlook

I am working on an activity facility which stores incoming and outgoing emails in the database for different contacts. I do this by looping through each folder

Unable to cast object of type 'System.EventArgs' to type

In my Form_Load AddHandler KeyDown, AddressOf Form1_KeyDown RaiseEvent KeyDown(Me, e) Event KeyDown(ByVal sender As Object, ByVal e As KeyEventArgs) Private S

How to insert, edit, delete image in SQL using vb.net

I can't Search and Edit using this Code. Insert is working. But Insert coding method is not sure (fileContent.ToString). And Search part and Update part is not

Script to Download xls files embeded in a .msg file

There are 1000s of .MSG files on my d drive and each containe an XLS file,as attachemnt. Is there any way to download these xls files from these .msg file usin

How does the string replace function in VB.net not work?

I wrote up some code. The code is shown below. The first part is to read a html into string format. The second part is to search a mark in the string and replac

Using beep(freq,duration) Repeatedly

I am trying to create a piano that will play the correct note by either pressing the assigned key or clicking the buttons. It works so far using the beep(freq,

Saving Settings to Executable VB.Net

I have read allot of posts on saving settings but none actually get to the heart of what I'm trying to do. I have created a configuration application for a 3rd

Greek VAT validation number code

Is there anybody which can assist me with a code in VB.NET visual studio 2010 for validating Greek TAX Registration number (VAT).

vb.net Insert text into active textbox

In a windows form, I have a button and two textboxes. When I click the button, I want some text to be added into the cursor position of the textbox that is hold

Get specific row col values from mysql using vb 2012

I have one button retrieve I just want to get the database table "account" value by its row and col and display it in a textbox. I keep on getting errors on th

What is a StickyLabel, and why does it sit in a ContextMenuStrip.Contols collection?

I have a ContextMenuStrip which is tight to a ListView, and made of a combination of various ToolStripMenuItem and ToolStripSeparator. I would like this context

Passing data from database containing new line breaks jquery

In a VB.NET project I am dynamically building a jquery using data from a database. Some data are containing new line information which are breaking the script.