Click here to Skip to main content
16,005,178 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Button column in datagrid Pin
penguin500028-Nov-06 22:05
penguin500028-Nov-06 22:05 
QuestionCreating a screen saver using visual basic 2005 Pin
SilentCodingOne28-Nov-06 10:03
SilentCodingOne28-Nov-06 10:03 
AnswerRe: Creating a screen saver using visual basic 2005 Pin
Bassam Saoud28-Nov-06 10:22
Bassam Saoud28-Nov-06 10:22 
AnswerRe: Creating a screen saver using visual basic 2005 Pin
Polymorpher28-Nov-06 13:25
Polymorpher28-Nov-06 13:25 
GeneralRe: Creating a screen saver using visual basic 2005 Pin
MatrixCoder28-Nov-06 14:08
MatrixCoder28-Nov-06 14:08 
GeneralRe: Creating a screen saver using visual basic 2005 Pin
SilentCodingOne28-Nov-06 15:56
SilentCodingOne28-Nov-06 15:56 
GeneralRe: Creating a screen saver using visual basic 2005 Pin
MatrixCoder28-Nov-06 16:46
MatrixCoder28-Nov-06 16:46 
Questionreading unallocated disk space Pin
W Miles28-Nov-06 9:51
W Miles28-Nov-06 9:51 
I'm trying to read unallocated disk space -- leftovers from old file deletions -- by creating a new zero length file and dynamically expanding it. When I read the file contents during the process, I get nothing but nulls. Any ideas what's wrong?

Code snippet:

Dim oP as New FileStream ("C:\foo", FileMode.Create, FileAccess.ReadWrite)
oP.SetLength(1000000000)
oP.Close()

I get, as expected, a 10GB file. It consists entirely of nulls, rather than the bits and pieces of old deletions, as I'd expect.

What I'd ideally like to do is increment the file size by the hard disk cluster size, read the intervening data (generally 4K), lather-rinse-repeat until I've exhausted all disk space.

Any ideas how?


Wyman Miles
Senior Security Engineer
Cornell University
AnswerRe: reading unallocated disk space Pin
CPallini28-Nov-06 9:57
mveCPallini28-Nov-06 9:57 
AnswerRe: reading unallocated disk space Pin
Dave Kreskowiak28-Nov-06 10:39
mveDave Kreskowiak28-Nov-06 10:39 
GeneralRe: reading unallocated disk space Pin
W Miles29-Nov-06 10:24
W Miles29-Nov-06 10:24 
QuestionAn editable Custom Object at design time. Pin
shiveleytom28-Nov-06 8:41
shiveleytom28-Nov-06 8:41 
QuestionHow do I get my custom web component look like a a textbox and image button instead of a [xxx "xxx"] in VS 2003 designer? Pin
howardjr28-Nov-06 6:58
howardjr28-Nov-06 6:58 
AnswerRe: How do I get my custom web component look like a a textbox and image button instead of a [xxx "xxx"] in VS 2003 designer? Pin
Dave Kreskowiak28-Nov-06 8:37
mveDave Kreskowiak28-Nov-06 8:37 
GeneralRe: How do I get my custom web component look like a a textbox and image button instead of a [xxx "xxx"] in VS 2003 designer? Pin
howardjr28-Nov-06 19:14
howardjr28-Nov-06 19:14 
Questionusing excel as database, problems with update Pin
Smithers-Jones28-Nov-06 5:58
Smithers-Jones28-Nov-06 5:58 
AnswerRe: using excel as database, problems with update Pin
Dave Kreskowiak28-Nov-06 8:45
mveDave Kreskowiak28-Nov-06 8:45 
GeneralRe: using excel as database, problems with update Pin
Smithers-Jones29-Nov-06 3:45
Smithers-Jones29-Nov-06 3:45 
GeneralRe: using excel as database, problems with update Pin
Dave Kreskowiak29-Nov-06 3:53
mveDave Kreskowiak29-Nov-06 3:53 
Questionencrypt a text box Pin
ciscokid5528-Nov-06 5:25
ciscokid5528-Nov-06 5:25 
QuestionAnd what do you wanto to show, instead? Pin
CPallini28-Nov-06 5:40
mveCPallini28-Nov-06 5:40 
AnswerRe: And what do you wanto to show, instead? Pin
ciscokid5528-Nov-06 7:08
ciscokid5528-Nov-06 7:08 
GeneralRe: And what do you wanto to show, instead? Pin
CPallini28-Nov-06 7:27
mveCPallini28-Nov-06 7:27 
GeneralRe: And what do you wanto to show, instead? Pin
ciscokid5528-Nov-06 7:48
ciscokid5528-Nov-06 7:48 
Question[Message Deleted] Pin
PREMSONBABY28-Nov-06 5:18
PREMSONBABY28-Nov-06 5:18 

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.