kb2tfa
New member
- Joined
- Jan 10, 2008
- Messages
- 4
- Programming Experience
- 1-3
I cannot get this code to work, can someone look at it?
I do get values from this with the messagebox, but not with the progress bar.
I do get values from this with the messagebox, but not with the progress bar.
VB.NET:
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim HDTotalSIZE As Integer = My.Computer.FileSystem.Drives(1).TotalSize
ProgressBar2.Maximum = HDTotalSIZE
Dim HDAvailSIZE As Integer = My.Computer.FileSystem.Drives(1).AvailableFreeSpace
ProgressBar2.Value = HDAvailSIZE
Button2.Enabled = False
End Sub
Last edited by a moderator: