|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
overriding CreateParams in a control hosted in HTMLvarious "views" by our customers, these views are then dynamically compiled then will then be hosted in webpages for their staff to use etc... the problem I'm having is that I've created a control that has an invisble background by overriding CreateParams property, but this requires some permissions... the systems will have a CAS policy that grants full permission for our digital certificate, which is all fine and dandy except I can't find where to assert the permissions for CreateParams because its a property and not a class or method and means that my test machine won't load the controls that contain this control or any of the others with invisible backgrounds... any ideas? Welcome other ways to have an invisible background, but so far this is all I've found that works with a custom control... using dotnet 2.0. thanks Kris Wragg sample code: protected override CreateParams CreateParams { get { CreateParams cp = base.CreateParams; cp.ExStyle |= 0x00000020; //WS_EX_TRANSPARENT return cp; } } |
|||||||||||||||||||||||