Results 1 to 17 of 17

Thread: [RESOLVED] font issues and fetching directories problems

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2007
    Posts
    128

    Resolved [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:
    1. dim fso as new filesystemobject
    2. 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???

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Jan 2007
    Posts
    128

    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....

  3. #3

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Jan 2007
    Posts
    128

    Re: font issues and fetching directories problems

    what fonts?? ms sans serif?? i tried that too same problem

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Jan 2007
    Posts
    128

    Re: font issues and fetching directories problems

    i used forms 2.0 controls.. it seems fine now

  6. #6

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Jan 2007
    Posts
    128

    Re: font issues and fetching directories problems

    combo1.additem()

  8. #8

    Thread Starter
    Addicted Member
    Join Date
    Jan 2007
    Posts
    128

    Re: font issues and fetching directories problems

    is there a way to display unicode in stantard combobox???

  9. #9

  10. #10

    Thread Starter
    Addicted Member
    Join Date
    Jan 2007
    Posts
    128

    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

  11. #11

    Thread Starter
    Addicted Member
    Join Date
    Jan 2007
    Posts
    128

    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:
    1. set subfolder=fso.getfolder(subpath)
    2. combo1.additem(subfolder.path)
    3. 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

  12. #12
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: font issues and fetching directories problems

    Quote 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? ).

  13. #13

    Thread Starter
    Addicted Member
    Join Date
    Jan 2007
    Posts
    128

    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....

  14. #14

    Thread Starter
    Addicted Member
    Join Date
    Jan 2007
    Posts
    128

    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

  15. #15
    New Member
    Join Date
    Jan 2007
    Posts
    14

    Re: font issues and fetching directories problems

    I can use the FM20.DLL combo box to show Simplified Chinese

  16. #16

    Thread Starter
    Addicted Member
    Join Date
    Jan 2007
    Posts
    128

    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

  17. #17
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: font issues and fetching directories problems

    Quote 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
  •  



Click Here to Expand Forum to Full Width