Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Percentage RAM Gebruik / Totale RAM - Nederlands Gesproken - Visual Basic 2008

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
1,737
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Nov 1, 2009

Deze video zal je meenemen op een reis door Visual Basic 2008. Je zult versteld staan hoe gemakkelijk het eigenlijk is! Kijk nu en leer hoe je je vrienden of vriendinnen kunt imponeren! De code staat hieronder! Er komt meer aan!


Kijk in HD!

Moeilijkheids graad: 4.9/5
Te gebruiken in Visual Basic 2008.

Code:


Afronden:

Private Function CBNMB(ByVal bytes As Double) As Double
Dim MB As Double
MB = (bytes / 1024) / 1024
CBNMB = Format(MB, "###,###,###0.00")
End Function




Textboxen code:

TextBox1.Text = CBNMB(My.Computer.Info.TotalPhysicalMemory) & " Mb"

TextBox2.Text = CBNMB(My.Computer.Info.TotalPhysicalMemory - My.Computer.Info.AvailablePhysicalMemory) & " Mb"

TextBox3.Text = CBNMB(My.Computer.Info.AvailablePhysicalMemory) & " Mb"

TextBox4.Text = Format((100 / CBNMB(My.Computer.Info.TotalPhysicalMemory)) * CBNMB(My.Computer.Info.TotalPhysicalMemory - My.Computer.Info.AvailablePhysicalMemory), "#.#") & "%"



_______________________________________
Kom je er niet uit? Download het project dan hier:


http://www.rick-soft.com/youtube-downloads.html

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (rickschravendeel)

  • Errortjes:

    Error 1 'TotalPhysicalMemo' is not a member of 'Microsoft.VisualBasic.Devices­.ComputerInfo'.

    Error 2 Character is not valid.

    ik werk op windows 7 ultimate 64Bit btw.

    

  • @rtktheone het is TotalPhysicalMemoy niet TotalPhysicalMemo :P

  • werkt dit ook bij visual basic 2010 ?

  • @ItakxMocro natuurlijk

  • @rickschravendeel ik deed juist hetzelfde maar het werkt niet ;p

  • @ItakxMocro Welke foutmelding krijg je?

see all

All Comments (34)

Sign In or Sign Up now to post a comment!
  • @ItakxMocro ja het werkt ook bij Visual basic 2010.!!!

  • Goede tutorial, je praat duidelijk, en legt alles heel goed uit. iedereen zou hier met 0 verstand van VB binnen kunnen komen en aan het eind van de tutorial nog alles snappen!

  • @rickschravendeel ik heb er 9

    heb je msn dan stuur ik even een screen

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more