Re: activeX doesn't dispose

Tech-Archive recommends: Speed Up your PC by fixing your registry



Hi thanks for the tip and I'll try that but I'm not even sure anymore if it
has to do with the Grid, because if I test it in a test app with the same
activex on a usercontrol and that usercontrol on yet another usercontrol and
that one on a form there's no problem, so I think that it's some bad coding
in some of our classes that causes the whole usercontrol not to be released.
So that's going to be some more puzzling...

Greetz Peter

"Chris Dunaway" <dunawayc@xxxxxxxxx> schreef in bericht
news:1112277900.299731.197290@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Try something like this:
>
> Imports System.Runtime.InteropServices
>
> Marshal.ReleaseComObject(Grid)
>
> Does that help?
>


.



Relevant Pages

  • Re: Multiple derivations from UserControl
    ... that they derive from UserControl and the designer needs to create an ... instance of Grid when I view EditGrid in the designer. ... I don't know why it needs to instantiate from Grid in your case. ... Add an Inherited UserControl to the project. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: How to get gridview selected row text
    ... With a Grid, I typically put a button as the first column - called "View". ... i am having a gridview in aspx page and a usercontrol in master page ... Protected Sub gvwServices_SelectedIndexChanged(ByVal sender As Object, ... here setstatus is the property of master page thats sets selected row ...
    (microsoft.public.dotnet.framework.aspnet)
  • datagridview as part of UserControl - error from designer: object reference not set to....
    ... I have written a simple UserControl that consists of a datagridview ... and two buttons that control the scrolling of the grid. ... the "Columns" property within that gives "object reference not set to ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Frage zu LaoutManagement in WPF
    ... Für komplexere Layouts ist das Grid Panel häufig eine gute Wahl. ... wie man das Visual Studio Layout (fast ohne Code) nachahmen kann. ... im UserControl den Hintergrund flächendeckend zu haben. ... CodeBehind für den Button Handler ...
    (microsoft.public.de.german.entwickler.dotnet.csharp)
  • Viewstate and LoadControl
    ... I am loading a datagrig, which has a placeholder in it ... dynamically with a usercontrol. ... Each row in the main grid contains a button ...
    (microsoft.public.dotnet.framework.aspnet)