[quoted text, click to view] "baramuse" <baramuse@hotmail.com> wrote in message
news:OYrFX1QvEHA.1264@TK2MSFTNGP12.phx.gbl...
> Hi all :)
>
> Almost everything is in the subject... I just want to set the location of
> the SIP programatically(is that english? :p)
Yes, it is.
[quoted text, click to view] > The Bounds property is read-only so...
>
> Oh yes I'm dealing with a WindowsCE.net OS and using C# :)
>
> Thanks in advance and good morning/afternoon/night :p
You should try P/Invoking SipSetInfo:
struct SIPINFO
{
int cbSize; // Set to 48
int fdwFlags; // Set to 0
Rectangle rcVisibleDesktop; // set to 0,0,0,0
Rectangle rcSipRect;
int dwImDataSize; // Set to 0
IntPtr pvImData; // Set to IntPtr.Zero
} SIPINFO;
[DllImpot("coredll")]
extern static bool SipSetInfo(ref SIPINFO sipInfo);
Also of interest is SipSetDefaultRect(RECT*) which specifies the default
screen rect for all new instances of SIP