ok i think i found the solution.. here it is
i noticed e.g. if i have a file named "myfile.txt" ... and when i copy it to a directory, i get the illegal characters error.... and i see that the source file path is "c:\myfile.txt without the quote at the end... so that made me think that the illegal stuff is after the ".txt" ..somekind of weird illegal invisible characters... so i made this function...
VB Code:
Private Function cleanuppath(ByVal mypath, ByVal fileextension) cleanuppath = mypath.ToString.ToLower.Substring(0, InStr(mypath, fileextension) + Len(fileextension) - 1) End Function
this just remove everything found after "c:\myfile.txt"... so the illegal invisible characters are removed... i don't really know why it is like that ..probably that the .ocx was meant primarily for vb6 and not vb.net




Reply With Quote