|
-
Aug 11th, 2000, 08:33 PM
#1
Thread Starter
Member
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
-
Aug 11th, 2000, 09:12 PM
#2
Good Ol' Platypus
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|