Re: [ADVANCED-DOTNET] Converting doubles into integers without rounding errors

2008-08-27 Thread David Thompson
, MidpointRounding.AwayFromZero); Regards, David Thompson On Tue, 26 Aug 2008 04:40:44 -0400, David Nicholson <[EMAIL PROTECTED]> wrote: >I think the mistake is to use .5. As Greg pointed out, the error is very >small, and your problem is when that produces a number less than your >expected integer.

Re: [ADVANCED-DOTNET] Windows Forms--working with Images

2004-12-15 Thread David Thompson
ixing the C# with all the unmanaged C++ isn't possible (or at least as easy). David Why do you have to do that? If you're working in Windows Forms and .NET, you can just compile the ScrollImage namespace and use it as is... At 05:00 PM 12/15/2004, David Thompson wrote Thanks Ian, T

Re: [ADVANCED-DOTNET] Windows Forms--working with Images

2004-12-15 Thread David Thompson
Thanks Ian, That was exactly what I was looking for. Now to just rewrite it in C++ (since the rest of my app is already written that way. Boy I wish there was a C# to C++ generator available. David -- . David L. Thompson

[ADVANCED-DOTNET] Windows Forms--working with Images

2004-12-14 Thread David Thompson
Ian, and others, I've been working a quite a bit with windows forms and have gotten stuck. I've got Ian's ".NET Windows Forms" book and have used it a lot, but I need to find an example of making a window with a menu bar that just displays an image. The Image must resize if the window is resized an