Groups | Blog | Home
all groups > vb.net controls > april 2005 >

vb.net controls : VBPowerPack FileViewer bug?



Philip Tepedino
4/28/2005 1:25:10 PM
I'm trying to make a basic document browser using the FolderViewer and
FileViewer controls from the vbpowerpack

Everything works fine if a start a new solution, add the reference and
create the controls, however, when i try to do the same thing on my existing
project, the icons do not draw! I get no exception, and I've tested the
imagelists being generated by the controls and they are filled .(Added code
to save all the iamges in it for testing) If i copy/paste the control to
another isntance of VS with another solution open, it works fine!!

I've tried everything! I created a new form (not custom or anything) and
added nothing but the two controls, and still, on this existing solution, it
does not display the icons! I get a space where they are supposed to be
instead. (i've tried all different views of the FileViewer)

This exact same behavior also happens with the FolderViewer.


Any ideas what could be causing this?

btw, to help debug, i added the vbpowerpack project to my solution and
referenced it localy, and nothing changed!

Any help would be greatly appreciated!

Thanks,
Philip Tepedino

Philip Tepedino
4/28/2005 1:42:28 PM
UPDATE:

I think I've tracked the bug down.
If Application.EnableVisualStyles() is called, it doesn't draw the icons!

Is there a way around this?

Thanks!


[quoted text, click to view]

Crouchie1998
4/29/2005 12:00:00 AM
You should be asking the VBPowerpack authors on the http://www.gotdotnet.com
website under workspaces. They will also have the latest release there too

Here's the direct link the the VB Power pack workspace:

http://www.gotdotnet.com/Community/Workspaces/workspace.aspx?id=167542e0-e435-4585-ae4f-c111fe60ed58

Look under the 'Releases' heading & click on the top link for the latest
version or ask a question in the VB.NET forum here:

http://www.gotdotnet.com/Community/MessageBoard/MessageBoard.aspx?id=8

Crouchie1998
BA (HONS) MCP MCSE

AddThis Social Bookmark Button