rogueAgent's Q&A profile
Visual C# Adding reference to a C++ DLL project
What would be the best way to do this I would like to use some C++ code from my C# project. I have compiled the C++ code into a DLL. I can add this DLL to the working directory of my C# project and use the DLL. However, I cannot add the DLL as a reference if I try to add the project as a reference all I get is an error that says that it cannot add the project as a reference. If I try the dll directly I get a "Reference cannot be added... ...Show All
SQL Server Confused whether to generate a nextNumber or to use Autoincrement
In my office we generate an unique ID on a table by doing something like: Declare @ID int SELECT @ID= ISNULL(MAX(@ID), 0) + 1 FROM MyTable Are there any benefit in using this methods rather then the Autoincrement functionality provided by sql server Could somebody explain which method is better and why Hi, I think there is a benefit is that you will not has gaps in the ID field if you rolled back ...Show All
.NET Development How To Easily Change Connection To Access Database Created Using "Add New Data Source" And Draging Table To Form
Hello, I created a small application that works, but I want to be able to change the location of the database in a more simplier way. By this, I mean to accomplish this task, I could just delete my dataset, binding source, table adapter, and binding navigator. Next, I would add a new data source and connection to point to the new location of the database. But, this would mean that every time I do this I have to also cha ...Show All
Visual Studio Team System event not fired on postback
I am doing af webtest in which i am posting some data. The recording contains a "post" to the correct page, but when i run the test, the posted data is not stored in database. I have tried this when debuging the web application which shows me, that the event handler responsible for storeing the data, is never called. I realise that javascript postbacks are not recorded, but since the actual post is recorded, I am a bit confused on how to en ...Show All
Windows Forms No touch deployment working in some computers but not in others
I have an application deployed on a web server, this application works for example in my computer at home, I had to first change the security settings on .NET, but after it ran fine, at work however it does not run at all, when I  ...Show All
Visual Basic please help I would like to filter a sql DB using a button and textbox.
Hi There I am trying to filter a database using a buttons click event and a textbox as the search field. The code below under the buttons click event will search the SQL database . Company being column name, and heineken being company name being filtered. MathserTableBindingSource.Filter = "company = 'heineken'" I would like to change this code to include a textbox so that the company name entered in the textbox would be filte ...Show All
.NET Development I wish you could Serialize the XslCompiledTransform?
The new XslCompiledTransform has great performance once it is compiled but what path can you take if you have hundreds of stylesheets to compile. We have converted a java CMS system to C#/ASP.NET. The old application represented each site design as xslt. The old designs are working great in the new implementation but my major bottleneck remains compiling the transforms. Once the transform is compiled it is then stored in the Cache object but thi ...Show All
SQL Server User Defined Number Generator
Hello all! I have a windows forms app and I'm trying to add functionality that would allow the user to enter a number into a textbox control on a setup form and then that number would autoincrement by one each time a new record on another form is inserted into the DB . I've searched high and low and can't seem to find much information on how I can put this together. I'm sure I'll need a "numbers" table in the DB that stores the n ...Show All
Visual C# Web Setup Project & Pdf files
I'm having a problem deploying a web application that contain pdf files. Somehow the pdf files in my application are not included in the web setup project so when I installed the .msi file on the server, I'm missing the pdf files. If I do Add -> Files -> The pdf files will be included but the path of that file is not stored. All of the pdf files I included are now stored in the wwwroot directory on the webserver. Is there a way ...Show All
Windows Forms datagrid rowheight
Hi, I am having difficulties setting the row height of the windows DataGrid. Do you know how to change the row height of the grid when using a tablestyle P.S. I am using the tablestyle to change the size of one of the columns. And because of this, I can not use datagrid.preferedrowheight property. I can now set the rowheight but the problem now is that when I click on another row and go back to the row which had the proper height, it goes ba ...Show All
Smart Device Development How to Assign the Context Menu to WebBrowser Control
Hi coders, I am using VS.NET 2005, my application type is Device Application. In this my Form1 I placed the WebBrowser Control. I created one Context menu(with 3 menu items) for webBrowser Control. I added this.ContextMenu = this.myContextMenu; my problem is browser (default) context menu is displaying instead of my context menu. I found that webBrowser control is not having webBrowser1.ContextMenu Property. ...Show All
.NET Development How do I install Net Framework Beta 2.0 on Web Sever without Visual Studio?
I want to install the Framework on a Web-Server without installing Visual Studio 2005 Beta 2.0 Having installed dotnetfx.exe (from MSDN\DotNetFramework on the BETA-CD) I do not have the .NET Version-Selection available under IIS as I used to have on the older Beta. (yes, I deinstalled the older beta before installing the new one) I guess I installed the wrong dotNetFX your help is very much apreciated refer to this post no 22602 ...Show All
SQL Server Database Version
Hello if we generate a database file on a particular version of ms sql express and in time to come if there are a few more versions of ms sql express out there with the users - if we continue to package with our app a database file from an older version of sql express will that be a problem with users running a newer version of sql express Also what about the converse scenario - where we ship a database file from a newer version of sql wh ...Show All
Visual Studio Unable to view deployed reports
Can someone help me I am attempting to open a report with the CrystalReportViewer using as Visual Studio 2005 web form. Here is the code in the code behind page. ----------------------------------------------------------------------------------------- Option Strict On Imports CrystalDecisions.CrystalReports.Engine Imports CrystalDecisions.Shared Partial Class ReportViewer Inherits System.Web.UI.Page &nb ...Show All
Visual Studio VS 2005 Break Down (with VSS 2005)
My project can't be opened successfully suddenly today, and a series of following error displayed (appear again after click on OK button) unable to load one or more breakpoint Is it a bug in VS 2005 Since one of the error message displayed is about VSS, and I was advised to use the VSS Admin console to check my VSS DB file. (Of course, the result is positive and the project still face error after I run the VSS admin console). Please hel ...Show All
