Showing posts with label visual studio. Show all posts
Showing posts with label visual studio. Show all posts

Sunday, 15 May 2011

visual studio - c# / vb - Label is not transparent

Problem
Setting the Backcolor of the Label component to web -> Transparent, the Label is not transparent at all!

Solution
This is because MS is confused about what is really transparent! Forget the transparent effect between the components!
This Transparent color means that if you set Backgroundimage at the container where hosts the Label component, the Label will be transparent at the image that is loaded in the container.
In practice...
- create a Form
- set a Backgroundimage at the created form, load a jpg file...
- drop a Label compoent
- set the at Label component the property Backcolor to web -> Transparent

Now  you have a transparent Label in the way of Microsoft :(

Tuesday, 10 May 2011

Visual Studio - error: System.Security.SecurityException was unhandled (trying to use a referenced DLL)


situation

Visual Studio compiles an application that is using a foreign DLL (a referenced one) but on run time whern the app tries to use the dll occurs the follow error
problem

Visual Studio - error
System.Security.SecurityException was unhandled
  Message="That assembly does not allow partially trusted callers."
difficulty level

1/10 :)
compatibility

VS2008
solution

project -> properties -> security -> check Enable ClickOnce Security Settings -> select This is a full trust application