Hello all. I am currently working on a project where I need to make an InkPicture transparent. We are doing the project in C#. The way I am attempting to do this is to create an inhereted control manually (i.e. not using the wizard since there is no .dll to link off of) and then using the following code taken from SEVERAL web pages on how to make controls transparent :
protected override CreateParams CreateParams
{
get
{
CreateParams cp = base.CreateParams;
cp.ExStyle |= 0x20;
return cp;
}
}
protected override void OnPaintBackground(PaintEventArgs e)
{
// do nothing
}
potected override void OnMove(EventArgs e)
{
RecriateHandle();
}
The problem is, when I add this control to my Form in place of an ink control, it appears as a black box. Anyone know what the problem might be?
Of course, I am assuming there isn't some trivial way to make an InkPicture transparent. If there is, please tell me!
-Chu
protected override CreateParams CreateParams
{
get
{
CreateParams cp = base.CreateParams;
cp.ExStyle |= 0x20;
return cp;
}
}
protected override void OnPaintBackground(PaintEventArgs e)
{
// do nothing
}
potected override void OnMove(EventArgs e)
{
RecriateHandle();
}
The problem is, when I add this control to my Form in place of an ink control, it appears as a black box. Anyone know what the problem might be?
Of course, I am assuming there isn't some trivial way to make an InkPicture transparent. If there is, please tell me!
-Chu
