Hi,
here goes the error msg: (The type or namespace name 'ShellApi' could not be found (are you missing a using directive or an assembly reference?)
My Code is attached below. Error on ShellApi.RECT
private void AppbarQueryPos( ref ShellApi.RECT appRect)
{
// prepare data structure of message
ShellApi.APPBAR DATA msgData = new ShellApi.APPBAR DATA();
msgData.cbSize = (UInt32)Marshal .SizeOf(msgData );
msgData.hWnd = Handle;
msgData.uEdge = (UInt32)m_Edge;
msgData.rc = appRect;
// query postion for the appbar
ShellApi.SHAppB arMessage((UInt 32)AppBarMessag es.QueryPos, ref msgData);
appRect = msgData.rc;
}
private void SizeAppBar()
{
if (!IsAppbarMode) return;
ShellApi.RECT rt = new ShellApi.RECT() ;
......
..
..
If you got a Code for docking in C#, Please share.
I am a novice in C#, Hope you would help.
Regards,
Dinu Davis
here goes the error msg: (The type or namespace name 'ShellApi' could not be found (are you missing a using directive or an assembly reference?)
My Code is attached below. Error on ShellApi.RECT
private void AppbarQueryPos( ref ShellApi.RECT appRect)
{
// prepare data structure of message
ShellApi.APPBAR DATA msgData = new ShellApi.APPBAR DATA();
msgData.cbSize = (UInt32)Marshal .SizeOf(msgData );
msgData.hWnd = Handle;
msgData.uEdge = (UInt32)m_Edge;
msgData.rc = appRect;
// query postion for the appbar
ShellApi.SHAppB arMessage((UInt 32)AppBarMessag es.QueryPos, ref msgData);
appRect = msgData.rc;
}
private void SizeAppBar()
{
if (!IsAppbarMode) return;
ShellApi.RECT rt = new ShellApi.RECT() ;
......
..
..
If you got a Code for docking in C#, Please share.
I am a novice in C#, Hope you would help.
Regards,
Dinu Davis
Comment