Answer Questions
Tim Cartwright Problem with Generic Constraints.
The problem is I’m trying to constrain a Generic type to what a class wide generic type inherits from. So I can convert a list to what it should be down casted to. Here is a simple example of what I am trying to do. public class MyList <T> : List <T> { //Trying to Convert a list to a list of a parent class of T. public List <BaseT> ToBaseList<BaseT>() where T : BaseT { //'MyList< ...Show All
Gidmeister ListView performance bug
I am doing some data processing on threads. When the data has been collected it gets added to a listview.. there maybe up to 5 threads at any one time collecting information. If i have a significant number of records. anything over 1000 seems to do it the performance of my application dies dramatically. Its worst problem is when i minimize the form and try to restore it again the program and pc lock for about 5 minutes.. I have narrowed th ...Show All
rikrispy Can I reference a VS2005 assembly from a VS2003 project?
I develop library assemblies in C# and have lots of customers who are not likely to move to VS2005 immediately. When I try to reference an assembly built with VS2005 from a VS2003 project, VS2003 says the assembly is not valid. Is it possible to do this, or do all of my customers have to move to VS2005 before I can distribute a VS2005 version of my library Thanks for any enlightenment! Mattias, Thanks for the reply. ...Show All
Jurassic for() and foreach() with the "else" clause
This is a simple C# language improvement suggestion. Frequently a collection needs to be examined to check if a certain condition IS NOT met, and do some actions. In traditional languages, one had to introduce a boolean variable: bool found = false ; foreach ( elem in collection ) { if ( condition(elem) ) { found = true ; break ...Show All
C. Venkata chary WDS never finishes indexing
If I watch the status, it will get down to 1 file left and then build back up to 40,000+ files left to index (I do not change very many files on this system and certainly not 40000 in a day). If I search using WDS, it says it is building the initial index. I have even left Index Now checkmarked for the last week. Any idea on how to fix Sorry to hear that. I'll see what I can find out. Stay tuned. Thanks, ...Show All
Scott Barrett web Synchronisation
i have done Merge Replication using web Synchronisation, Web synchronisation is working if my client pc or notepad is on the same domain , is there any way to do web synchronisation with out using RMO without adding the client to domain, since we want our clients to just install the software and perform synchronisation using internet with adding their notepad to our domain.. thank you... ...Show All
Anonymousrtewreer How do I save my work to a .exe?
I am experimenting with C# 2005 Express. I have written a little code and thought it would be nice to create the .exe in order to really test it. However, on first view of the C# 2005 Express user interface, I don't see how to create an .exe from the code I have written. Can anyone give me an idea on who to do this Thanks for taking my question seriously! I obviously was not looking in the right locations for the a ...Show All
Mark Dawson Working with WebCAM - USB
Does any one know any way to me to capture a video from a USB Camera to my application, and show in a WEB PAGE... Is there any component already developed that I can use Any suggestions Thanks Here's an open source C# webcam capture application: http://www.planet-source-code.com/vb/scripts/ShowCode.asp txtCodeId=1339&lngWId=10 Here is a little list of resources: Motion Detection using web cam Dynamic Webc ...Show All
Julie MacAller Cursor problem
I have a project with two namespaces, and all I want to do is load a cursor resource in one of them. Sounds simple doesn't it The cursor has it's Build Action property set to Embedded Resource. I use the following code to load it: Cursor = new Cursor(GetType(), "Rectangle.cur"); This works fine in one namespace, but fails in the other. I receive an unhandled exception of type 'System.NullReferenceException'. Additional info ...Show All
nrs251 Problem with my GUI when i start a program from a windows service.
I have made one service that startes when windows does, and that worked out fine, then when i login the service will start another program with one new process like this. Process myProcess = new System.Diagnostics. Process (); myProcess.EnableRaisingEvents = false ; myProcess.StartInfo.FileName = "c:\\eServerGUI.exe" ; myProcess.Start(); The program will start and i can see it in the task manager but i can't get it ...Show All
ThafrknJOA WebClient
Ok. I want to download a file from a server to a specified location using the WebClient.DownloadFile() Method. I also have a progressbar. I want the progress bar to increment in value continuous to the actual progress of the download. Can someone tell me how to do this I apologize for taking so long to get back to you on this, and I apologize for not mentioning that the DownloadProgressChanged event is only raised when you are downloadin ...Show All
Kevgor Usage of DataView in my custom DataBase Class
I make one database class, in which there is a dataView method. In the aspx file, this method was invoked with the purpose to display the data in database. But here the aspx file failed to display the data, not even the error message in the catch block. Can anybody tell me why cs file: using System; using System.Data; using System.Data.SqlClient; namespace database { public class DBClass { private SqlConnection conn; ...Show All
abdi How can I show HTML content to Win Form
I generate a text with Html pattern (simple HTML, no script).How can I show that content to win form as a web page Can you share your experience Thank you very much. Use a WebBrowser control. hi, you can use this WebBrowser1.DocumentText = "your html context" you must append all your text at once you can iterate through array for example and add to the webbrowser text use somethi ...Show All
williamguy Ressources from another assembly
When you use ressources from another assembly, how do you know what Name to use when calling a resource for example : pictureBoxUser.Image = (Image)rm.GetObject("add"); how do you know you have to use the add string to get an image of the add .... Maybe you know it by looking at the documentation of the ressource library Awesome! thanks guys! Hi, If you're talkin ...Show All
Colleen TechNot line breaks in assembly description
I have several solutions that I work on in parallel. How can I use a single location to update the version number to set on all solutions Can I add something like an .h file in C to include in every solution and when building the solution the assembly version will be updated as in the common location. For example, I want to set a version of 2.3.*.* on three different solutions - I have no other way than changing the AssemblyInfo file for each ...Show All
