DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Tue, 24 Jul 2007 05:26:29 -0700,    posted on: microsoft.public.dotnet.framework.compactframework        back       

Thread Index
  1    Rticul8
          2    ctacke/ ctacke[at]opennetcf[dot]com
                 3    Rticul8
                 4    Ryan O'Neill
                        5    Rticul8


Transparent controls   
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.
Date:Tue, 24 Jul 2007 05:26:29 -0700   Author:  

Re: Transparent controls   
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


"Rticul8"  wrote in message 
news:1E3B3EE0-7B9F-4AE2-8E8A-7CEFA1C8DDE6@microsoft.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. 
Date:Tue, 24 Jul 2007 08:15:16 -0500   Author:  

Re: Transparent controls   
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.
   

"<ctacke/>" wrote:


> 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
> 
> 
> "Rticul8"  wrote in message 
> news:1E3B3EE0-7B9F-4AE2-8E8A-7CEFA1C8DDE6@microsoft.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. 
> 
> 
> 
Date:Tue, 24 Jul 2007 07:16:02 -0700   Author:  

Re: Transparent controls   
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"  wrote in message 
news:DC715927-9488-454D-A78E-D3C312880538@microsoft.com...

> 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.
>
>
> "<ctacke/>" wrote:
>
>> 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
>>
>>
>> "Rticul8"  wrote in message
>> news:1E3B3EE0-7B9F-4AE2-8E8A-7CEFA1C8DDE6@microsoft.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.
>>
>>
>> 
Date:Tue, 24 Jul 2007 11:49:50 -0400   Author:  

Re: Transparent controls   
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" wrote:


> 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"  wrote in message 
> news:DC715927-9488-454D-A78E-D3C312880538@microsoft.com...
> > 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.
> >
> >
> > "<ctacke/>" wrote:
> >
> >> 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
> >>
> >>
> >> "Rticul8"  wrote in message
> >> news:1E3B3EE0-7B9F-4AE2-8E8A-7CEFA1C8DDE6@microsoft.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.
> >>
> >>
> >> 
> 
> 
> 
Date:Wed, 25 Jul 2007 00:46:04 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us