ChRiZ's Q&A profile
Visual C# Form Count
I need to get a count of all the forms in a particular C# solution. The following helps me do that. public Type[] GetAllForms() { Assembly asm = Assembly.GetExecutingAssembly(); ArrayList result = new ArrayList(); foreach ( Type type in asm.GetTypes() ) { if ( type.IsSubclassOf( typeof (Form) ) ) { result.Add( type ); } } return (Type[])result.ToArray( typeof (Type) ); } But now i need to instantiate these ...Show All
Visual Studio Express Editions SQL Server 2005 Express Installation Error
I am encountering a problem installing SQL Server 2005 (April CTP) from my Visual Web Developer installation. The following is the error message pops up: "Microsoft SQL server 2005 CTP Setup was unable to insall on your computer. Microsoft SQL Server 2005 CTP Setup has encountered a problem and will end. Please tell Microsoft about this problem." I cannot figure what could be the problem. When I exit this message, I do find the SQL Express ins ...Show All
Windows Forms Please can anybody help (1 month before release)?
Hello everyone, I am writing a desktop .net application that willl be released in one month.......The problem I am having is very strange and seems only to occur on windows 98 not NT based OS's. The error I get is: Failed to load resources fro ...Show All
Visual Studio TSQL language service
I'm creating a VsCodeWindow to edit TSQL through the following steps: 1) Create and site a VsTextBuffer; 2) Set the buffer's language service to TSQL-80 ( "F07520AD-1760-4286-9A3D-858D343D9FC1"); 3) Create a VsCodeWindow; 4) Set the code window's buffer to the one created above; and 5) Show the code window. The problem is that the resulting window does not accept CRs, tabs, and backspaces from the keyboard (I can paste these characters into the ...Show All
Visual Studio Team System Not finding log file after running load test
Hi all, I run the load test locally I got the result at the same time but I find unable to reopen the same result to analyse them after closing the VS2005. Also I do not find where the log file is created. Please any one help me, where the log files and the result created is stored on my machine and the format in which it is stored. After completing the test it ask me whether you would like to view the result from database repos ...Show All
Visual Basic Managed memory leak
I am having a very strange memory leak that seems related to databinding. It is very hard to reproduce, so I won't post any code here to do so, but will just describe the problem. We have data entry forms which have controls which bind to custom business objects through a BindingSource object. On Dispose of the form, we call ClearBindings as described in: http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnwinforms/html/databindi ...Show All
Visual C# How do i convert a string in yyyy-mm or mm-yyyy format to a DateTime?
Hi, I have a string that can be either in 'yyyy-mm' or 'mm-yyyy' format. How do I convert such a string correctly to a DateTime. I do not know the exact format it the string until runtime. Thanks if (strDate.IndexOf("-") == 4) dtDate = DateTime.ParseExact(strDate, "yyyy-MM-dd", null); else dtDate = DateTime.ParseExact(strDate, "MM-dd-yyyy", null); ...Show All
Visual Studio Team System Area and Iteration not refreshed in Work Item
I had some bug already entered in my project, but I forgot to set up the global Area and Iteration. After setting-up these for my project, I have tried to update my bug but the Area/Iteation shows the previous value. I cannot access the new value. Did I miss something Stephane Guerin Yep. There's definitely a bug there that we'll be looking into. The problem may be that the ...Show All
Windows Forms Speeding up populating a ListView
Hi, I'm working on my own MP3 player program which contains a library. The library is a ListView that displays all of my MP3s and shows the Title, Artist, Album and Track Length. The only problem is when you start hitting a couple o ...Show All
.NET Development Common Language RunTime Debugging Service
Hi, We have built application in C#. This exe works fine with small Reports. But failed and give following error message whenever we try to run a big reports/processes: ReportGenerator.exe Common Language Runtime Debugging Services & ...Show All
SQL Server some guidance for an SSIS newbie wanted
Hi! I'm new to SSIS (and quite new to SQL Server). I have a process which I'd like to automize via SSIS - just don't know how and couldn't figure it out yet by playing around with the program. Shouldn't be too difficult though. First of all, that's the process as I do it now: 1) Load several flatfile sources (dumps of SQL tables) into an SQL database. 2) Add identifier rows (to some tables), set the primary and foreign keys so the database is &q ...Show All
Visual C# Compiler seems to fail to check the restriction of generics
Hi, The VC#2005 compiler accepts the example below, but the assertion (*) fails at the runtime nevertheless the type T is restricted to a class. The actual _t is an Int32 passed at the line (***). I suppose that the compiler should reject this code. Actually, the instantiation of generics (**) is wrong because the argument IComparable can violates the restriction "class". The compiler should detect this and reports the violation. ...Show All
SQL Server Creating aomething similar like SCD wizard interface
HI, I created a script component that is doing some transformations and it works very well. Now, I want to use the same script component on other dataflows in order to use it with other tables. Since my script component uses three outputs and some of my dimensions may have sometimes 50-60 columns, and the fact that I need to customize the column names used in my script, I would like to be able to have some kind of wizard like the SCD wizard to c ...Show All
SQL Server Large log backups
I noticed that my log backups are very very large after doing a full backup of my databases and was confused why that was. I created 2 maintenance plans - one for full backups and DB maintenance that runs nightly - one for log backups that run at 4hr intervals For whatever reason, the first transaction log backup that is performed after the full backup of the database is as large if not larger than my full backup, while subsequant log ba ...Show All
Visual Studio Team System .NET 1.1 FxCop 1.32 SDK Documentation
Hi all, I am new to FxCop, and can clearly see its advantages. However, I am unable to find any documentation as to how to use the SDK that accompanies the application version 1.32. I am eager to delve into FxCop to utilise it, but without API direction, I can see that I will potentially be introducing more bugs into my current set. Steve David's information is right on the mark. I've included it (and so ...Show All
