Results 1 to 12 of 12

Thread: Counting Problem

Hybrid View

  1. #1
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Posts
    12,408

    Re: Counting Problem

    What happens when you try to use the SpecialDirectories.Temp property?
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | HtmlLessons | CssLessons | Code Tags | Sword of Fury - Jameram

  2. #2

    Thread Starter
    Member
    Join Date
    May 2013
    Posts
    37

    Re: Counting Problem

    It seems to work fine

    Code:
    Option Strict On
    Option Infer Off
    
    Imports System.IO
    Imports System.Collections.Generic
    Imports System.Linq
    Public Class Form1
    
        Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
            Dim counter1 As Integer = My.Computer.FileSystem.SpecialDirectories.Temp.Count
            MsgBox("Number of files is : " & counter1)
        End Sub
    
        Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    
        End Sub
    
    
    
    End Class
    But why isn't UserProfile and Windows Property Not Working?

Tags for this Thread

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