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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by MikeCox

  1. MikeCox

    Experts advice ADO Connection

    Here's the description for each that my book gives to help you decide - CursorTypes: adOpenKeyset. You can't see records that have been added to the recordset by other users, but updates and deletes performed by other users do affect your recordset. Most efficient if recordset is large...
  2. MikeCox

    if

    There are 2 ways to use the If statement: If x > y Then y = 0 'or If x > y Then y = 0 End If Only the second way requires an End If, because the Then keyword is followed by the end of the line. In ur code it looks like you've merged the two. You should either get rid of the End If...
  3. MikeCox

    Pset Issue?

    MouseMove is wierd like that, you can never be sure how many times Windows will call it for you. If the mouse is moved 100 pixels, it could be called anywhere between 1 and 100 times depending on the environment. What I would do is keep track of the last X and Y coordinates and draw a line to...
  4. MikeCox

    Delete and Replace Access Table in VB6?

    When you say 'linked to another table' do you mean a relationship? If so, I don't think it's possible to add/remove a relationship through code, but then again I haven't seen everything yet. You can use SQL queries to create a table, and if I hadn't left my book at home today I'd be able to...
  5. MikeCox

    msgBox

    To expand on what sunaj recommended, you shouldn't use the End statement if you have forms in memory because they won't be unloaded. What I do instead is Unload the form, and in that form's Unload event I use this code to unload any other forms that may be in memory: Form_Unload(Cancel As...
  6. MikeCox

    Pass Arguments to a Form

    Form_Load didn't run on my machine while setting CustomerID. I think it fires if you reference an intrinsic property of the form, like BackColor or Width. I've used this same technique successfully in my own projects, setting my custom properties and letting the Show method call Load when...
  7. MikeCox

    Pass Arguments to a Form

    Like any other object, you can add your own properties and methods to forms that easily solve problems like that: 'in CustForm: Private m_CustID As String Property Let CustomerID(ByVal NewCustID As String) m_CustID = NewCustID End Property Property Get CustomerID() As String CustomerID =...
  8. MikeCox

    Hello World Wont Work (((figure it out)))

    // Include files #include "stdio.h" // Aplication Initialization int main () { printf ("hello, World!\n"); return 0; } // Added this! ~Mike Any man willing to sacrifice liberty for security deserves neither liberty nor security. -Ben Franklin
  9. MikeCox

    Hello World Wont Work (((figure it out)))

    What happens if you change ur #include statement to this? #include &quot;stdio.h&quot; If it's in quotes the compiler looks in the application path directory, then the windows system directory. #include <stdio.h> tells the compiler to look in the system directory only, and maybe it's not...
  10. MikeCox

    Hello World Wont Work (((figure it out)))

    Did you make this a Win32 Console application? Can u copy/paste the exact error string you're getting? ~Mike Any man willing to sacrifice liberty for security deserves neither liberty nor security. -Ben Franklin
  11. MikeCox

    VB control t ouse windows explorer in an VB app.

    Are you looking for the Tree View control? ~Mike Any man willing to sacrifice liberty for security deserves neither liberty nor security. -Ben Franklin
  12. MikeCox

    Help Me Get Started

    There's some info in thread116-189071 that may be helpful to you also. ~Mike Any man willing to sacrifice liberty for security deserves neither liberty nor security. -Ben Franklin
  13. MikeCox

    Small Easy GUI

    Yes, nID is IDC_EDIT1 in the GetDlgItem() argument list, and you can call CDialog::OnOK() if u don't have an OK button, which will DoDataExchange() and close the dialog. You shouldn't need OnOK() unless you have member variables that need updated via DoDataExchange(), but you can use it anyway...
  14. MikeCox

    Small Easy GUI

    I'm sorry, if you only have one dialog you won't need to call DoModal() to show it... It seems GetDlgItemText() is returning 0 into 'work' and storing the window's text into 'tmp', which would explain the 'x0' message box, I think (I haven't used those functions, there may be wierd ways to use...
  15. MikeCox

    Small Easy GUI

    Ok, you'll need to add variables to the dialog class to represent the values in the dialog's edit boxes. You'll generally make a member variable to hold values for each control on the dialog. It's best to let the class wizard do this by right-clicking on the control (edit box) and select...

Part and Inventory Search

Back
Top