Answer Questions
Lord Kaos throw
Hi. What work do the throw statement, alone. What exception it force to take place Nice article about Exception and Throw http://www.c-sharpcorner.com/Tutorials/ExceptionHandling101RVS.asp Typically, the throw statement can be used in one of two situations: You want to notify client code of an error because, say, an invalid argument was passed. In this case you write something like this in your code: throw new Ar ...Show All
ColinJMcGrath XML documentation on generics
Hi, I've been searching the MSDN docs, Googling around and trying to search these forums, but yet have to find an answer to my question. How do you reference a generic class using XML documentation Obviously, <see cref="System.Collections.Generic.List<T>"/> doesn't work. I tried <see cref="System.Collections.Generic.List`1"/> - as that is how MSIL treats it, but that didn't work either. What is the correct syntax for doing this ...Show All
Erkki Am I missing a seting in my relationship
Hi I'm a newbie from Delphi and I am trying to build a data application. I have set up my xsd dataset but I think I might be missing something in my relationship. In Delphi when you can set relation ships the same but the big difference is when the dataset goes to retrieve the data. In Delphi a child table only fetches data from the database that relates to the parent table and not the whole table as my dataset appears to be performing. ...Show All
GS80 How can I add sprite to pictureBox?
My pictureBox is containing a bitmap. Clicking on it should place a little bitmap on mouse cursor coordinates. How do I do this please Well, one would would be to keep track of where you want sprites drawn and draw multiple sprites on Paint(). Another way would be to modify the bitmap that's in the PictureBox, depends on what your needs are. If you want to try modifying an existing bitmap, you u ...Show All
AsgerM code
//</summary> public void openfile() { OpenFileDialog xmlfindfile = new OpenFileDialog (); PopPushXMLData makedataset = new PopPushXMLData (); DataSet xmldataset; DataTableReader t; string xmlfile = string .Empty; xmlfindfile.InitialDirectory = xmlfilepath; //xmlfindfile.Filter = "xml file (*.xml)| .xml "; xmlfindfile.FilterIndex = 2; //xmlfindfile.ShowDialog(); ...Show All
dwhitson How to constrain generic type to a superclass instead a subclass of another type?
In Java 5 you can use the following syntax for variance in generic types: public class A {...} public class AA extends A {...} public class MyContainer<E> { void setComparer(Comparator< super E> c) {...} ... } This means that you can pass instances of either Comparer<A> or Comparer<AA> to MyContainer<AA>.setComparer. Is there a way to specify this type of constraint in .NET The where clause can be ...Show All
UllaH Using AccessKeys in TabPage.
I am tyrying to set AccessKeys for my TabPages in a TabControl. However when I set the text of the TabPage to "&Location" it does not do any of the AccessKey functionality. No underline. Doesn't select it when I press "Alt-L". Is this a bug with the TabPage control - or do I need to do something different for this control Thanks. Tab Controls in Windows do not support accelerator key ...Show All
MarkLuo What is the proposed way to define references in .NET?
Status ------ Currently we use two different methods to define references between managed components, namely project references and .NET references to reference assemblies (details below). Both methods are not fully satisfactory. We would like to know: (a) Is there is a better referencing mechanism available in VS8 (better than the ones described below), or (b) does MS plan to change the support for references in future versions of V ...Show All
chenthorn All info about the user
Hi, I'm new to web stats and I would like to know the functions that returns the user info, like IP address referer and the others that exists. Thanks The information can be found in the Request object. For example, create a new webpage & put this in 'page_load' Response.Write(Request.UserHostAddress + "<br>" ); //IP address Response.Write(Request.UserHostName + "<br>" ); //hostname ...Show All
umpate22 Ineritance Questions
I have a class that I have derived from anther class. Something like this: class Parent { // Few public property's here // Our save function protected void Save ( string fileName ) { // Save our baseAI Utilities.XMLSerializer.Save ( this , fileName ); } // End save function } class Child : Parent { // Function to save the player public void Save ( ) { // Call our base save function base .Save ( "test" + ".ply" ) ...Show All
rokohl Asynchronous BeginInvoke GUI update order
Yes/No question for the experts: If I only have thread A and B (thread A being the GUI thread), and B calls several BeginInvoke's in a row to 'Post' messages to thread A, is the order in which thread B updates thread A guaranteed to be preserved I can write a simple app that would give an answer, but I prefer to hear the answer from the GURUs just to make sure. Thanks -Kevin Thank you for the reply. I am surprised, I thought they would ...Show All
Rafael Turon generics and COM+
Hi. It is possible to pass a generic type through COM+ Suppose that I have a IList<int>. How should I do it When I run regsvcs.exe it prints a warning message saying "Warning: Type library exporter encountered a generic type instance in a signature. Generic code may not be exported to COM." Thanks. Nope, does not work - I had the same problem a while ago Hi ...Show All
Gad Rosenthal Mistake in C# 2.0 specification?
" anonymous@discussions..microsoft.com " <David M. Kean@discussions.microsoft..com > wrote in message news:44151354-d6b6-4140-9fba-6c46b5a50fd3_WBRev2_@discussions..microsoft.com ... This post has been edited either by the author or a moderator in the Microsoft Forums: http://forums.microsoft.com I just reproduced this also. This could be considered a bug in the compiler (especially if t ...Show All
Derrick Powell how to hide menu item with child menus
Hi, In menu contraller we can hide child menus by seting there text property to empty. if that child menu has his child menus even if we set all text properties to empty it shows a empty arrorw on the menu. if any one know please tell me how to over come this. i mean i want to hide menu items with child items , in programaticaly. Thanks and regards Jenifer Dear Jenifer! Thanks for participating on ...Show All
Jay-r Execution speed difference when debugging C# app
I'm posting this on behalf of a colleague. He wrote a Genetic Algorithm with a graphical display using VS 2005 RTM. He recently upgraded from VS 2005 Beta 2. The execution speed when running a release build from the IDE using F5 is significantly slower versus running it with Ctrl-F5. (I have reproduced this on my machine). He claims that the speed differential didn't exist under Beta 2 of Visual Studio 2005. Here's a s ...Show All
