M
Mohamed Oubouchil
I'm trying to create a webcontrols, similar to a TextBox. I'm using
this function:
[DllImport("coredll.dll")]
private static extern IntPtr GetCapture();
public static IntPtr GetHWnd(Control ctrl)
{
IntPtr hOldWnd = GetCapture();
ctrl.Capture = true;
IntPtr hWnd = GetCapture();
ctrl.Capture = false;
SetCapture(hOldWnd);
this.Invalidate();
return hWnd;
}
I have use this code for windows forms and it work fine, but when i
hirite my controls from system.Web.UI.Webcontrols.testbox, it's giving
error
- "ctrl.Capture = true" not supporting by system.Web.UI.Webcontrols
- "Invalidate()" not supporting by system.Web.UI.Webcontrols
please can you help me to resolve these issues.
Thanks advanced for your help,
Best regards,
Mohamed Oubouchil
Mughamrat
this function:
[DllImport("coredll.dll")]
private static extern IntPtr GetCapture();
public static IntPtr GetHWnd(Control ctrl)
{
IntPtr hOldWnd = GetCapture();
ctrl.Capture = true;
IntPtr hWnd = GetCapture();
ctrl.Capture = false;
SetCapture(hOldWnd);
this.Invalidate();
return hWnd;
}
I have use this code for windows forms and it work fine, but when i
hirite my controls from system.Web.UI.Webcontrols.testbox, it's giving
error
- "ctrl.Capture = true" not supporting by system.Web.UI.Webcontrols
- "Invalidate()" not supporting by system.Web.UI.Webcontrols
please can you help me to resolve these issues.
Thanks advanced for your help,
Best regards,
Mohamed Oubouchil
Mughamrat