Is it possible to change the display of the files from a list to icon view. If so how do i do it.
Thanks in advance
Printable View
Is it possible to change the display of the files from a list to icon view. If so how do i do it.
Thanks in advance
I am not sure about the API to do this. But if you track the registy change, then you can issue the vb registy codes.Quote:
Originally Posted by chris1990
Chris, it seems some registry changes are occouring.
I checked it with a before and after snaps of the registry. the diffrents are listed below:
You can check it by your self.
* Put your explore to the list view
* open regedit and exprot the HKEY_CURRENT_USER key to c:\ with the name of 'before' .
* now put your explore to the Icons view or what ever the veiw you want
* now export the same HKEY_CURRENT_USER key to c:\with name of 'after'
OPEN Your command prompt and issue the following command.
FC /U list1.txt list2.txt >new.txt
Now the diffrents are save in the new.txt in your C: Drive. open it and examin the diffreneses.
A notable change occour here.
***** before.reg
"HRZR_PGYPHNPbhag:pgbe"=hex:01,00,00,00,02,00,00,00,00,00,00,00,00,00,00,00
"HRZR_HVGBBYONE"=hex:cf,00,00,00,86,08,00,00,70,ae,d1,21,66,91,c7,01
"HRZR_HVGBBYONE:0k1,133"=hex:cc,00,00,00,59,01,00,00,40,f5,4f,3a,5f,90,c7,01
***** AFTER.REG
"HRZR_PGYPHNPbhag:pgbe"=hex:01,00,00,00,02,00,00,00,00,00,00,00,00,00,00,00
"HRZR_HVGBBYONE"=hex:cf,00,00,00,87,08,00,00,30,dc,36,51,66,91,c7,01
"HRZR_HVGBBYONE:0k1,133"=hex:cc,00,00,00,59,01,00,00,40,f5,4f,3a,5f,90,c7,01
*****
***** before.reg
"HRZR_HVGBBYONE:0k1,120"=hex:cf,00,00,00,04,06,00,00,c0,6e,d8,ec,65,91,c7,01
"HRZR_HVGBBYONE:0k4,7031"=hex:cf,00,00,00,96,00,00,00,70,ae,d1,21,66,91,c7,01
"HRZR_EHACVQY:%pfvqy6%\\Cubgbfubc\\Ghgbevnyf - Perngr Vpbaf, Fperrafniref, Phefbef.hey"=hex:02,\
***** AFTER.REG
"HRZR_HVGBBYONE:0k1,120"=hex:cf,00,00,00,04,06,00,00,c0,6e,d8,ec,65,91,c7,01
"HRZR_HVGBBYONE:0k4,7031"=hex:cf,00,00,00,97,00,00,00,30,dc,36,51,66,91,c7,01
"HRZR_EHACVQY:%pfvqy6%\\Cubgbfubc\\Ghgbevnyf - Perngr Vpbaf, Fperrafniref, Phefbef.hey"=hex:02,\
*****
Why would you do this? If any program changed my default view I'd delete the program immediately. The choice of view in my computer is mine.Quote:
Originally Posted by chris1990
I agree with that. I'd find it pretty annoying.Quote:
Originally Posted by Al42
But you can try the registry changes that were suggested. There's also code on www.pscode.com/vb to do just this, I think it uses SendMessage API I can't remember.
But the file list in Explorer is pretty much just a Listview control.
i dont mean some program has changed it, i am trying to make a program like explorer. In explorer you can change the view of the files. e.g - list, icons, thumbnails, details. I was wondering if i can do it with the file listbox in vb6