Transparent controls

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi All,
I am developing using C#, .net CF2.0, WinCE5.0.

Does anyone know a C# .NetCF2.0 equivalent I can use for the
Graphics.CopyFromScreen method?

I need to capture an area of my window in order to manilpulate the pixels..

thanks.
 
Thank you for that.
I can see how this will work very well, however I seem to the following issue:

When I added the interop declarations into my code, all my custom controls
were 'greyed' out in the form designer.....? Wierd.
As soon as i commented out the code :
/*
DllImport("coredll.dll")]
public static extern int BitBlt(IntPtr hdcDest, int nXDest, int nYDest, int
nWidth, int nHeight, IntPtr hdcSrc, int nXSrc, int nYSrc, uint dwRop);
*/
my controls were visible again in the form.
Any ideas on why this is happening?


thanks again.
 
I address this very topic in a previous blog entry regarding custom
controls.

http://rhinomobile.blogspot.com/2007/05/net-cf-custom-control-roundedgroupbox.html

Ryan

--
Ryan O'Neill
Windows Mobile Native and Managed Developer
http://rhinomobile.blogspot.com

Rticul8 said:
Thank you for that.
I can see how this will work very well, however I seem to the following
issue:

When I added the interop declarations into my code, all my custom controls
were 'greyed' out in the form designer.....? Wierd.
As soon as i commented out the code :
/*
DllImport("coredll.dll")]
public static extern int BitBlt(IntPtr hdcDest, int nXDest, int nYDest,
int
nWidth, int nHeight, IntPtr hdcSrc, int nXSrc, int nYSrc, uint dwRop);
*/
my controls were visible again in the form.
Any ideas on why this is happening?


thanks again.


Something like this?

http://blog.opennetcf.org/ayakhnin/PermaLink.aspx?guid=a5c9adc4-85d6-498e-8adf-0ba5fe9d0db7


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Managed Code in an Embedded World
www.OpenNETCF.com
 
thanks for your responses so far.
I have not resolved the design time problem though. I have read your blog,
but cannot find the file 'DesignTimeAttributes.xmta' you mention that allows
the designer to display the control. (I am using Visual Studio 2005. ?).
What is even more concerning to me is that even if I declare a simple
interop like this :
[DllImport("coredll.dll")]
private static extern uint GetTickCount();

within a DIFFERENT class than my control (but in the same namespace), which
is not actually used at all, the designer still refuses to display all my
existing controls (none of which employ any interops)...
I have also tried using the following code :
[DllImport("coredll.dll", EntryPoint = "GetTickCount")]
private static extern uint GetTickCountCE();

which does not work either.

Not sure where to go from here, any help is greatly appreciated.

thanks


Ryan O'Neill said:
I address this very topic in a previous blog entry regarding custom
controls.

http://rhinomobile.blogspot.com/2007/05/net-cf-custom-control-roundedgroupbox.html

Ryan

--
Ryan O'Neill
Windows Mobile Native and Managed Developer
http://rhinomobile.blogspot.com

Rticul8 said:
Thank you for that.
I can see how this will work very well, however I seem to the following
issue:

When I added the interop declarations into my code, all my custom controls
were 'greyed' out in the form designer.....? Wierd.
As soon as i commented out the code :
/*
DllImport("coredll.dll")]
public static extern int BitBlt(IntPtr hdcDest, int nXDest, int nYDest,
int
nWidth, int nHeight, IntPtr hdcSrc, int nXSrc, int nYSrc, uint dwRop);
*/
my controls were visible again in the form.
Any ideas on why this is happening?


thanks again.


Something like this?

http://blog.opennetcf.org/ayakhnin/PermaLink.aspx?guid=a5c9adc4-85d6-498e-8adf-0ba5fe9d0db7


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Managed Code in an Embedded World
www.OpenNETCF.com


hi All,
I am developing using C#, .net CF2.0, WinCE5.0.

Does anyone know a C# .NetCF2.0 equivalent I can use for the
Graphics.CopyFromScreen method?

I need to capture an area of my window in order to manilpulate the
pixels..

thanks.
 
Back
Top