James Atkin's Q&A profile
Visual Studio Adding files to a project during compile
I have a prebuild action that occurs in my project that generates a class. this class needs to be added to the project for compile. This only occurs have the project has been reloaded. Is there a way to add the files to my build without going through three steps - compile, reload project, compile Thanks let's assume I wanted to do something similar, but in a project sub-type (within a package). What is the b ...Show All
Visual Studio Tools for Office Saving a file in a variable path
I need to be able to save a file to a specific location. Most of the "save to" string is easy to parse, but there is a small portion that is extremely variable. In a DOS box, all I need to do is use a wildcard (*), but the "ChangeFileOpenDirectory" function won't accept wildcards within its string argument. Or will it I suppose the real question is can you navigate to a path without knowing the entire name, but only a portio ...Show All
.NET Development Web Services Security on Microsoft platform
Hi Everyone, I was reading following article on security of web services using SAML (Security Assertion Markup Language by Sun Microsystems' Eve Maler http://java.sun.com/features/2003/03/webservices-qa.html I would like to know , how Microsoft is maintaining the security issue in Web services. Is Microsoft also working on such standard like SAML. Thanks , Arshad Micro ...Show All
SQL Server Repeat grid header on each page
Hi, If a grid header has the RepeatOnNewPage property set to True , how can I figure out when the header is continuing on next pages, so I can add the text '. .. continue ' on every page except the first one Thank you. Radu. Thank you for your answer... ... but it doesn't work. My report displays more tables, not only one, and each table displays rows grouped by a field XYZ. The RowNum ...Show All
Windows Forms multiselect listbox producing duplicate index error
multiselect listbox producing duplicate index error I did search before asking this question. I filled an AuthorsListbox with a list of Authors. I set multiple selection to simple, as an article can have more than one author. The article has already been saved and has a unique ID. Each author has a unique ID. When I select more than one author I get a duplicate index error. If I change mutlipleselection to one, and save the authors one at a ...Show All
SQL Server Cannot connect to a named instance of SQL 2000 or 2005
Hi, I am struggling connection to a named instance of SQL 2000 (SP4) from another machine but without any success. I get an error message saying that the server does not exist or access is denied . The security configuration in this named instance is the same as the default instance (also 2000) and the remote machine can connect to it successfully. I also configured the aliases in Client Network Utility in th ...Show All
Visual Studio Express Editions Can't Even Get Hello World To Work
I am new to Win32 programming and I found a tutorial online that gave code for a Hello World program. I have Visual C++ 2005 Express Edition and after many hours of frustrating work I was able to get the Platform SDK installed and working (I tried a sample program and it worked). Here is the code the site gave for the Hello World program: --------------------------------------------------------------- #include <windows.h> int WINAPI WinMa ...Show All
Visual Basic Playing a sound file
This may have been answered before i am not sure, i am running Visual Studio 2005 beta, i would like to know how i can play a sound file in the background when someone opens a form. Any ideas I am using the my.computer.audio.play function to play an alert. The alert is the result of checking a database for new entries every 10 seconds. If there is a new entry that the software has not seen yet, it uses the VBPower Tools Notificati ...Show All
SQL Server Standard deviation calculation
Hi. I am trying to create a calculated member that calculates the standard deviation of all child members of a displayed member in a hierarchy. To visualize it I will use an example from AdventureWorks: If I put Internet Sales Amount in the data area and the Product Catogories hierarchy in the Row Fields area, I get a list with Internet Sales Amount for each level in the Product Categories . I want to create a calculated member that shows ...Show All
.NET Development XPath and case sensitive problems
Running xpaths against a xml doc (comming from a mssql server) and having trouble with case sensitive letters. I have tried to use the xml translate funktion, but it would need an exact match in the DB anyway. If I look for the name John and it is typed JohN in the DB I get nothing. Is the only solution to 'wash' the data in the DB. Are there any work around to make a xpath query non case sensitive ...Show All
.NET Development Using System.Net Class
i want to write a program which will download a file from internet.......but during that i want to show some updates of most likely like progress or so...... i came to know that i have to follow the IAsync...but no further could you please provide some useful info. The timeout value choose is going to depend on several things... What server you are making the request to. Is the server frequently overloaded What is the averag ...Show All
.NET Development My.Settings.Upgrade
I am developing a project in VS 2005, and I am working with deployment. I have decided to use a setup project, and all is working fine. However each time I deploy an upgrade the user settings get overwritten. I discovered the My.Settings.Upgrade method, and found all I could find out about it, and still am not quite sure how to use it. MSDN says: You can use the Upgrade method in conjunction with the GetPreviousVersion method to migrate applic ...Show All
Software Development for Windows Vista How to draw window system buttons?
I am trying to draw the standard window system buttons (Minimize, Maximize and Close) but have no luck in drawing them to look like the ones you see in top right corner on Vista. I am creating custom form so I need those. I tried using Theme API but that does not get my anywhere... Question is how to draw Vista style system buttons Are you doing this for Vista or for an XP mock If its for XP, try l ...Show All
Windows Forms a datagridview and combobox problem
I am using VS 2005 Professional. I have a master-detail form on which I have a datagridview(detail) that is bound to a table. Within that grid, one of the columns displays values from another table using a combobox. Under normal circumstances this all works quite well. However, if you go to the new record at the bottom of the grid and click the down arrow of the combobox the autonumber field populates, as it should, and the master k ...Show All
Visual C# How to import a dll made in C++ Win 32
Hello Everyone, I have a dll which is made in Win 32, as it is not an assembly neither COM can't be used as a refrence, so I have to Import it.... Can someone tell me how to do it...As when i do it asks for the entry point and secondly how to call the functions from that dll.....A brief example will be highly appreciATED... Thanks, Harsimrat Thats simple.. u have to use System.Runtime.Interopservices ...Show All
