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

  • Users: Dazz22
  • Order by date
  1. Dazz22

    Module

    Hi. Modules can't be called. A module is a container which can hold Subs, Function, Properties etc. The module can be a standard or a class. Here is a quick example of calling subs in a module Add a standard module to your project and add this code *****************************************...
  2. Dazz22

    Saving Variables To C:

    From MSDN: Creating or Saving Application Settings You can use the SaveSetting statement to save a new value for a registry key stored in your application's registry location. For example, you could add code to the Form_Unload event in the application's main form in order to preserve settings...
  3. Dazz22

    Text Files

    The following recent thread should get you started thread222-404019 To get what you want, you have to go through the crap, but to get through the crap you have to know what you want... [rockband]
  4. Dazz22

    Setting a form control property from within a module??

    Sorry...That may not work. I forgot I was in the .Net forum. Thought I was still in the VB 5/6 forum To get what you want, you have to go through the crap, but to get through the crap you have to know what you want... [rockband]
  5. Dazz22

    Setting a form control property from within a module??

    Hi. Pass a parameter set as form to the module/class For example: ***** Module ***** Public Sub FormTest (frmTest as Form) frmTest.Caption = "Test" End Sub ***** Calling Code ***** 'Call Sub FormTest me Hope it helps To get what you want, you have to go through the crap...
  6. Dazz22

    How fast can you loop an ADO recordset?

    Just thought I would make a contribution to the "easy question" debate. As a programmer I would put myself in the beginner/intermediate bracket, so there is still alot to learn and i think this place is a good a place as any. On a daily basis I try and read through all the...
  7. Dazz22

    create textboxes at runtime

    Ok. On your form you need atleast one instance of a textbox with an index set to 0. Use the default name (text1) to use it with the code below. Hope it is useful. I have added it to a click event of a command button. Private Sub Command1_Click() Dim intNextVal As Integer 'find next...
  8. Dazz22

    VB6 - Force user input

    HI.. I believe that if you set the Validate property of the text boxes to true, and place appropriate code in the Validate event of each text box, you will get the desired effect. Also, you could have a form level validation procedure. When you go to do the calculation (through a cmdButton i...
  9. Dazz22

    Common Dialog

    HI. Hope this helps. You will end up with two variables. One with the full path, minus the file. And one with just the file. Dim sPath As String Dim sFile As String Dim sFullName As String Dim iSlash As Integer sFullName = commondialog.FileName ' iSlash = InStrRev(sFullName...
  10. Dazz22

    Style vs Idiot-Proofing

    Interesting thread...Regarding the function below, I have a few questions Private Function ValidateInkey(strType As String, KeyAscii As Integer, strInbox As String, intMaxLen As Integer) As Boolean I understand the logic of the function but what would fill the strInBox parameter?? Also, how...
  11. Dazz22

    Reset Focus

    Hi. I am assuming that you will be setting the tab index at design time, so you will know in advance what control has the tab index '1'. If so, with said control (ie, a textbox) type: text1.setfocus Darren
  12. Dazz22

    Tick box used to enable text boxes?

    Hi. The checkbox should have a click event so try this.. private sub Check1_Click() if check1.value = 1 then 'checked text1.enabled = true else text1.enabled = false end if end sub Before you begin, set the text box's enabled property to false. Hope this helps.
  13. Dazz22

    Should I use multipages?

    I have never used multipages before so I can't really say, but could you consider using the Tab-strip control property which can be found in the Common Windows controls 6.0. This way, you can have one form and the user can just select to the different views as they please. Hope this helps.

Part and Inventory Search

Back
Top