Answer Questions
Kathleen Chua System.ArithmeticException (Overflow or underflow in the arithmetic operation.)
im new to .net . today when i opened my application it gave an error saying "An unhandled exception of type 'System.ArithmeticException' occurred in system.drawing.dll Additional information: Overflow or underflow in the arithmetic operation." kindly please tell me how to remove it. i also searched it on net and i found the following that by changing the following code [STAThread] static void Main() { Application.Run(new Form1()); } to [DllImp ...Show All
Debil Implicit operator and Generic classes
I have a highly constrained generic class that I would like to impliment a generic implicit conversion between instances. I can not find any examples, and my lame attempts have not compiled. Is this posible If so, what would be the syntax THX, George I asked a similar question awhile back. Here was the response: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=142213&SiteID=1 Your inten ...Show All
Richard1 How do you REMOVE or DELETE Items from Recent Projects list in VS2005 RC?
I have been testing VS2005 RC and as a result, I have built many applications. Most I am no longer interested in or use and would like to DELETE them from the RECENT Projects list, but I dont see how ! I have been achieving this by manualy deleting the project from IIS, but there's got to be a better way ! Any ideas cheers, yousaid I have many times resorted to the registry to clear the project mru list. ...Show All
CF2006 Difference between out and [Out]
Hi Does anybody know what is the difference between out and [Out] For example if I'm passing byte[] to unmanaged c++ and I use fun(out byte[] bArray); // this doesn't work fun(ref byte[] bArray); // doesn't work too fun([Out] byte[] bArray); // this work perfectly C++ fun(*byte); The out keyword is equivalent to the combination [Out] ref. So the difference between out and [Out] is that [Out] by itself doesn't make a byre ...Show All
Danny Tykon Knowing when a control has focus
Hi howzit I have a panel which displays many different controls after certain user events...i.e. the controls are instantiated and displayed in runmode. How do I know when one of these controls has focus i.e. how can I create a Enter Event which relates to any control in this panel's collection, so that when a user clicks any of these run time controls, i can run code and get location and size information from this particular contro ...Show All
Sun Ici Windows Media Player Fullscreen Event
I'm trying to make a program to organize my video files. This program displays 8 files at a time or so and the files play. The videos are normally muted but I want to unmute the audio for a video when I change it to fullscreen and then back again when I exit fullscreen mode. I can't seem to find a Windows Media Player event that says when the fullscreen property changes. Is there something like this and if not, how could I accomplish this ...Show All
daniel sovino drag & drop with mouse
Is it possible in a web application doing drag and drop using mouse What events have i to use For example from a menu, to a column of a datagrid... thx It is possible but it has to be coded on the client side using JavaScript, it can not be done in .NET. If you only support IE, you can do it with .htc file. Could you be more precise Send me refers... Thx ...Show All
jagphysics datagrid, row height
A question on datagrid: i have a datagrid 180px x 380px. When i delete a row, the datagrid resize itself, so when i have only a row, the row is very large in heght. How can i avoid it Maybe have i to size it in % THX hi, You don't need to resize both the width and height. Set only the size of the width in px. and do not specify the size of the height. Just leave it blank. HTH Michael Castillones ...Show All
circuitblood CTS Can Be Compromised
Take a closer look at this code: class Program { public static void Main() { Base b = new Base(); Derived d = new Derived(); Console.WriteLine("base's actual type: {0}", b.GetType()); Console.WriteLine("derived's actual type: {0}", d.GetTy ...Show All
vikki_k1 How can I call a static function for a generic class?
I have a class SwatchPanel which takes Swatch as a parameter type. How can I call a static function within the Swatch class For example the code below fails on TSwatch.Exists. How can I get the call to work Suggestions would be very welcome. Thanks, Steve public class SwatchPanel <TSwatch> : System.Windows.Forms. Panel where TSwatch : Swatch { protected virtual bool SetOkButtonState() &n ...Show All
Remi 42 Attempted to read or write protected memory error in TransactionScope with OracleClient(10g)
We are randomly getting this error message on our development and staging machines: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.; at System.Data.Common.UnsafeNativeMethods.OraMTSJoinTxn(OciEnlistContext pCtxt, IDtcTransaction pTrans) at System.Data.OracleClient.TracedNativeMethods.OraMTSJoinTxn(OciEnlistContext pCtxt, IDtcTransaction pTrans) at System.Data.OracleClient.OracleIntern ...Show All
GlennC How to make certain classes accessible to your own developers only?
Hello, since almost 2 years my company is playing around with .NET and there is one question none of us few .NET developers could answer good enough to make us satisfied. If I develop a shared class library that contains classes that 3rd party developers should be able to use, how can I make some of the classes inaccessible to these 4rd party developers though keep them available to ourselves I know that we can use internal class SomeClass { } ...Show All
Toly Menn Typing in Visual Studio 2005 Text Editor is extremely slow
Has anyone else noticed that typing in Visual Studio 2005 is extremely slow Whey I type it seems that the screen is always 2 words behind where my hands are. It makes it extremely frustrating to get anything done. I'm mainly referring to C# code. It seems like Intellisense is going nuts trying to guess every word I'm going to type and never actually prints the characters to the screen. Has anyone else experienced this I ...Show All
spshah Help me to understand better the interfaces
Hi i read a bunch of articles on articles.. i know exactly how to amke them.. But i dont understand why should i use them .. or for what are they important.. Why should someone wanna make a interface for something... Please help!!! ok.. i think i am understanding.. but.. this days.. i wanet to use .. a complier. c# provideed by .Net.. and some one said that i have to make an interface of the compiler.. why PJ, I think "crea ...Show All
Marco cattel Uploading to FTP from either a filesystem or a website
This code works, but I was wondering if there was a cleaner way to do this. When I upload to FTP from another website, first I download to the filesystem somewhere and then I upload this file to the ftp site. There must be a more direct way to do this, without using the user's filesystem. In my code, there are two parts, one is the case of the upload file located on the filesystem and the second is the case when the upload file is located on the ...Show All
