Re: Lose Design-Time Support for UserControl...

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi,

If you insert your code in a function or in the constructor of the
class and not in the automatically genarated code, you mustn't have
this kind of problem. Or try to declare cameraCaptureDialog as a local
object in a function.

BR


Fabien Decret
Windows Embedded Consultant

ADENEO (ADESET)
http://www.adeneo.adetelgroup.com/





Rob V a écrit :

Am developing mobile app, using a number of UserControls (UC) dynamically
rendered inside a single winform. When I add code to the UC to instantiate a
cameraCaptureDialog object, I loose design-time support for the UserControl,
inside the winform. Instead, the UserControl just renders it name in text,
inside the winForm. Interestingly, when I remove the CameraCaptureDialog
object from the UserControl codebehind, the UserControl once agains renders
itself inside the winform at design time. Any suggestions would be
appreciated.

.



Relevant Pages

  • Re: Embed UserControl in IE from local assembly or GAC ?
    ... WinForm UserControl, not an ASPNET control... ... So I'm really trying to embed a WinForm control in the browser but I ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Forms in TabPage anzeigen
    ... Die UserControl kannst Du dann wahlweise ... in eine TabPage oder in einer WinForm einbinden. ... auf der ich zur Laufzeit bereits vorhandene Forms ...
    (microsoft.public.de.german.entwickler.dotnet.csharp)
  • Strange permission issue with a UserControl
    ... I'm encountering a strange permission issue with a custom UserControl... ... A winform in the exe project contains the custom ... grant FullTrust to all of the assemblies in question, ...
    (microsoft.public.dotnet.security)
  • Problem in UserControl
    ... I am adding a usercontrol in sharepoint, ... Javascript code on this TextBox. ... because when user control renders ...
    (microsoft.public.sharepoint.portalserver.development)
  • dynamically loading usercontrol
    ... I have a UserControl that renders some HTML content. ... dynamically load and render "n" instances of this usercontrol on a host aspx ...
    (microsoft.public.dotnet.framework.aspnet)