Results 1 to 2 of 2

Thread: To gwdash....

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2000
    Posts
    37
    Hi. Thanks for the reply on how to get system memory. I put the code in a module. One problem though. How do I 'print' the results in a dialog box? Like, if I had an About dialog, and wanted the system memory displayed in it.

    Thanks again,

    bonjour

  2. #2
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    I know i'm not gwdash, but I can help you. I reviewed the code, and this is what you want to do:

    Private Sub frmAbout_Show()
    dim Mem_Stat

    GlobalMemoryStatus Mem_Stat

    lblMem.Caption = Mem_Stat.dwTotalPhys / 1024 & " KB Memory Total, " & cstr((100 - (Mem_Stat.dwAvailPhys / Mem_Stat.dwTotalPhys)) * 100) & "% free"

    End Sub
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width