Mike Chen's Q&A profile
Visual C# SQL SELECT statement
Hello. I have a problem with a SQL statement. When I run the app, I get a Line 1: Incorrect syntax near 'GEM'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: Line 1: Incorrect syntax near 'GEM'. Source Error: Line 86: ...Show All
.NET Development culture class
can i get some sample code using culture class, plz & some important methods used in it. thanks.... Try this forum: .NET Base Class Library ...Show All
Visual Studio 2 problems with vs2005 Add-ins
I'm trying to make an add-in project which is used to add new web project(both vb and c#).I've made it with VS2003 version before, and now I need to do that base on VS2005. Status: After installation, I found this add-in is load and startup in Add-in Manager dialog. wizard and script file location as following: .vsz file: Program Files\Microsoft Visual Studio 8\Web\WebProjects\CSharp de ...Show All
Visual C++ MSBuild running from Local System
Hi I've been executing msbuild.exe from the NT_AUTHORITY\SYSTEM account to build VS 2005 C# projects and the builds have been working as expected. Recently, I attempted the same for a VS 2004 C++ project and the build failed with the following error. fatal error C1902: Program database manager mismatch; please check your installation Is this a bug with msbuild or am I doing something wrong Thanks Error shoul ...Show All
.NET Development ThreadPooling in c#
I have to upload 70 files using ThreadPooling and code i have used is as below.I have set the maxthread size as 10.But it is uploading only 8 files. Please tell me how to make it work.Also if u can please give a sample code.Help will be greatly appreciated. WaitCallback callBack = new WaitCallback ( UploadFileEx0 ); for ( int i = 0 ; i < 70 ; i ++) { if ( true == isThreadAvailable ( true )) { T ...Show All
Windows Forms DataTable Troubles Galore
Hello, I am trying to do the following in my code: I query the database and obtain the information in a DATATABLE. At one point in time, I need to delete all the rows from the datatable and add say 3 new rows. Here;s how I go about do ...Show All
SQL Server Report Builder - is this a bug or is it by design?
After playing with report builder for some time I have stumbled upon a most annoying restriction in Report Builder: it does not allow including data from entities which are related to each other via a third entity in the following way: [table_A] many-to-one [table_B] one-to-many [table_C]. So if I want to show fields from both [table_A] and [table_C] Report Builder does not allow me to do so (unless I use an aggregate function on the fields ...Show All
Windows Forms Need FAST graphics
Being a Delphi programmer for many years, I now need to switch to VS and C#. I need fast graphics on forms, and tried this simple snippet in Visual Studio 5 - and it's extremely slow. It repaint the entire form when I resize the form (which it should), but it really takes the power out of my machine. Can anyone tell me what I'm doing wrong private void Form1_Paint( object sender, PaintEventArgs e) { int Index = 100; ...Show All
Visual Basic Unable to Convert Excel to XML
I am Trying to Convert my Excel Sheet to XML Format. 1) Able to Open Workbook and Convert to Dataset using Visual Basic.Net In a Sheet, it contain Formula Cells, Merge Cells ,Refered values from other Cells and Freezed Panes. If i Give range on the Query then within the Range all the values are coming Null. I am Using XMLTextConverter to Convert values into XML Format. Is there any sample code on that to read the Excel Sheet. in this type what i ...Show All
.NET Development synchronization lock error
Hello! I'm having a problem with using NetworkStream::BeginWrite() method. I've implemented a class CClient which contains a method SendMessage() which uses BeginWrite() method. The code is like this: void CClient::SendMessage(String^ message_) { //we convert the data from String to byte array: Monitor::Enter(sentData); sentData = Text::Encoding::ASCII->GetBytes(message_); Monitor::Exit(sentData); //we start wri ...Show All
Visual Studio 2008 (Pre-release) how to create pdf files
Hi is it possible to create .pdf files using richtext if possible can anybody give me a sample code to create it thank u Indeed, iTextSharp is an good alternative :) You will be able to create a PDF file but using this library but that's not dedicated to WPF but to all the .NET languages ;) ...Show All
Visual Basic templates
Where are the templates stored Hi, Assuming you did a default install (C:\Program Files\Microsoft Visual Studio 8\) then you can find Item Templates and Project Templates here: C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\ItemTemplates C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\ProjectTemplates ...Show All
SQL Server Cannot design aggregations because databsae already exists
I am clicking on "Start" in the aggregation design wizard ("Estimated storage reaches X" is selected" and I get the following error: TITLE: Aggregation Design Wizard ------------------------------ Errors in the metadata manager. The database with the name of 'CoreMarketReturn' already exists in the 'LNVDMFIISUAT01' server. To restart the process, resolve the problem, and then click Start. -------------------- ...Show All
Visual Studio Team System Access to Project Queries over team site
I would like to open the project queries (which are normally in the Visual Studio in the Team Explorer) but from the Team Portal Site. so I don't have to open the vsts2005 and export it into MS Excel to access these reports. How does it work Unfortunately we don't currently have a web part that can run TFS queries and display a result on a web page. It's been a highly requested feature and someth ...Show All
Visual C# Database Connection String
I am new to C# and VS2005 and am creating a large project which connects to SQL Server using numerous table adapters. I would like to be able to organize my code so that when I am building the project in Debug mode the table adapters use a given connection string. Then when I'm building in Release mode, the table adapters use a different connection string. I am looking for solution that only takes a few lines of code. I am ...Show All
