David Botzenhart's Q&A profile
Visual Studio 2008 (Pre-release) InvalidOperationException: Open DataReader using DataContext.Connection
Hi, What's the best way to receive the total row count of an ITable acquired through reflection Since reflection is used, System.Query.Count() is unavailable. The next thought is to use ExecuteQuery<T>(string, object[]). An attempt to call DataContext.ExecuteQuery<int>("SELECT COUNT(*) FROM SomeTable"); produces an error: Message="GenericArguments[0], 'System.Int32', on 'System.Data.DLinq.Model.FieldAcc ...Show All
Windows Forms How to access parent form methods from a user control.
Hi , I am a newbie in WinForms programming. i am developing a windows application using VS2003. I have a Main form(which has several text boxes, a grid and some other controls) and a user control. in the user control, I dragged a toolbar control which has several buttons in it. Now i compiled the code and dragged the user control in to the Main form from the tool bar. What I want to achieve is that, when i click one of the buttons in th ...Show All
Visual Studio Express Editions creating a new project
I cant creat a new project on c++ express edition because when i try it just says "Automation server can't creat object" can anyone help. Hi, did you have any further versions of Visual Studio Express installed on your PC this often produces problems. Here is how to uninstall if you did have previous Versions installed: http://lab.msdn.microsoft.com/vs2005/uninstall/preRTMuninstall/default.aspx you also may report problems to the msdn pro ...Show All
Visual Studio Express Editions disk failure causing install problems
Hi, I had several VS express products installed on a second hard drive. The drive failed and I had to replace it, the trouble is that now I want to install the beta2 products I can't because the installer says that I still have the pre-beta2 products. I have uninstalled everything I can according to the instructions but I can't make the installer see that I haven't got the pre-beta products anymore. Can anyone help thanks ...Show All
Visual C++ Renaming a form
Hello I create a new project using Visual C++ 2005 Beta 2 (CLR : Windows Forms Application) I obtain a form named "form1" I want to rename it "main". The problem is that I obtain this message "the project is out of date" How can I resolve this problem Thanks I must be doing somthing wrong. Whenever I rename form1 I have to go through all of the source files and replace the "form1" string with whatever ...Show All
Windows Forms Whenever I try to introduce an animal i get a stack overflow in terrarium.exe
Does anyone know what might be the issue with this THanks, Paul Tyng Well try to create some good bug then ..... :) like one we have got Terr(o)rium :) lolz..... I was so enthu about this stuff when I first read about it  ...Show All
Visual Studio LocalReport Rendering using IMAGE format type
I called "ListRenderingExtensions" from a LocalReport object in the VS 2005 August CTP and it gave me a list containing the "IMAGE" rendering format. Is the final version of the class going to support all of the different <OutputFormat> nodes that are currently supported in the deviceInfo string that gets passed to the Render() method ("EMF", "JPEG", "GIF", etc...) Also I have heard that the Release Candidate of VS 2005 being released the ...Show All
Visual Studio Team System Login problems on Team Foundation Server
Hi, I've connected as Domain Administrator to get into Visual Studio Team Server becuase no matter what groups and permissions I added to the security and group member ship on the server I just couldn't log in. - I kept getting a log in dialog box. How do I log in as someone else now Disconnect in Team Explorer panel seems to do something but raises an error: Value cannot be null, Parameter Name: uriString. On the "tools|connect t ...Show All
SQL Server Format for a bigint parameter in Raiserror
Having a small problem with RAISERROR that I've isolated to a small code sample: The objective is to have the message string in Raiserror correctly report the value of a parameter that is a bigint. The following extract shows the problem: ALTER PROCEDURE [dbo] . [pr_Test] @SomeNumber bigint AS BEGIN SET NOCOUNT ON ; RAISERROR ( 'Test Error Number: %d.' , 16 , 1 , @SomeNumber ) END As written, when th ...Show All
Visual J# Visual J# Redistributable Package v2.0.50727
I have installed Visaul Studio 2005 with C#. Recently, I am testing a sample program (BaseStockService) from WSE 3.0. I couldn't open the solution file as the VS 2005 complained it needs "Visual J# Redistributable Package v2.0.050727" installed. Well, I don't know why a C# project will need J# installed. But the point is where I can find this package I searched everywhere but in vain. Could anyone shed some light on this Thank you i ...Show All
Visual C++ Error converting double to unsigned __int64
I'm seeing a problem in converting a double to an unsigned __int64. If the double is greater than the maximum for a signed __int64, the conversion returns the wrong value. For example: { double d; unsigned __int64 num = 0xa000000000000000; printf("unsigned __int64 = %#I64x\n",num); d = (double)num; printf("To double = %e\n",d); num = (unsigned __int64)d; printf("From double = %#I64x\n\n ...Show All
Visual Studio Team System Print reports without preview
Is there is any way we could print reports without preview at clientside. On selection of a report and passing parameters, the report needs to be printed. This question is very Reporting Services focused - please post your question on their forum and they should be able to help out. thanks! http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=82&SiteID=1 ...Show All
Visual Studio Team System To test or not to test
Should I test my application before deploying it to a production environment The TDD principles says that you have to code tests first and then your code. Testing (any kind of testing) is fundamental in order to measure and certify the quality (not business quality) of your application. Then you should test always... Pierre ...Show All
SQL Server Ad hoc Reporting
Is adhoc reporting available in SRS 2000 Thanks If you are willing to invest some $$'s, check out Cizer's ad-hoc query builder (it's web based, which is kind of nice, and they have a version for 2000): www.cizer.com ...Show All
SQL Server Trying to get the remainder of a decimal by using Formula on a field
Hello Everyone, Here is my situation. I have a field in a table (named QuestionPosition)(type Decimal) that contains values like this: 1 2 3 4 5.1 5.2 5.3 ... I want to have another field in the same table that stores just the remainder (in the above case a 0 for integer values and the 1 of the 5.1, 2 of the 5.2 etc. I created the field in the table (named QuestionSubPosition) and tried t ...Show All
