richardtearle's Q&A profile
Visual Studio Determining if a Solution/Project is under source control
Hi, Is there any way via the Automation Object Model to determine if a solution, project, or project item is under source control I have an add-in that will connect to Team Foundation server (and do some stuff), but I don't want to attempt any connection if the item is not version controlled. Any help is appreciated!! Thanks, Ryan F ...Show All
Visual Basic Help.
How do I create a grid of pictureboxes (25 x 25) on Visual Basic 2005 and auto-name them pbx(row)_(column) for the picture boxes It is to slow and hard to manually rename all 625 of them. Ok question answered, thanks. New question: OK, I ran into another problem. I want it be so that if I click the picture box with the person in it, you can move him by clicking on another tile. How do I do this (I tried (got from Dustin_H 's sample code) : ...Show All
Visual C# Unique Machine ID
Hi, I have been looking at the code for the Shareware kit and there is some code that creates a ClientID from the processer ID. The code is: try { string cpuInfo = String .Empty; ManagementClass mc = new ManagementClass ( "Win32_Processor" ); ManagementObjectCollection moc = mc.GetInstances(); foreach ( ManagementObject mo in moc) { if (cpuInfo == String .Empty) { // on ...Show All
SQL Server Publish the cubes on the web portal
Hi all, Is there the ability of publishing the cubes (which is built from an Analysis Services Project) on the web portal The purpose of this action is to let the BI users to do the analysis directly on the web portal. The BI users can change the measure, slide and dice data, change the dimension (just like what you've done with the Analysis Services). One of the options: You can enable HTTP access to Analysis Services 2005 and let you ...Show All
SQL Server Is it possible to execute a container regardless of the checkpoint file?
I have a situation where I need to make sure a task executes regardless of whether the package starts from a checkpoint or not. Is this possible Here's the scenario: I have a package with 3 tasks {TaskA, TaskB, TaskC} that execute serially using OnSuccess precedence constraints. The package is setup to use checkpoints so that if a task fails the package will restart from that failed task TaskA is insignificant here. TaskB fetch ...Show All
SQL Server Vacumming Question
We have SQL NS 2005 with our ADF with the following setting: <Vacuum> <RetentionAge>P7DT00H00M00S</RetentionAge> <VacuumSchedule> <Schedule> <StartTime>05:00:00</StartTime> <Duration>P0DT02H00M00S</Duration> </Schedule> < ...Show All
Game Technologies: DirectX, XNA, XACT, etc. A small problem with project files SDK and C# Express 2005
Hi! Opening a project sample for .Net Framework 2.0, the common folder appear empty, And error list show this warning: The file 'Common\AssemblyInfo.cs' could not be added to the project. Cannot add a link to the file D:\Projetos\DirectX\Managed\BasicHLSL_2005\Common\AssemblyInfo.cs. This file is within the project directory tree. I open csproj file with notepad and delete link tags.   ...Show All
Visual Studio 2008 (Pre-release) ListView selection
Whatis the correct way to handle selection in a ListView I could add a MouseDoubleClick eventhandler, but this is not called on keyboard selection (pressing enter) Best regards, Thomas Andersen With the code bellow, MyCustomCommand is executed when I select an item and press ENTER. However, if I double click an item, it is NOT executed. Any idea why <ListView.InputBindings> ...Show All
Visual C++ Simple Simple COM
Hi! I do all my programing stuff in c#.. but i need some plain C or C++ code sometimes.. and i need to interact classes made from C/C++ to C#. As i heared this is done with COM`s Can anyone show the simpliest COM made in C/C++.. that has a Class named Test and a method int Add(inta, int b); that return the sum of them.. Please make it simplie as possible.. coz i`m not really good at C/C++.. COM things.. If you're starting with C#, then you ...Show All
Visual Basic Strip Excel file of bad rows and leave detailrows then import columns into table
Environment: ------------------ Running this code on my PC via VS 2005 .Net version 2.0.50727 on the server (shown in IIS) Code is in ASP.NET 2.0 and is a VB.NET Console application Problem & Info: --------------------- I am bringing in an Excel file. I need to first strip out any non-detail rows such as the breaks you see with totals and what not. I should in the end have only detail rows. The incoming Excel file is here: http: / / www. we ...Show All
SQL Server How to insert a record in the middle of a DB
Well, how do you do it I've not seen any report on this... so could it be next to impossible Say you have 10 records, 1-10 and you want to insert a new record between record 4 and record 5 in a SQL database, just how do you code it And oh, each record uses the auto ID increment feature. Here's an idea: CREATE TABLE MyTable (id int identity(1,1), col1 varchar(16)) GO INSERT IN ...Show All
Visual Studio Plugging in the SDC WiX tasks to Team Build
One for the sdc team! I am trying to use the CompileMsi task from Microsoft.Sdc.Tasks, the documentation uses the following example: <CompileMsi SourceFiles="SourceFile1.wxs;SourceFile2.wxs" ...Show All
Visual Studio Team System There is a way to make the link control to be required control??
Hi, There is a way to make the link control in the WI to be required field Thanks in advance, Shmulik. Shmulik, I do not believe this is possible for the links control. You can make individual fields required but I do not believe you can make the controls themselves required. If anyone knows of a way around this please let us know. --- Thanks, Jeff ...Show All
Visual C# Common Language runtime detected invalid program
Hi There, I keep on getting this error message and it does not even step into the code , earlier it was working fine, can someone please let me know what's happening. Thanks, Server Error in '/WebApplication1' Application. ---------------------------------------- ---------- ---------- ---------- ---------- Common Language Runtime detected an invalid program . Description: An unhandled exception occurred during the execution of the cur ...Show All
Visual C# How to handle Ctrl-C event on a multi-threaded console application?
Hi All I'm using SetConsoleCtrlHandler to handle Ctrl-C event. But I have a problem using it in multi-threaded applications (it doesn't invoke handler function). What is the correct way to handle Ctrl-C event in a multi-threaded application Basel You can add a MessageFilter to the Application object(System.Windows.Forms.Form)and look for WM_KEYDOWN (or any specific windows message with Crtl+C ...Show All
