MDI Forms with Infragistics Components VB.NET

P

Pedro

Hi all;

I have one mdi form with several components, some of them from
Infragistics.

Somewhere in my app, i open another form (sdi) containing a Crystal
Viewer object, added to my mdi form. When resized (the form containing
the Viewer object), my menus, explorer bars and toolbars should be
accessible, and they are, only once.
If i navigate between my mdi principal form and my form which contains
the viewer object, at the first time i can iteract to my mdi form
components, but when i try to do it again, my mdi form state looks
like disabled. Every mdi form objects, some how, remains unchangeable
and do not respond to any event. Even mdi form close event looks
disabled!

Am i missing something here? Has anyone ever encountered this kind of
problems working with MDI forms? I use VB.NET 2003 1.1 and Crystal
Reports shipped with it.

Help is most wanted and urgent!

Thanks in advance!
 
P

Pedro

Hi again;

I really need some assistance, and i forgot to mentioned some
important matters in the earlier post, so;

I don't think this kind of issue's caused by Crystal. I've been
working with Crystal Reports for quite some time and i don't ever
registered this problems before. As i said, when i open the form that
contais the viewer object, i can iteract with my MDI form
objects(Toolbars, ExplorerBar, Menus...), but if i go back to the
viewer form, and then again try to interact with my mdi form, that's
when the strange behavior occurs!!!

I forgot to mentioned my MDI form is inherited, but it seems to me
that's not the problem!

Somewhere in my code, i add my sdi form to my mdi form, as follows:

MDI FORM - toMainForm
SDI FORM - loPreview

Dim loPreview As frmLstPreview = New frmLstPreview
If Not toMainForm Is Nothing Then
toMainForm.AddOwnedForm(loPreview)
End If

My mdi form is passed by reference to a method with (byref toMainForm
as Form) and in it, my sdi form is added to mdi form. Is my code
correct?
I've tryed the follow to:

Dim loPreview As frmLstPreview = New frmLstPreview
If Not toMainForm Is Nothing Then
toMainForm.AddOwnedForm(loPreview)
loPreview.MdiParent = toMainForm
'loPreview.ParentForm = toMainForm
End If

and the behavior stills the same.

I don't think this kind of issue's caused by Infragistics components,
but... Is it possible? Any ideas?

Thanks in advance!
 
P

Pedro

Hi again;

I managed to resolve part of the problem;

I changed the code to the following:

MDI FORM - toMainForm
SDI FORM - loPreview


....
loPreview.MdiParent = toMainForm
....


but it happens that i have some panels in my mdi form, and my sdi form
does not show when created and invoked. I've tryed with a simple app.
and sdi form is loaded and activated correctly, but remains on the
back of my panels!... Tryed also bringing sdi form to front, selecting
it, giving it the focus, but nothing works!...

Why? Is it a .NET bug? If so, how can i interact to my mdi form
components by making as follows:

toMainForm.AddOwnedForm(loPreview)
loPreview.show()

knowing that the problems that i mentioned in earlier posts maintains?

Please, help is urgent!

Thanks in advance!
 
P

Pedro

Hi all;

I'm sorry from beeing so persistant, but i really need some assistance
on this.

I guess someone had this problem before and if so, please read these
posts and reply your opinion. I would be extremelly grateful!

I'm forgetting something here, 'cause i don't believe that MS would
miss this issue on MDIs forms. Please help me out!

Thanks in advance.
 

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