Search:

Type: Posts; User: Harvester

Page 1 of 4 1 2 3 4

Search: Search took 0.09 seconds.

  1. Replies
    3
    Views
    434

    Quick and dirty

    I'm sure there is a prettier way to go about this but this will do what you want.


    Private Sub Command1_Click()
    Dim LongString As String
    Dim ReturnString As String
    Dim i As Integer

    ...
  2. Replies
    5
    Views
    389

    Time Zone

    This is an old post I came across while searching for other stuff but I figured I'd post my 2 cents.


    Its probably not the battery since it is keeping perfet time (only delayed 2 hours). It is...
  3. Replies
    2
    Views
    488

    Formatting Formulas

    Can you change the report or are you having to get it done in code?

    If its the former I have a suggestion. In the Crystal Report IDE right click on the fiields you want to be highlited if some...
  4. Replies
    5
    Views
    1,217

    fso Stuff

    The fso is fun. Start in some other part of your app.

    Throw a breakpoint on the line that reads
    Call RecurseFolders(myFolder)
    and watch it do it's thing.


    Private fso as FileSystemObject ...
  5. Replies
    5
    Views
    1,217

    Recursion

    Here is a function I use in some of my apps. I modified it slightly for you. It may not be exactly what you need but it should be a good start. You will need to add a reference to the Microsoft...
  6. Replies
    10
    Views
    643

    Common DIalog

    Add the Common dialog component and call it with the "ShowColor" method.
  7. Replies
    13
    Views
    806

    Scale

    Try using ScaleHeight and Scalewidth instead of height.


    Frames(Index).Width = Me.Scalewidth
    Frames(Index).Height = Me.Scaleheight
  8. Replies
    1
    Views
    2,648

    Manual

    I'm afraid that the FSO doesn't take care of this. You're going to have to do it yourself.

    Create a function that returns a boolean and send each file through it to see if it is a file you want to...
  9. Replies
    1
    Views
    3,218

    FarPoint

    I'm using Version 3 of the Spread. I don't know who new or old that may be...

    My spread exposes an event called "ButtonClicked" that gives you what you are looking for. (I think).



    Private...
  10. Replies
    3
    Views
    942

    FormatCurrency

    FormatCurrency Will give you some options. (Although I think it automatically puts a '$' in front of the number.)

    If you don't want that then you can use FormatNumber(<Number>, # of Decimal...
  11. Replies
    2
    Views
    517

    just Hour & Minute?

    If you are just worried about HH and MM then try


    FormatDateTime("8:43:13 AM", vbShortTime )


    If you are worried about seconds you may have to use your own formatting statement

    ...
  12. Try playing with this.

    Heres a start


    Private Sub Command1_Click()
    Dim fso As FileSystemObject
    Dim myFolder As Folder
    Dim myFile As File
    Dim ts As TextStream

    Set fso = New FileSystemObject
  13. Other way

    I'm not sure what you're looking to do is possible but there are ways around it. You can either change your current autonumber field to not be autonumber or just leave it there since it isn't hurting...
  14. Replies
    4
    Views
    604

    Functions

    Look into the SHGetSpecialFolderPath and SHGetSpecialFolderLocation functions. Those look like they may be what you're looking for.
  15. Replies
    7
    Views
    596

    Another option

    Just another option..


    FormatNumber (1.99 - 1.99, 2)
  16. Replies
    1
    Views
    575

    Check this thread out......

    Check this thread out...
    http://www.vbforums.com/showthread.php?s=&threadid=237507&highlight=Dynamic+Menu

    It is missing one or two Functions you may need. You will need to get the menu you want...
  17. vbNormalFocus

    Not sure if it will work but this would be the easiest way if it does


    'open shortcut
    sShortcut = Chr(34) & "C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE" & Chr(34) & " " &...
  18. Thread: ListView

    by Harvester
    Replies
    1
    Views
    506

    An idea

    First off I think you want to set the "View" Property of the listview to "Report" instead of "Small Icon". "Report" gives you more of a grid feel. It sounds like that is what you want.

    As far as...
  19. Replies
    13
    Views
    1,058

    isDate

    Is the dropdown on the dtPicker not enough? I don't know of any other free controls.

    If you end up having to do your own validation use the isDate Function.

    isDate("02\29\2000")
    'Returns true
  20. Command$

    You mean the command line arguments? Call the Command$ Function.


    Dim myCommandLine as String

    myCommandLine = Command$()
  21. Replies
    2
    Views
    524

    Split

    Use the Split function



    Dim Nums() as String
    Dim i as Integer

    Nums = Split("0.00000000 0.00000000 0.0000000", " ")
    'Now Nums is an array with 3 items in it.
  22. Lock Controls?

    Sounds like the controls are locked. Right click on the form and make sure that "Lock Controls" isn't selected. If thats not it I've got no clue...
  23. Replies
    7
    Views
    545

    List

    You may have to use the list property to fill the combo box.


    While Not rs.EOF
    ComboBox.List(Index) = rs.Fields(<Your Field>)
    Call rs.MoveNext
    Wend


    Thats the basic idea anyway.
  24. Replies
    7
    Views
    545

    B

    You can remove the ability to type text into the combo box by changing the Style Property to Dropdown List.
  25. Replies
    4
    Views
    541

    GDI

    GDI can be used for a bunch of things. I found this page with a quick Google search. Maybe it will be of some use.

    http://www.minigui.com/api_ref/group__gdi__fns.html
  26. Replies
    1
    Views
    386

    Tough One

    I have some code for a task manager type of application written in VB. I didn't write it but I used ideas from this app to write an application server that we use in my office. Good Luck.
  27. Auto Resize?

    Every Statusbar I have ever used automatically docks itsself to the bottom of the form and it will resize according to the size of the form.
  28. Replies
    3
    Views
    513

    Start here

    Play with these

    MsgBox Format(Now, "MM/DD/YYYY hh:mm:ss")
    MsgBox FormatDateTime(Now, vbShortTime)
  29. Replies
    6
    Views
    687

    Quick Guess

    Bad file mode means you're trying to write to a file that was opened read only. Try changing the way you open the file.


    'Change
    Open FilePath & sFileNames(i) For Input As #1
    'To
    Open FilePath...
  30. Replies
    1
    Views
    388

    Here is a recursive procedure I have ripped out...

    Here is a recursive procedure I have ripped out from an old app. You'll have to make some changes to it. You may want to turn it into a function and return the path of the file/folder. Hope this...
  31. Thread: Timers

    by Harvester
    Replies
    13
    Views
    760

    New Control

    Try a new timer object. I believe these are free and I use them at work all the time. You can set an interval for up to 3 weeks with these things.

    http://www.mvps.org/ccrp/controls/ccrptimer6.htm ...
  32. Replies
    6
    Views
    462

    Potential Explaination

    Here's what I think is happening.

    The form that calls the SendKeys function is the enabled form at the time and thus is also receiving the Sendkeys function which, in turn, recalls the Sendkeys...
  33. Replies
    6
    Views
    462

    Another way?

    I meant


    Call Sendkeys("{DEL}")
    Call Sendkeys("{ENTER}")

    by the way.


    Sorry, I didn't pay close enough attention to your original post... don't know where I came up with Enter ESC...
  34. Replies
    6
    Views
    462

    Braces

    Try it with curly braces


    Call Sendkeys("{ENTER}")
    Call Sendkeys("{ESC}")
  35. Polygons

    I've never tried it in a paint type of application but you may be able to use the CreatePolyRgn function.


    Public Type POINTAPI
    x As Long
    y As Long
    End Type

    Public Declare...
  36. Replies
    4
    Views
    503

    Rounding?

    It may not work and I know it seems superfluous but try rounding it.


    x = Round(x + 0.05, 2)



    See what happens... I didn't try it. Just a suggestion.
  37. Replies
    3
    Views
    411

    Ideas

    This may not be as detailed an answer as you had hoped but I'd suggest using the EnumWindows function.


    private HasFocus as Boolean


    Public Declare Function EnumWindows Lib "user32" (ByVal...
  38. Replies
    2
    Views
    774

    Potential Answer

    So I played with this a bit. I am not doing it exactly the same way it was being done. We're using the Circle method now. I am sure there has to be a prettier way to do it but this was the fastest...
  39. Its possible

    You can do it no problem. I only have the code to do it in SQL Server though. (I think its considerably easier to do if you are using something like Access.) Here's my SQL server code. DBConn is a...
  40. Replies
    0
    Views
    353

    Subclassing??

    I don't know if this is possible and its a bit convoluted. If it is possible I think its only going to happen with subclassing so I figured I'd ask the forum if it sounds possible before I try and...
Results 1 to 40 of 126
Page 1 of 4 1 2 3 4



Click Here to Expand Forum to Full Width