Sorry,
My VB is too bad for me to dare write it in public :(
The basic algoritm is to ...
1) Create a Parent class and a Child class.
2) Create a Child constructor that accepts a Parent as an argument
3) In the Parent class create a public method for changing selected item
(NewItem)
4) When you need to see the properties, create a Child object using the
overloaded constructor (new Child(this)). Store the reference to this
Child for later use. Call on the Child to show properties for the
selected item (pass an item reference).
5) When in the Child you need to change the selected item, call the Parent
(NewItem). The parent will then call Child with a reference to the new
item.
You may also check if the child reference is valid on SelectedIndexChanged
for the ListBox, if it is not null this means the properties dialog is
open and call the child to show properties.
On Sat, 19 Feb 2005 22:58:07 GMT, Ignacio Estrada via DotNetMonster.com
[quoted text, click to view] <forum@DotNetMonster.com> wrote:
> Man, I forget to say you I am using VB instead of C# and I can not do the
> translation to VB. So please could you write this sample on VB for me ?
>
--
Happy Coding!