Posts Tagged “VB.NET”

VB.NET WebBrowser dialog popup automatic handling

By | August 21, 2011

A recent site visitor had a fairly simple requirement which involved crawling a specific web page and clicking a button. Pretty basic stuff. And then it happened… clicking that button produced a javascript “confirm()” dialog with OK and Cancel buttons. “Well this won’t be easy” I thought to myself. Just to ensure there wouldn’t be [...]

Read more »

Detecting completely loaded page using VB.Net WebBrowser including all frames

By | February 5, 2011

Something I depend on quite frequently is determining when a web page in a WebBrowser control has completely loaded, including all frames. If you’ve ever worked with this control and relied on the DocumentCompleted event, you may have come across the inconsistency with it when dealing with pages that contain HTML frames. The little snippet [...]

Read more »

Loop through HTML elements to set or retrieve values

By | January 23, 2011

So, in this week’s installment, we’ll look at some basic HTML parsing methods and also how to fill out forms and submit them via code. I still see a lot people asking how to get the text from a specific hyperlink or setting the value of an input box on a web page. In this [...]

Read more »

Scraper – Custom .Net Class for HTML/WebBrowser Document scraping and automation

By | December 21, 2010

Scraper – Custom .Net Class for HTML/WebBrowser Document scraping and automation Hey All, Noticed a lot of threads on forums lately asking how to “find hyperlinks” or “click a form button on a web page”. I’ve been working on a Class to make this easier for not only myself, but hopefully others as well. While [...]

Read more »

PathManipulate – A custom .Net Class for displaying long file paths in different formats

By | December 18, 2010

Here is a Class that can be used to display long filepaths in different formats depending on your needs. You can specify a desired length, the location of ellipses, and whether the filename is always displayed. It can also be used to return only the filename (with extension) when passed a full path. Updates will [...]

Read more »

VB.Net Error: A generic error occurred in GDI+

By | December 9, 2010

If you’ve ever encountered the “A generic error occurred in GDI+” error, it may have resulted in the pulling of hair, throwing of blunt objects or the creation of new swear words! I recently faced this problem in a small app I did, and after hours of scouring Google, I couldn’t find a definitive answer… [...]

Read more »

Tutorial: Reading and Writing to text file in VB.Net

By | November 29, 2010

Long overdue for another VB tutorial! So for all 4 of my faithful viewers, here is one of the most asked questions on coding forums, “How do I read from a text file in VB.Net?”. Let’s go over the simple task of reading and writing to a text file. You know the drill… Grab your [...]

Read more »

Download: Lookout Keylogger (Updated)

By | November 22, 2010

Had some interest in the Lookout keylogger application recently, so thought it would be a good time to provide an updated release. This one does a more thorough exception handling job, as well as provides an option to enable or disable error messages (to stay in stealth mode). Adds itself to the Startup folder so [...]

Read more »

Download: TTFix – ttfpatch GUI Supplement

By | October 22, 2010

Tonight I finished putting together a GUI front-end for a font tool my buddy is using. This free tool, ttfpatch (http://www.derwok.de/downloads/ttfpatch/), originally coded by Wolfram Eßer is a command-line tool for editing True Type Font attributes. My buddy also wanted the ability to make changes to an entire directory of fonts (he had something like [...]

Read more »

Download: Big Digital Clock

By | July 10, 2010

At work the other day, I was in need of an application that could display the time and date very large for a “Kiosk” type display at the front of a large room. I perused the net for a web page that had the current time and date on it, thinking I could just increase [...]

Read more »

Download: Keystroke Logging and Screenshot Gathering (Lookout)

By | April 16, 2010

Against my better judgment, I decided to post this project on basic keylogging and screenshot techniques. There are a few legitimate cases where these techniques are needed and it is hard to find information or people willing to help as the immediate malicious red flag goes up. If you are looking for a ready-made keylogger, [...]

Read more »

Tutorial: Email sending with VB.Net

By | December 23, 2009

So you want to send email from your vb.net application? No problem! A lot of times an email is sent in the “background” with pre-configured settings. These could be hard-coded, or stored in the Application/User Settings file. If you want to have fields in your WinForm that ask the user for the information, the concept [...]

Read more »

Tutorial: Autofill HP Service Manager (HPSM)

By | December 4, 2009

So I’ve been asked by a couple of people how I managed to autofill a new HP Service Manager Service Ticket. This is what my company uses for service ticket handling and what not. The IRIS program is able to auto-submit tickets when a device fails a certain amount of times. Here’s the code! Public [...]

Read more »

Tutorial: Ping Network Device

By | August 11, 2009

Introduction: I often see many people asking how to do a ‘ping’ in VB.NET. It is actually quite simple and I utilize it in my IRIS project. This tutorial will teach you how to ping a network device and view the pings’ results. What you will need: Any version of Visual Studio (Express is fine), [...]

Read more »