Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: SkennyR
  • Content: Threads
  • Order by date
  1. SkennyR

    Teensy USB board and VB6

    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?
  2. SkennyR

    Which way is faster?

    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...
  3. SkennyR

    Proper way to use app.previnstance with form_queryunload

    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...
  4. SkennyR

    Add/Remove startup items in MSConfig

    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...
  5. SkennyR

    Currency question about a text box

    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...
  6. SkennyR

    Can VB6 detect when windows turns off the monitor in power saving mode

    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...
  7. SkennyR

    Show available printer port addresses

    How can I show all the available printer port address on my computer, using Vb6? Thanks in advance.
  8. SkennyR

    Progress bar color

    Can I change the color of the progress bar that is in Microsoft Windows Common Controls? I cant seem to get it to change form blue. Thanks..
  9. SkennyR

    Unload project

    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...
  10. SkennyR

    Which is best? form.show or form.visible

    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.
  11. SkennyR

    Thanks Strongm.. (simulate mouse)

    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...
  12. SkennyR

    Form does not have focus

    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...
  13. SkennyR

    Default fonts

    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...
  14. SkennyR

    Reverse entries in a text file

    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...
  15. SkennyR

    Open/SaveAs/Close MSPaint form VB6?

    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...
  16. SkennyR

    Centering things on a form when the form is maximised

    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...
  17. SkennyR

    Rotate screen ouput 90 degrees

    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.
  18. SkennyR

    Can listbox keydown be disabled?

    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...
  19. SkennyR

    Detecting if mouse is connected to PC

    I have searched for this, but cant find the answer. Can a VB6 program detect if the mouse is plugged into the PS/2 port? Thanks in advance.
  20. SkennyR

    Trouble with CHR(13)

    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...

Part and Inventory Search

Back
Top