Regarding usercontrol in .NET

S

sonali_reddy123

Hi all,

I have a problem regarding use of a usercontrol in .NET.
My usercontrol consists of two listviews which I say as source and
destination lisviews which
contains the files and folders.
I select files from source view and transfer it to the destination
view.The problem arises while
displaying the dialog for overwriting the file or folder if it is
present on the other side.

The overwrite form which I want to display should be modal. Otherwise
it could delete the
files or folders in the background view. I don't want to use a flag
which will block the deletion
if transfer is going on. The overwriteDialog should not allow me to
shift the focus elsewhere.

The problem is when i display the dialog using
_overwriteFile.showDialog() '_overwriteFile is a object of
OverwriteFile

It is not getting displayed as modal.Remember the parent for the dialog
is a usercontrol.
I have even tried with displaying it by _overwriteFile.showDialog(Me).
But still the problem
persists.

Is it that we cannot display a modal dialog on a usercontrol?

I have also used one third party control of Magiclibrary's docking
manager which is the container for my usercontrol.

Somewhere on the posts I have read that third party controls also play
role while displaying the modal dialogs.If anyone has any idea abt this
control and is there any relevance with the
problem I am facing plz. do reply

Thanks in advance.
Imm. reply needed plz. do reply.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top