This article will step you though the process of a
creating an add-in for Visual Basic. Add-ins are useful as they allow you to automate
common tasks so instead of typing heaps of code you can get the basis of what you need
done with a click of the mouse. They can also be used to perform such tasks as code
indenting and moving controls on a form.
The Add-in we will be creating will allow a form or
selected controls on a form to scaled by a given percentage. This will demonstrate how to
access controls on a form and get and set their properties.
The code for this add-in was written for Visual Basic 5.0.
HTML is becoming a standard interface, as many users are
familiar with web browsers it makes sense to model your are applications around this
interface.
In this tutorial you will learn how to respond to the web
browser control's events. The program we will create, will display a message box box when
you click on the icons (configuration or search).
A stack is a data structure where you can only access
the item at the top. With a computer stack just like a stack of dishes you add items to
the top and remove them from the top. This behavior is know as LIFO (Last In First Out).
A stack can be implemented in Visual Basic using references
to objects or using an array. The array option is the easiest to implemented in VB and
because we can dynamically resize an array in Visual Basic the stack can still grow and
shrink.
The stack below is implemented in a class called
"clsStack".
In VB references to object can be used to link the nodes
of a heap or an array can be used. Arrays where used in this implementation because they
can be dynamically resized in Visual Basic giving the main advantage of the reference
option with a lower memory overhead because references don't need to be kept.
In this tutorial you will learn how to send mail using
the standard Simple Mail Transport Protocol with out using any 3rd party DLLs or OCXs.
Redirecting the standard output and standard error
Capturing the output of a shell application can be useful,
you could use it to create a better ms dos window or create a development environment that
runs the compiler and returns any error messages.
DOS applications send their output to the standard output
pipe and error messages to the standard error pipe. Usually these pipes are directed to
the screen so the user can see what's happening.
In order to capture the output of a shell dos application
our application must redirect the stdOutput and stdErr pipes from the screen to a pipe
that we create.
The function shown below will execute the application
specified and return it's output.
|