|
-
Jan 12th, 2007, 08:57 AM
#1
Thread Starter
Addicted Member
[RESOLVED] font issues and fetching directories problems
i recursively add subdirectories in a combobox.... and when selecting a subdirectory from the combobox ... the files in the subdirectory(using filesystemobject to getfolder and get the files from it) is displayed in a listbox.... the problem is that it seems that for some users, they get the error message
"path not found"..... i think it's surely related with this line of code
VB Code:
dim fso as new filesystemobject
fso.getfolder(combo1.list(combo.listindex))
for me and some other users, everything works fine but for some users...they get "path not found".. one of the users havin this prob told me he found that in the combobox,
instead of the "/" there is a symbol instead....!!! it's probably what is causing the problem....
i was using "@Arial Unicode MS" font in the combobox before, so i changed to "Arial" ..looks like for some it's ok now but there are still people getting the "path not found" problem....
any idea wat's the prob???
-
Jan 12th, 2007, 09:00 AM
#2
Thread Starter
Addicted Member
Re: font issues and fetching directories problems
and i noticed this too... there's is one subdirectory having the name "Kewell 科维尔 by vivas".... (p.s. on my windows explorer.. the Chinese characters are not displayed...there are squares)...., i get the error "path not found" too..i debugged it and saw the combo1 text is "Kewell ??? by vivas"...which is wrong and this is why the path is not found...
again i think it have to do with fonts,character sets....
-
Jan 12th, 2007, 09:02 AM
#3
Re: font issues and fetching directories problems
VB cannot display unicode characters so try to use any of standard True fonts (no unicodes).
-
Jan 12th, 2007, 09:06 AM
#4
Thread Starter
Addicted Member
Re: font issues and fetching directories problems
what fonts?? ms sans serif?? i tried that too same problem
-
Jan 12th, 2007, 09:14 AM
#5
Thread Starter
Addicted Member
Re: font issues and fetching directories problems
i used forms 2.0 controls.. it seems fine now
-
Jan 12th, 2007, 09:20 AM
#6
Re: font issues and fetching directories problems
You cannot redistribute those controls (the Forms 2.0). Besides, they are only designed for VBA applications.
How do you load your combo?
-
Jan 12th, 2007, 09:26 AM
#7
Thread Starter
Addicted Member
Re: font issues and fetching directories problems
-
Jan 12th, 2007, 10:21 AM
#8
Thread Starter
Addicted Member
Re: font issues and fetching directories problems
is there a way to display unicode in stantard combobox???
-
Jan 12th, 2007, 10:44 AM
#9
Re: font issues and fetching directories problems
It's a real pain and isn't always working.
There are few controls posted by Merri in the code bank I think so check them out.
-
Jan 12th, 2007, 12:38 PM
#10
Thread Starter
Addicted Member
Re: font issues and fetching directories problems
i am planning to upgrade to a newer vb... what version currently the best and is similar and easy to use as vb6??? does the newer vb support unicode??? i also want native png support
-
Jan 12th, 2007, 12:44 PM
#11
Thread Starter
Addicted Member
Re: font issues and fetching directories problems
i read here on the forum that vb 6 supports unicode internally so i am using an array to store the subfolder path.... something like this
VB Code:
set subfolder=fso.getfolder(subpath)
combo1.additem(subfolder.path)
subfold(combo1.listcount-1)=subfolder.path
and when i click on the the combo1 .... i use the subfold(combo1.listindex) as the path for my fso.getfolder(subfold(combo1.listindex)).files to be used to retrieve the files in the sub folders...
the text in the combobox is still not displayed correctly but it is retrieving the files now.... for now i will be using this method....
but i hope someone comes up with an easy way to display the unicode in the combo box
-
Jan 12th, 2007, 01:00 PM
#12
Re: font issues and fetching directories problems
 Originally Posted by lplover2k
i read here on the forum that vb 6 supports unicode internally ...
That's not what you think it is - "internally" means VB6 software (which was written in C++ most probably) and not your program.
If you want to "move" to the next generation of Visual Basic then get yourself a copy of VB.Net 2005 (or perhaps entire Visual Stidio.Net) Express Edition - it's free and it's definitely much more powerful development tool (or shall I say today's the ultimate dev tool? ).
Last edited by RhinoBull; Jan 12th, 2007 at 01:03 PM.
-
Jan 12th, 2007, 02:46 PM
#13
Thread Starter
Addicted Member
Re: font issues and fetching directories problems
oh ok but it's working when storing the path in a variable... as long as it is working i am glad lol yeah will probably upgrade to visual studio 2005....
-
Jan 12th, 2007, 06:33 PM
#14
Thread Starter
Addicted Member
Re: font issues and fetching directories problems
srry to be a little off-topic... just downloaded vb 2005 express... but the text is messed up like in vb6 in the combobox.. only in richbox textbox it's okay
-
Jan 30th, 2007, 06:36 AM
#15
New Member
Re: font issues and fetching directories problems
I can use the FM20.DLL combo box to show Simplified Chinese
-
Jan 30th, 2007, 08:49 AM
#16
Thread Starter
Addicted Member
Re: font issues and fetching directories problems
it didn't work with the forms 2.0 controls either.... i switched to vb 2005 express instead and eveything's fine now
-
Jan 30th, 2007, 09:00 AM
#17
Re: font issues and fetching directories problems
 Originally Posted by lplover2k
it didn't work with the forms 2.0 controls either.... i switched to vb 2005 express instead and eveything's fine now
Glad to hear that! And Forms 2.0 is the worst option there is.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|