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 strongm 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: *

  1. AndyTWI

    Small problem with Immediate window

    Additionally, while it's floating, you can click the X in its top-right corner. You can reopen it by pressing CTRL+G.
  2. AndyTWI

    declaration of global array

    Either an array or collection could be used, and both can be declared as Public variables in .bas modules.
  3. AndyTWI

    how can I restart a program and reset the variables

    The first options that come to me are passing some sort of flag to the Timer sub: private ResetTimer as Boolean Timer procedure: If ResetTimer then 'static variables are zeroed ResetTimer = False End If Another option would be to run your program out of a Sub Main(), and use...
  4. AndyTWI

    is there a simple command to reinitialize everything?

    This looks the same as http://www.tek-tips.com/viewthread.cfm?SQID=808466&SPID=222&page=1 . Don't double-post.
  5. AndyTWI

    How to make sure a form is being refreshed?

    Try adding DoEvents within your major While loops. Depending on how you've designed your program to update the statusbar information, it will help that occur; otherwise, it will definitely keep the program responding as far as Windows is concerned.
  6. AndyTWI

    How to create a FILES

    Far easier IMO is the Dir$() function: If LenB(Dir$("C:\yourfile.txt")) = 0 Then ' file does not exist, create it Else ' file exists End If The Dir$() function will return a nullstring if the file does not exist.
  7. AndyTWI

    Best CMS Available?

    I've had very good experiences with e107. ( http://e107.sourceforge.net , http://www.e107.org )
  8. AndyTWI

    Detect pressing enter on TextBox

    Try the solution described in my post here: http://www.tek-tips.com/viewthread.cfm?SQID=789569&SPID=222&newpid=222&page=1
  9. AndyTWI

    Visual Basic is Kidding me?

    http://www.tek-tips.com/viewthread.cfm?SQID=790750&SPID=222&page=1 Read my comment here. Additionally: Try the Microsoft Visual Basic 6 Runtimes. You can find them here: http://support.microsoft.com/default.aspx?scid=kb;en-us;290887
  10. AndyTWI

    How to list all items in my Menu

    You could validate the user's permission on the Click event for the toplevel menu: Private Sub mnuMyTopLevelMenu_Click() 'Get permissions 'If the current user passes your permission check 'For each lower level menu item: menuitem.Enabled = True 'Else 'For each lower...
  11. AndyTWI

    Strange Problems!

    Users of my software (http://www.stealthbot.net) recieved this error when their MSWINSCK.OCX control was outdated or nonexistent. Installing/registering MSWINSCK.OCX solved the problem. My suggestion to you, as it may not be specific to MSWINSCK.OCX, is to verify that your target computer has...
  12. AndyTWI

    0-indexing and Visual Basic

    Most prominently as I think of 1-based items right now is the ListView control and Collection objects. Dynamic arrays, listboxes, comboboxes, control arrays are all handled with a base of 0. If you're not sure, you can open up a blank VB form, drop the desired control onto it and whip up some...
  13. AndyTWI

    When hitting "Enter" on a text box, how do I make it execute a command

    The simplest way to do this is using the KeyPress event: Private Sub txtYourTextbox_KeyPress(KeyAscii as Integer) If (KeyAscii = vbKeyReturn) Then 'ENTER key is pressed Call cmdYourCommandButton_Click() End If End Sub
  14. AndyTWI

    Launch PDF File From VB

    You could have your installer check for the presence of Acrobat and launch the (bundled) Acrobat setup EXE if it's not found.
  15. AndyTWI

    Launch PDF File From VB

    To open a PDF file: '// declare: Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hWnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long '// usage...
  16. AndyTWI

    password use

    Psuedocode: Select Case LCase(txtPasswordInput.Text) Case "user-level password" 'disable / make disappear all super-user controls Case "superuser-level password" 'show all super-user controls Case Else 'handle other passwords End Select That doesn't...
  17. AndyTWI

    Process item

    You'll want to unload all the forms in your program and erase all instantiated classes in the Form_Unload() event. Example: Private Sub Form_Unload(Cancel as Integer) Set clsLocalDataHandler = Nothing ' Instantiated class erased Unload frmAbout 'Forms unloaded Unload frmChat...

Part and Inventory Search

Back
Top