Hey all,
I've written an app with a textbox that I hope to have scroll to the bottom as I add information to it (a terminal window that shows processing information).
All the info I can find on this issue says to add
text1.selstart=len(text1.text)
and possibly
text1.selLength=0
This does...
Sorry that this turned into a long rant. Maybe someone will find it interesting enough to make it all the way through and comment.
I've been programming VB for quite a while but have managed for the mostpart to avoid using classes. On my latest project I decided to bite the bullet and go...
Sorry that this turned into a long rant. Maybe someone will find it interesting enough to make it all the way through and comment.
I've been programming VB for quite a while but have managed for the mostpart to avoid using classes. On my latest project I decided to bite the bullet and go...
I typically use the MSCOMM control for my serial communication. Since my company (offshore surveying) often uses many serial devices into or out of a single computer, the 16-port limitation of this control has always be inconvenient, but I have managed to live with it.
Now, I have purchased an...
Hi Folks,
I have a program with a single control array element (a command button) and other elements of the array that are created dynamically with the Load command.
I am seeing some unusual behavior with element zero. It seems that sometimes this element exist and sometimes it doesn't. I...
I have a project which accesses a .dll. I have sucessfully accessed the dll in the past by packaging it under the subdirectory with my project. I have declared and used this dll without any problems.
Now I am working on a new project on a new Windows 2000 machine. The exact same code to...
Hi all,
I have an alternate way to make a Wizard-like interface. I'd like to post it as a FAQ, but perhaps someone would be willing to give me some feedback first? Here is the FAQ:
Using the SSTab control to make a Wizard in VB:
I like to use the SSTab control to make my Wizard-like...
Hi all,
I am working on a program that reads data from a serial port. I am using a commercial Com-port library (Greenleaf) to poll the port. The program runs fine in design mode but when I try to run the .exe (or an install from the deplotment wizard) the program crashes and returns the...
I am working on a project where values of up to 10 decimals points are significant.
I am loading values from a binary file, so I am forced to read them in as singles. They are stored in a temporary variable which, for the sake of simplicity, I am calling "mysingle". If certain...
Hi everyone, I just submitted a new FAQ (which hasn't yet been posted). I would however like to make it as good as possible, so I would like any feedback that users here would like to offer. So, to get the feedback rolling, I'm posting the text of the FAQ below:
How to draw a...
Hi Folks,
Unix sytems often timestamp data with a unique timestamp.
This time is typically defined as the number of seconds since Jan 1, 1970. Has anyone come across a formula to convert this "Unix time" to a more meaningful time (ie: a date and time that I can read)? Is this...
Is there a way to choose the data type of a structure in code? A silly example to illustrate the idea:
type mystruct
x as double
y as double
end type
private sub testsub()
dim myvariable as mystruct
dim flag as string
flag = "x"
myvariable.flag = 10
end sub
Of course...
I have an argument type mismatch, but I believe all variables are of matching types. Any ideas why this might be occuring?
How the variables are defined in the calling subroutine:
Dim x_small, y_small, x_large, y_large As Double
Dim xmid, ymid As Double
Dim x_adjust, y_adjust As...
Hi Everyone,
I am running VB 5 on Windows 2000. When I try to run the application setup wizard I get the following error:
"Invalid Property Value"
"An Unexpected Error Has Occured"
Is anyone familiar with this problem? Any ideas are most appreciated.
Thanks,
Ryan
Hello gentlemen,
When running a program, I get an overflow error. If I put a breakpoint on the offending line, the overflow errors cease.
The code is:
x_small = CDec(xavg - (scale_val / 1.9))
All the variables are variants (scale_val is a decimal) and have been declared as such.
When...
Hi everyone,
Is there any straightforward way to save the contents of a picture box as, say, a metafile, or another type of raster image (the "print screen" button, notwithstanding).
The idea here is to plot some data in a picbox and report the results in a Word document.
BTW I am...
VB-ers,
I just discovered this site this morning and must say that I am excited by the find. This appears to be a great forum.
My question is this: I stumbled upon a seemingly great way to load a text file to an array in the FAQ. The code is:
Get #ff, 1, wholefile
Close #ff
If...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.