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 SkipVought 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: Digsy
  • Order by date
  1. Digsy

    How can I read an entire line of text in VisualBasic

    Use this code or similar Line Input #1, s to achieve what you want to do . Note this uses Line Input and not simply [b]Input[/] Dave
  2. Digsy

    Forms get bigger on different computers

    This sounds like it could be something to do with the font size settings on the PC i.e. small or large fonts. I had a similar issue with one of my forms, the only way i resolved it was to make sure it looked ok on 'Large Fonts' and then it normally looked ok on Small Fonts too. Dave
  3. Digsy

    VB Exe

    > but sleep will make it ignore the shutdown signal, wont it? It will, which is why I have suggested he makes it sleeps for shorter periods within a loopp and does a DoEvents after each shorter sleep
  4. Digsy

    VB Exe

    Also You may need to experiment with the maximum value of Counter and the amount of time it sleeps for until you get it right.
  5. Digsy

    VB Exe

    The problem is that you program is doing the sleep in one lump. You could maybe try changing it so that it sleeps for lots of smaller times in a loop and put a DoEvents in with it to allow the program to respond to Windows trying to close it. e.g. Add a new integer varaible Counter and then...
  6. Digsy

    VB Exe

    Without seeing the code it is difficult to know why it is hanging up. However doing some of these may help. - Use DoEvents in any big loops, this should mean that when Windows tries to kill the app the command will get acted upon and it should shut down - Try to make sure that all forms...
  7. Digsy

    Running my program on a different computer

    No problem, i'm glad that it helped you. Thanks for the star. Dave
  8. Digsy

    Running my program on a different computer

    Pressed the enter key too soon again. You can specify where you want the files to go on the user's PC but i usually just leave the default values it gives. After using the Package & Deployment Wizard you are usually left with a Setup.exe file and a cab file containing all the files required to...
  9. Digsy

    Running my program on a different computer

    Forgot to say the Package & Deployment Wizard should work out what you need to include in the package to ensure that your program will succesfully install on most PCs.
  10. Digsy

    Running my program on a different computer

    Hi Christian, It may be enough to copy the VB6 runtime dll "MSVBVM60.DLL" into the user's C:\WINNT\system32 (or equivalent) directory However you should really look in to using the "Package & Deployment Wizard". It is avaiable at Start->Programs->Microsoft Visual Studio 6.0 -> Microsoft Visual...
  11. Digsy

    Good Form Design - Please Comment

    Hi Greg, Here is an idea you might want to consider. In the load event for the form where the users add/modify a client set the focus to the first text box e.g txtFirstName.setfocus or whatever. Then if the user wants to select someone out of the combobox they will do so as it is natural to...
  12. Digsy

    subscript out of range

    Hi Warren, You have not given any dimensions to your FileArray array. You need to either give it a size as you declare it i.e. Dim FileArray(10) As String or ReDim as you go along i.e. For Each sf In f.SubFolders ReDim Preserve FileArray(i) ' ReDim array here and preserve contents...
  13. Digsy

    Reading the array number from a combo box

    You are looking for the ListIndex property. e.g cboBox.Listindex
  14. Digsy

    Add Dockable Window to Word 2003 thats hosts a Form

    or even Try forum707 for a start.
  15. Digsy

    Add Dockable Window to Word 2003 thats hosts a Form

    Try forum707 for a atart.
  16. Digsy

    Repeat function..

    Is it always 7 times or does the number change? Have you got more than 1 form running? Also just for 'fun' try putting the End statement into Form_Unload() aswell. Private Sub Form_Unload(Cancel As Integer) CallAgain = False End End Sub Dave
  17. Digsy

    Repeat function..

    Hi, Your delay function is working ok. I ran my own little test of it using a label on a form which is updated every X seconds. The only problem i had was that when I closed the form it would re-open again when the function ListSager was called again after completion of the delay routine. If...
  18. Digsy

    delete directory contents

    You can use the kill command to acheive this. Like so. Dim MyDirectory As String MyDirectory = "c:\test" ' Name of directory want to delete all files in. Kill MyDirectory & "\*.*" ' Delete all files in 'MyDirectory'
  19. Digsy

    Open text File

    Two points that may help you. First point is your variable Filepath5 is actually being declared as a variant rather than a string as it lokks like you intended, to correct this you need to declare the variables as Dim FilePath5 As String, strbuffer As String Second point,It is normally a good...
  20. Digsy

    Dodgy if statement need help

    Ooops pushed enter too soon The brackets will also sort out any order of precedence issues that may be causing your code not to work, I believe that 'And' has a higher order of precedence than 'Or' but not 100% certain on that. Dave

Part and Inventory Search

Back
Top