Can´t load images on a ListView

Topics: CAB & Smart Client Software Factory
Sep 13, 2005 at 3:52 PM
originally posted by: naorkorona


We have a SmartPart that contains a ListView control, on which we need to load images.
The problem is that when we show this SmartPart in a workspace the images are not shown. We tried the same code in a non-CAB application and it works fine.
Are we missing something?

Sep 15, 2005 at 2:23 AM
originally posted by: richardtitze

i had the same problem ... the solution is actually quite simple. you have to move the statement


before the statement that creates the shellform (something like this using cab)


// ApplicationHost is the central repository for all items that are used
// application-wide. That includes loaded modules and may include any
// common sevices.

Host = new ApplicationHostFactory().CreateHost();

// Create the shell form inside the main work item

ShellForm mainForm = Host.DefaultWorkItem.Create<ShellForm>();

for me it works fine now