Hi, looking for a few pointers about dialogs forms. I would like to
have add new functionality in an app I am writing, so the user could
add a number of different items, reports, questions etc, is there an
easy way to create dialogs like the VS IDE Add Item and Add Project
dialogs, or is this done through some sort of user control,
specifically I would like to replicate the behaviour where the image of
the item goes blue when the user clicks on it like VS IDE? I am a web
developer trying to get to grips with windows forms stuff so any
suggestions would be great.

Cheers

EJ

Re: Dialogs like VS 2005 Add Item and Project by Herfried

Herfried
Wed Jan 17 10:33:59 CST 2007

"Jenbo" <eamonnjennings@yahoo.co.uk> schrieb:
> Hi, looking for a few pointers about dialogs forms. I would like to
> have add new functionality in an app I am writing, so the user could
> add a number of different items, reports, questions etc, is there an
> easy way to create dialogs like the VS IDE Add Item and Add Project
> dialogs, or is this done through some sort of user control,
> specifically I would like to replicate the behaviour where the image of
> the item goes blue when the user clicks on it like VS IDE?

Check out the ListView control. That's the control used by the VS IDE.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Re: Dialogs like VS 2005 Add Item and Project by Jenbo

Jenbo
Wed Jan 17 11:14:18 CST 2007

Thanks for that Herfried, having only just looked at this, could you
let me know if this will do the click action I described if you know
off hand?

Thanks
Eamonn
Herfried K. Wagner [MVP] wrote:
> "Jenbo" <eamonnjennings@yahoo.co.uk> schrieb:
> > Hi, looking for a few pointers about dialogs forms. I would like to
> > have add new functionality in an app I am writing, so the user could
> > add a number of different items, reports, questions etc, is there an
> > easy way to create dialogs like the VS IDE Add Item and Add Project
> > dialogs, or is this done through some sort of user control,
> > specifically I would like to replicate the behaviour where the image of
> > the item goes blue when the user clicks on it like VS IDE?
>
> Check out the ListView control. That's the control used by the VS IDE.
>
> --
> M S Herfried K. Wagner
> M V P <URL:http://dotnet.mvps.org/>
> V B <URL:http://dotnet.mvps.org/dotnet/faqs/>


Re: Dialogs like VS 2005 Add Item and Project by Herfried

Herfried
Wed Jan 17 12:09:39 CST 2007

"Jenbo" <eamonnjennings@yahoo.co.uk> schrieb:
> Thanks for that Herfried, having only just looked at this, could you
> let me know if this will do the click action I described if you know
> off hand?

Yes, that's the action which is typical for listview controls (in Windows
Explorer, VS, ...). Check out the listview control's 'View' property too.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>