Patrick
Thanks. That worked.
My new problem now is this:
I have a COM server (developed in VB6) with a property that accepts a VB6
Form as parameter. I am trying to consume that server from within .NET. The
problem is that the application generates a Type Mismatch error because it
can't convert a VB.NET Form to a VB6 Form. Does anyone have a way around
this?
Thanks
Terrence
-----Original Message-----
From: Patrick Steele [mailto:patrick@m...]
Sent: Wednesday, February 26, 2003 6:29 PM
To: Professional Windows Forms
Terrence Joubert wrote:
>
> I would like to know what .NET component replaces
> Screen.TwipsPerPixelX.
Not sure about C#. In VB.NET, assuming you have a reference to
Microsoft.VisualBasic.Compatibility.DLL, you can get it from:
VB6.Support.TwipsPerPixelX()
---
Patrick Steele
Microsoft .NET MVP
http://radio.weblogs.com/0110109/
---
Developing C# Windows Software: A Windows Forms Tutorial
Do you want to use your C# knowledge to build Windows applications?
We will teach you the crucial Windows programming techniques that
you will need to start building your own fully featured applications.
http://www.wrox.com/ACON11.asp?ISBN=186100737X