c1Editor control blank (disposed?)

Posted by: mpdacc on 27 September 2017, 9:10 pm EST

    • Post Options:
    • Link

    Posted 27 September 2017, 9:10 pm EST

    Hi,

    I have 2 forms in my VB.NET application, frmMain, and frmEditor which contains the c1Editor control (version 4.0.20141.210)

    In the frmMain load event I have declared MyForm as New frmEditor. I also added a button on frmMain, which is calling MyForm.ShowDialog.

    The first time I click the button, MyForm (instance of frmEditor) appears and I can use the c1editor control without any problems. Then after closing and clicking the button again, the c1editor control is totally blank and cannot be used. (as if it is disposed) All other controls on MyForm are in the same state they were in when I closed the form for the first time.

    It is not an option in my application to create a new instance of the form each time the button is clicked, so I hope there is a solution for this.

    Thanks

  • Posted 27 September 2017, 9:10 pm EST

    Hi,

    We could also replicate the issue at our end and had escalated it to the concerned team (Tracking ID:245821). We will get back to you as soon as there is any information from them.

    Thanks,

    Akshay

  • Posted 27 September 2017, 9:10 pm EST

    Hi,

    Can you give me an update on this issue? I just upgraded to the latest version, but it unfortunately has the same problem. I hope it can be fixed soon.

    Thanks,

    Willy

  • Posted 27 September 2017, 9:10 pm EST

    Hi Willy,

    The issue is yet to be fixed. However I have asked the developers to look into the same on priority. Will let you know once there will be any information from them.

    Thanks,

    Pragati

  • Posted 27 September 2017, 9:10 pm EST

    Hi Pragati,

    Thanks for the quick response.

    I look forward to the updated version of the control.

    Thanks for keeping me informed.

    Best regards,

    Willy

  • Posted 27 September 2017, 9:10 pm EST

    Hi Willy,

    It seems to be internal MSHTML bug with resources releasing when working with windows.

    There is a reliable code, it opens window, shows and closes it.

    [vb]Dim xml As String

    Private Sub openButton_Click(sender As Object, e As EventArgs) Handles openButton.Click

    Dim frm = New frmEditor()

    If xml <> “” Then

    frm.C1Editor1.Xml = xml

    End If

    frm.ShowDialog()

    xml = frm.C1Editor1.Xml

    End Sub[/vb]

    Thanks,

    Akshay

  • Posted 27 September 2017, 9:10 pm EST

    Hi Akshay,

    Thank you for your response.

    So it is only possible to work around this problem by creating a new instance each time the user presses the button? And does you answer implicates that it is not possible from your side to fix this issue because it is an MS error?

    Kind regards,

    Willy

  • Posted 27 September 2017, 9:10 pm EST

    Hi Willy,

    Yes, you need to create new instance each time the user presses the button.

    Also, yes it seems to be an internal MSHTML bug with resources releasing when working with windows.

    Thanks,

    Akshay

  • Posted 27 September 2017, 9:10 pm EST

    Hi Akshay,

    Thanks for the quick response.

    Hope MS will fix it some day…

    Regards,

    Willy

  • Posted 6 April 2018, 6:14 am EST

    Hi,

    About this issue again…

    I have the same form with the c1editor control on it.

    Recently i wanted to handle the concurrency problem. If 2 users make changes at the same time, i want to inform the 2nd user about the fact that the content of the editor was changed by the first user. After informing, i wanted the content of the editor to refresh for the 2nd user, so i re-filled the underlying table.

    After this i unfortunately got an error “Data binding cannot find a row in the list suitable for all bindings”. I had the feeling this had something to do with the c1editor control, so i replaced it with a normal multiline textbox. After this, everything worked perfectly and the XML content was refreshed in the textbox as expected.

    Is this the same issue? Will it ever be solved?

    Thanks,

    Willy

  • Posted 25 April 2018, 9:26 am EST

    Hello Willy,

    Could you share a demo application of how you have implemented it. Having an application will help us investigate whether there is anything wrong with implementation/not. Also, it will speed up the research process and help us in assisting your better.

    Regards,

    Ruchir Agarwal

  • Posted 26 April 2018, 5:13 am EST

    Hello Ruchir,

    I added a some of the code to this PDF file (in zip file).

    Hopefully this is enough for you to investigate/simulate the problem.

    frmModelInfoGroup.zip

    Thank you and kind regards,

    Willy

  • Posted 9 May 2018, 5:20 am EST

    Hi,

    Did you find the time to look at this issue?

    Thanks,

    Willy

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels