Click here to Skip to main content
15,917,652 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Get files and folders that Windows is accessing in VB6 Pin
Christian Graus14-Aug-07 15:41
protectorChristian Graus14-Aug-07 15:41 
GeneralRe: Get files and folders that Windows is accessing in VB6 Pin
Yun Bunchhay14-Aug-07 16:48
Yun Bunchhay14-Aug-07 16:48 
GeneralRe: Get files and folders that Windows is accessing in VB6 Pin
Dave Kreskowiak15-Aug-07 3:54
mveDave Kreskowiak15-Aug-07 3:54 
QuestionAdding Reference Pin
HelpMePlease!14-Aug-07 11:24
HelpMePlease!14-Aug-07 11:24 
AnswerRe: Adding Reference Pin
Dave Kreskowiak14-Aug-07 12:29
mveDave Kreskowiak14-Aug-07 12:29 
QuestionWhy are my method Returns being truncated? [modified] Pin
TomGarth14-Aug-07 10:59
TomGarth14-Aug-07 10:59 
AnswerRe: Why are my method Returns being truncated? Pin
Dave Kreskowiak15-Aug-07 3:51
mveDave Kreskowiak15-Aug-07 3:51 
GeneralRe: Why are my method Returns being truncated? Pin
TomGarth15-Aug-07 4:03
TomGarth15-Aug-07 4:03 
Hi Dave,

I had already used the debugger while working line by line. I added the message boxes to make it easier to try different variations.

The only thing the code shows is that I stupidly added the FileType Enum as an argument to a call that didn't ask for an argument. The result was explained to me by in a very elegant answer from Armin Zingler at:
http://msdn.microsoft.com/newsgroups/default.aspx?dg=microsoft.public.dotnet.languages.vb&mid=03cf9ea6-b81a-48fe-ad43-f1f48517dbdc[^]

I've copied his explanation here:
************************************************************
This is awesome... The thing is that

GetDefaultFileExtensions(m_FileType)

is short for

GetDefaultFileExtensions.Chars(m_FileType)

because Chars is the default property of a String, and because
GetDefaultFileExtensions does /not/ have arguments. As m_FileType is 0, this
is actually

GetDefaultFileExtensions.Chars(0)

So, you get the first char of the string, which is "*" only.


Armin
************************************************************

Cool huh?

Tom Garth
Developer
R. L. Nelson and Associates, Inc., Virginia

GeneralRe: Why are my method Returns being truncated? Pin
Dave Kreskowiak15-Aug-07 12:42
mveDave Kreskowiak15-Aug-07 12:42 
QuestionActive Directory Pin
franklinm14-Aug-07 7:58
franklinm14-Aug-07 7:58 
Questionvb.net icon Pin
jds120714-Aug-07 7:47
jds120714-Aug-07 7:47 
AnswerRe: vb.net icon Pin
Kschuler14-Aug-07 8:28
Kschuler14-Aug-07 8:28 
Questiondesigntime handling Pin
MartyK200714-Aug-07 5:53
MartyK200714-Aug-07 5:53 
AnswerRe: designtime handling Pin
Richard Blythe14-Aug-07 16:21
Richard Blythe14-Aug-07 16:21 
GeneralRe: designtime handling Pin
MartyK200714-Aug-07 21:20
MartyK200714-Aug-07 21:20 
QuestionWindows task bar location Pin
Cory Kimble14-Aug-07 5:52
Cory Kimble14-Aug-07 5:52 
AnswerRe: Windows task bar location Pin
The ANZAC14-Aug-07 13:02
The ANZAC14-Aug-07 13:02 
QuestionStopping code during runtime. Pin
dptalt14-Aug-07 5:42
dptalt14-Aug-07 5:42 
AnswerRe: Stopping code during runtime. Pin
MartyK200714-Aug-07 5:55
MartyK200714-Aug-07 5:55 
AnswerRe: Stopping code during runtime. Pin
i gr814-Aug-07 6:22
i gr814-Aug-07 6:22 
GeneralRe: Stopping code during runtime. Pin
MartyK200714-Aug-07 12:28
MartyK200714-Aug-07 12:28 
QuestionAutonumber problem in Access database Pin
progalx14-Aug-07 5:08
progalx14-Aug-07 5:08 
AnswerRe: Autonumber problem in Access database Pin
enmahdi14-Aug-07 19:52
enmahdi14-Aug-07 19:52 
GeneralRe: Autonumber problem in Access database Pin
dcode2515-Aug-07 6:47
dcode2515-Aug-07 6:47 
QuestionRing back tone detection Pin
Kanyungu14-Aug-07 4:16
Kanyungu14-Aug-07 4:16 

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.