I bought one of those teensy USB breakout boards to play around with.
http://www.pjrc.com/teensy/index.html
I cant find any info on the web about interfacing this board with VB6 to use for I/O.
Anyone have any experience with this?
I am polling my printer port for inputs 10,11,12,13, and 15.
I was wondering which method would be faster?
This one:
_____________________________________________
Global pin(5) as boolean
Dim x as integer
'sub to read printer port
For x = 0 To 5: pin(x) = False: Next x
'code to read port and...
Im using app.previnstance to end the program if a copy is already running.
In form_load:
If App.PrevInstance Then Unload Me: Exit Sub
But Im also using form_queryunload in the form, to detect if someone clicks the X (close) on the form.
Im using form_queryunload to detect if any settings on...
Ive been searching on here and on the net for a easy way to add my program to the startup list in msconfig, and to remove it, both from the program itself.
I finally came up with this:
I have one check box on the form.
Private sub Form_Load()
'This checks to see if the startup exists, and...
I have searched for an answer and cant find one. Sorry if this has already been answered and my searching techniques are to blame.
Anyway, Im working on a check book application.
I have a text box where user can enter the amount of the check, Example: 125.32
I have the text box data type set as...
I would like to be able to detect when windows goes into power saving mode, for example, turns the monitor off.
I would like to turn on (or off) a printer port output to dim a marquee lamp above the monitor when the monitor shuts down.
I already know how to read and write to the printer port...
Hi all..
I have a small program with 4 forms and 1 module.
When I exit the program (from form1), I use this method:
Set Form4 = Nothing: Unload Form4
Set Form3 = Nothing: Unload Form3
Set Form2 = Nothing: Unload Form2
Set Form1 = Nothing: Unload Me
Is this sufficient to unload everything from...
When I first started programming with VB6, seems like the most popular way to load another form from within a form would be:
form2.visible = true
But lately I have seen a lot of people using:
form2.show
What is the main difference between these? And which is the preferred method?
Thanks.
I have found the code (below) that you posted (nearly 2 years ago) very useful in a program I'm working on.
The original thread was closed so I couldnt comment on it in that thread.
But since I used it, I feel I should thank you for it, so...
Thank you!
(For other's info, this piece of code...
I have a program that does some behind the scenes things, then displays a form.
I have form's key preview set to true, maximised, control box false. The form should and does fill up the whole screen. I have windows taskbar set to autohide, so all I see on the screen is my form.
The form expects...
Hello all..
I am writing a small program that will allow users to pick from a few fonts in a menu.
I was wondering if there is anyway to tell what fonts the user has on his(hers) computer.
If I, for example, give comic sans ms as a choice, but the user's computer doesnt have that font, what will...
Hi all..
I have a program I wrote that outputs abnormal program activity to a text file.
Example: Say user tries to choose a non-existant path:
message= "Path error encountered."
Goes to a sub called logme:
sub logme
open "errorlog.txt" for append as #1
print #1, message
close 1
Pretty simple I...
I have searched the forums but cant find a good answer to my question.
I would like to open .png files with VB6 but cant.
I can however open the png file with MSpaint, then re-save it as a .jpg file. Then I can open the .jpg image with VB6.
It would be real neat if I could automate this with...
I have a form with two list boxes, a couple of command buttons, and a few labels.
The form starts up in normal windows position.
If I maximise the form, all the items (list boxes, etc.)
appear in the upper left corner. It is like the form expands to the right and down to fill the screen, but all...
Is it possible for VB6 to rotate the screen output 90 degrees?
Example, if I wanted to turn my monitor on its side, can VB6 turn the screen back to a position you can easily see?
I know this sounds ridiculus, but it is a real question.
Hi..
I have a form with one list box on it. (named List1)
I enter the following code in sub Form_load:
for x= 1 to 10
list1.additem x
next
list1.additem "Hello"
list1.additem "World"
list1.additem "How are you"
list1.additem "today?"
end sub
Now, when I run it, I can scroll through the items...
I know this is probably very simple, but Im having a problem when trying to replace chr(13) in a string with a comma (",").
The string is coming from a text box set to multiline.
here is an example:
Dim x as integer
Dim a as string
Dim b as s tring
a =text1.text
for x= 1 to len(a)
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.