Click here to Skip to main content
15,905,875 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHow to display image from the path in the server and client architecture... Pin
mythinky18-Jul-04 15:34
mythinky18-Jul-04 15:34 
AnswerRe: How to display image from the path in the server and client architecture... Pin
Ravi S.V.19-Jul-04 0:50
Ravi S.V.19-Jul-04 0:50 
GeneralRe: How to display image from the path in the server and client architecture... Pin
mythinky19-Jul-04 16:22
mythinky19-Jul-04 16:22 
AnswerRe: How to display image from the path in the server and client architecture... Pin
Serge Lobko-Lobanovsky21-Jul-04 6:04
Serge Lobko-Lobanovsky21-Jul-04 6:04 
Generaldynamic binding a combo box Pin
abhishk2001@yahoo.com18-Jul-04 12:13
abhishk2001@yahoo.com18-Jul-04 12:13 
GeneralRe: dynamic binding a combo box Pin
mythinky19-Jul-04 16:40
mythinky19-Jul-04 16:40 
Questionhow to get cpu info, mem, etc Pin
brokenshard17-Jul-04 23:52
brokenshard17-Jul-04 23:52 
AnswerRe: how to get cpu info, mem, etc Pin
vancouver77718-Jul-04 5:41
vancouver77718-Jul-04 5:41 
I am not sure it works in .Net but here is how to
do it in vb. I just found this, so you have to find
a way to be compilable.


Thanks,
Shin

Option Explicit

Private Type SYSTEM_INFO
dwOemID As Long
dwPageSize As Long
lpMinimumApplicationAddress As Long
lpMaximumApplicationAddress As Long
dwActiveProcessorMask As Long
dwNumberOrfProcessors As Long
dwProcessorType As Long
dwAllocationGranularity As Long
dwReserved As Long
End Type

Private Type MEMORYSTATUS
dwLength As Long
dwMemoryLoad As Long
dwTotalPhys As Long
dwAvailPhys As Long
dwTotalPageFile As Long
dwAvailPageFile As Long
dwTotalVirtual As Long
dwAvailVirtual As Long
End Type

Private Declare Sub GetSystemInfo Lib "kernel32" ( _
lpSystemInfo As SYSTEM_INFO)

Private Declare Sub GlobalMemoryStatus Lib "kernel32" ( _
lpBuffer As MEMORYSTATUS)


Private Sub Form_Load()
Dim Sys As SYSTEM_INFO
Dim tMem As MEMORYSTATUS

GetSystemInfo Sys
GlobalMemoryStatus tMem
Debug.Print "Percentage of memory currently in use : " & Format(1 -
(tMem.dwAvailPhys / tMem.dwTotalPhys), "00.00 %")
Debug.Print "Total Available : " & Format(tMem.dwAvailPhys, "### ###
###")
Debug.Print "Total Physical : " & Format(tMem.dwTotalPhys, "### ### ###")
Debug.Print "Total Virtual : " & Format(tMem.dwTotalVirtual, "### ### ###
###")
Debug.Print "Processor Type : " & Sys.dwProcessorType
Debug.Print "Number of Processor(s) : " & Sys.dwNumberOrfProcessors

End Sub

GeneralRe: how to get cpu info, mem, etc Pin
brokenshard18-Jul-04 6:00
brokenshard18-Jul-04 6:00 
AnswerRe: how to get cpu info, mem, etc Pin
Dave Kreskowiak18-Jul-04 6:07
mveDave Kreskowiak18-Jul-04 6:07 
GeneralImporting/Loading MSG file into Outlook Inbox Pin
vancouver77717-Jul-04 22:06
vancouver77717-Jul-04 22:06 
GeneralShortcuts (arrows) in VB6 Pin
alex5kov17-Jul-04 20:49
alex5kov17-Jul-04 20:49 
GeneralRe: Shortcuts (arrows) in VB6 Pin
Mekong River17-Jul-04 22:45
Mekong River17-Jul-04 22:45 
GeneralRe: Shortcuts (arrows) in VB6 Pin
alex5kov18-Jul-04 5:36
alex5kov18-Jul-04 5:36 
GeneralRe: Shortcuts (arrows) in VB6 Pin
Mekong River18-Jul-04 6:18
Mekong River18-Jul-04 6:18 
QuestionHow to cancel a form with a text box with the Leave Event coded Pin
SerialHobbyist17-Jul-04 20:35
SerialHobbyist17-Jul-04 20:35 
GeneralMicrosoft.Win32 Namespace Pin
beowulfagate17-Jul-04 15:04
beowulfagate17-Jul-04 15:04 
GeneralRe: Microsoft.Win32 Namespace Pin
SerialHobbyist17-Jul-04 20:50
SerialHobbyist17-Jul-04 20:50 
GeneralShortcut files Pin
ChowKF17-Jul-04 14:49
ChowKF17-Jul-04 14:49 
QuestionHow to interface with another windows app Pin
swiftrhett17-Jul-04 9:45
swiftrhett17-Jul-04 9:45 
AnswerRe: How to interface with another windows app Pin
swiftrhett17-Jul-04 20:53
swiftrhett17-Jul-04 20:53 
GeneralMysterious color channel problem. Pin
Kevnar17-Jul-04 7:21
Kevnar17-Jul-04 7:21 
GeneralRe: Mysterious color channel problem. Pin
Dave Kreskowiak17-Jul-04 9:22
mveDave Kreskowiak17-Jul-04 9:22 
GeneralRe: Mysterious color channel problem. Pin
Kevnar17-Jul-04 11:08
Kevnar17-Jul-04 11:08 
GeneralRe: Mysterious color channel problem. Pin
Dave Kreskowiak18-Jul-04 4:29
mveDave Kreskowiak18-Jul-04 4:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.