Thomas,
        I drag and drop a MsFelxGrid object into a  MDIchild form.After that
I run the program and clicking menu bar item in MDIParent form and loading
that particuler form with ActiveX control.
        At that time I can see two same MDIchild window forms and one is
inactive.I haven't written any code inside the childForm. Even I used any
other AciveX control the same problem occur.only code I written in MDI
parent form as follows.( I think this occur in MDI childParent applications)

Public Class mainForm
    Inherits System.Windows.Forms.Form

    Private frm11 As Form1  ' I wrote this one

    Private Sub mainForm_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load

    End Sub

    Private Sub MenuItem1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MenuItem1.Click
        'I wrote this part
        frm11 = New Form1()
        frm11.MdiParent = Me
        frm11.Show()
    End Sub

End Class

-----Original Message-----
From: Thomas Tomiczek [mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 02. Mai 2002 11:02
To: [EMAIL PROTECTED]
Subject: Re: [DOTNET] "COM" Components in .NET frame work


First, Fernando, you talk about ActiveX Controls in partibular, not of
Com components. ActiveX Controls are a "Sub-set" of possible com
components.

Yes, you can use them directly.

For your issue with one one being created, this is a progamming error.
Post more details and we can see that we find it.

What I do not understand, though is this:

You say:
(a) when you load the form with the MsFelxGrid object it creates two
forms - what is this?
(b) when you remove the MsFlexGrid it created only one form.

What has loading/unloading a form to do with the creation of other
forms? I dont understand at all what you try to explain here.


Regards

Thomas Tomiczek
THONA Consulting Ltd.
(Microsoft MVP C#/.NET)



-----Original Message-----
From: Fernando, Chaminda non Unisys
[mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 2. Mai 2002 10:47
To: [EMAIL PROTECTED]
Subject: [DOTNET] "COM" Components in .NET frame work


Hi all,
        I want to know weather we can use "com" components in .NET frame
work.I am using  "MSFlexGrid" in  MDI childform. when I am loading  that
form with "MSFlexGrid" object it create two forms(one of them is
inactive) but when I remove  MSFlexGrid object it create only one form.
What is the reason for that ?

thanks,
mcdf

You can read messages from the DOTNET archive, unsubscribe from DOTNET,
or subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to