Hi all,
I m trying to do like this...tthat when any end user try to open any listbox item he should get a form..for eg when he open news (a listbox item) he will get a form..when he open another listbox item he should get a different form...for this ihv created 2 different forms when i open any list box item it shows the same form 2 the user not different forms for different items...i hv done like this...

1. in rss file there r two forms
2. created a file testshow form as
TInt CTestShowForm::ExecuteLD(TInt aResourceId)
{
iCurrentId = aResourceId;
return CAknForm::ExecuteLD(R_AKNEXFORM_TEXT_FIELD_DIALOG);
}

// ----------------------------------------------------------------------------
// CAknExFormSaveForm::PrepareLC( TInt aResourceId )
//
// ----------------------------------------------------------------------------
//
void CTestShowForm::PrepareLC(TInt aResourceId)
{
iCurrentId = aResourceId;
CAknForm::PrepareLC(R_AKNEXFORM_TEXT_FIELD_DIALOG);
}


TInt CTestShowForm::ExecuteNextLD(TInt aResourceId)
{
iCurrentId = aResourceId;
return CAknForm::ExecuteLD(R_AKNEXFORM_SECOND_TEXT_FIELD_DIALOG);
}

void CTestShowForm::PrepareNextLC(TInt aResourceId)
{
iCurrentId = aResourceId;
CAknForm::PrepareLC(R_AKNEXFORM_SECOND_TEXT_FIELD_DIALOG);
}

3 in appui as

void CTestFormAppUi::OpenApplicationL()
{
TInt index = iAppContainer->CurrentItemIndex();
CTestShowForm* iForm = CTestShowForm::NewL();
if(index == 0)
{
iEikonEnv->InfoMsg(_L("News"));
iForm->ExecuteLD(R_AKNEXFORM_TEXT_FIELD_DIALOG);

}
else if (index == 1)
{
iEikonEnv->InfoMsg(_L("Sports"));
iForm->ExecuteNextLD(R_AKNEXFORM_SECOND_TEXT_FIELD_DIALOG);

}
}

plz help..will be garteful 2u all

regards
kapil kaushik