DavidTait's Q&A profile
Visual C# DataTable + delete selected Rows
Hi I have a data table , which gets populated at the end of a certain transaction with say 30 Rows. Now depending upon the condition the user selects, i wanted to delete certain rows as given below.But the thing here happening is, first time the fifth row gets deleted,the row count is getting changed in the table to 29, which is playing the trick here as we can see that when next delete statement isencountered, there is no row with index 29 which is throwing an error and some times the row which i want to delete is not getting deleted, instead another row with altered index is getting deleted.How can we have a workaround for this situation My intention is just to delete the rows at the specified index from the original output ...Show All
.NET Development New to Web Services
I have been developing applications for about 5 years and I have never used web services. Right now I work for a state agency that is wanting to move to a ASP.NET application within the next 2 years. I would like to present them with an option for a smart client application, but I am not familiar with web services or SOA. Can someone please help me out with this What are the differences between web services and SOA Would it be better to create a windows form application or a ASP.NET application using web services or SOA. Please keep in mind that we do not have any web developers in the agency. I am a VB.NET guy and we have a VBA guy who knows SQL Server. Thanks For pointers to technologies that are involved in the implemen ...Show All
Windows Search Technologies WDS not indexing inside PGP folder
My WDS configuration does not find files inside a PGP folder. All my source code resides inside a PGP folder. This folder is mounted under a subdirectory off the root of one of my local drives. For example, from a Powershell prompt, I can CD C:\PGPFolder\MyCode and be there. I cannot find any files that exist inside the folder. The folder shows the contents of a PGP store once mounted. I typically mount the store immediately after logging in and I rebuilt the WDS index while the folder was mounted. The partition that contains the PGP folder is specified to be indexed. WDS can find everything else on the partition but cannot find anything inside the folder even though Search Companion has no problem. Steps to reproduce: 1. Instal ...Show All
SQL Server Single to Multi-value parameter passing
Hello, I am creating a drill through report in which I am selecting a single month from the main report. When I pass this month, I would like the secondary report to select all the preceding months (i.e to set YTD for secondary report) e.g. Primary Report - March selected from the drop-down Secondary Report - Jan, Feb, March should be selected. Any help will be appreciated. FYI - I am using an Analysis cube as my data source Thanks If you want to just display the month/year in the drop-down that is fine, but it is probably easiest to actually store and operate off of a full date from the first report (i.e. 1/1/2006, 2/1/2006, etc.). This simplifies your filter in the secon ...Show All
Smart Device Development Installer for Pocket PC WM 5.0
Is there a difference in the way you create a setup for Pocket PC WM 5.0 I know that in a regular Windows application, you create a setup and deployment project in your current solution and then you build the setup project which creates the installer. What about for Pocket PC, what steps are required to do so I know that when you want to install a program to your pocket pc, you run the installer from a regular machine and then the installer looks to see if you have a Pocket PC connected through ActiveSync. Just wondering how you do that You'll find a description of the entire process here: http://msdn.microsoft.com/library/default.asp url=/library/en-us/mobilesdk5/html/mob5oriPackagingDeployingWindowsMobileApplications.asp This ...Show All
SQL Server Matrix doubt!
Hi! I have a query that returns the productivity of a project during a period, and other that gives me which employees where working on the project at the period. I can't tell how much each employee producted, all I can say is that one employee worked on the project on that period. When I join both queries I obviously get repeated rows: Proj1 Employee1 1000 Proj1 Employee2 1000 Proj1 Employee3 1000 But I would like to have both information on the same matrix like this: Project Employees Total Project Productivity Proj1 Employee1 1000 Employee2 Employee3 I mean, I don't want the total project productivity to appear once for each employee. I also tryed to change the order, putting the em ...Show All
Visual Studio Team System Really Delete from Source Control
Ok, I've read all the old threads and I still don't get it. How do I completely delete a TFS project including all the related artifacts in source control I've already tried tfsdeleteproject.exe /force /server:servername "team project name" and it "seems" to work but I still see the project in the source control explorer. Jeff Lynch MVP - Commerce Server We understand that HD space is a concern for some customers, e.g. game developers who checkin lots of binaries. Destroy will be supported in the future. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Mesh Subset Collision Detection
I have a world with many Mesh Subsets, loaded from a .x file. How do I know exactly where (XYZ) in world coordinates, one specific subset is I want to somehow loop through my subsets to check for collision detection with my character, which has a bounding box. My program is in native DirectX. Hi Thanks for your good and lengthy explanation. I did just what you were suggesting and it works great. However, after searching the internet for a Direct3D specific implementation, I couldn't find any sample or other info except for the "ray picking" samples. So I will show my code here: matStart = camera.viewMatrix; // gets the current view matrix stored in the camera class camera.move(cameraVelocity.x, 0.0f, cameraVelocity.z); // Th ...Show All
Visual Studio Toolbox items in a DSL
Hi, I have made my DSL and create a project template with the debug instance (vs experimental hive). I made this template to have a file with several elements from my DSL (I just drop them from the toolbox). the user just have to give values to the props I defined and the code generator wil do the rest. I dont wanna the user to have the ability to view (or drop) my dsl elements from the toolbox. How can I do this I'm not using the toolboxHelper because I need the items there to build the template. any ideas Tks, DD yes it helps, I think I'll do that or customize the ToolboxHelper class or override the OnDrop event, to allow the add of new shapes depending of some conditions (user ou regi ...Show All
Windows Live Developer Forums Windows Live Messenger Protocol library
Hello I'm currently inretested in doing a C++ library that would let me interact with the Windows Live Messenger network: sign in, sign out, retreive contact list, text messaging but also advanced features such as buddy icons, personal smileys, ink, shared folders, etc. What I would like to ask is whether there is something already available (including a MS API -I don't care at all about the librayr being open or closed source), and if yes what the names or references would be. Thank you in advance S. Ali Tokmen http://ali.tokmen.com ...Show All
Visual C# Weird problem writing to custom Eventlog -- stuff shows up in wrong log
I have a weird problem writing to a custom event log. My app, a windows service, writes to a custom event log, "WireTransfers" and had been doing so without incident for a long time. Following a reboot of the server, the events suddently started appearing in the Application event log instead of in my custom event log. This first happened on our dev server, then some time later on our UAT server, then some time after that on our Prod server. It still works correctly on our DR server but I'm sure that at some reboot it will switch over. Note, btw, that I have all the correct permissions on the registry entry for event logging I actually don't think this is a language issue, but the "Where is the forum for my problem&q ...Show All
Visual Studio Express Editions enter key on textbox to run button click event????
hi people, i am completely stuck trying to get the enter key to submit a search query after typing in a textbox. please help!!! it sounds such a simple and obvious thing to do, its in software everywhere but for the life of me i can't find a simple answer for a newbie like myself to absorb. here's the scenario in pseudo code... private sub searchBtn_click... here's my working search code - reading contents from textbox1, activates when the button is clicked end sub private sub textbox... i want to know the code required for an enter keypress here, with the cursor still in this field, to submit any text in the text box to the search query i have written in the searchBtn_click event !!! end sub i may be thinkin ...Show All
SQL Server RSClientPrint
Hi all, I wanted to use the RSClientPrint.dll on my website for printing server documents on the client. But I can nowhere find the dll (activeX). Can someone provide me with that dll or send me a message where to find it, and will it work without Reporting Services TIA, Dirk Ooms You can find the dll embedded in the rsclientprint.cab file of your Reporting Services installation. Or, if you install the active-x control, you can find the dll in %windir%\Downloaded Program Files. Make sure you install all of the files (.dll, .rll and .ini) if using the print control directly. ...Show All
SQL Server Get Previous step result in an SSIS Script Task
Hello, I am using SQL Server 2005 Integration Services to create new values for my tables. One step I must do is execute a query and the script task that receive its constraint (it is set to completion) must do different things depending on the query result. My question is: how can I know the result of the precedence constraint Thank you, Pablo Orte Hi and thanks for your replies, The problem I have is that I have to do this in a script task situated after an "Execute SQL". This cannot return any parameter and I need to have something in the code like this IF objDTSPackage.Steps("DTSStep_DTSExecuteSQLTask_1").ExecutionResult = 0 THEN This code wor ...Show All
SQL Server Trying to get daily totals from cumulative totals in a pivot
I have been providing sales data for a few months now from a table that is set up like this: Date WorkDay GasSales EquipmentSales 9/1/2006 1 100.00 200.00 9/4/2006 2 50.00 45.00 etc. As can be seen, the data is daily, i.e., on the first workday of September we sold one hundred dollars in gas and two hundred dollars in equipment. On the second workday of September we sold fifty dollars in gas and forty-five dollars in equipment. Now, however, the data I have to pull from is cumulative. So, using the last table as an example it would look like this: Date_WorkDay_GasSales_EquipmentSales 9/1/2006 1 100.00 200.00 9/4/2006 2 150.00 245.00 etc. To make things more complicated, the powers that be wanted this data p ...Show All
