tonofit's Q&A profile
Visual Studio Team System How do I 'hide' a deleted item so it doesnt get counted in TFS metrics such as code churn
I have a Team Project that contains several solutions. One of the solutions did not migrate properly and had to be deleted. The delete was performed using the client source control tools in visual studio. The solution has been removed but it appears that the code churn calculations are still taking into account the deleted project. For example, I currently show that I have -980,000 lines of code since I deleted the solution from source control. My question is, how can I permanently remove a solution from inside of a Team Project container without deleting the whole container I know the entire container can be removed via the tfsdeleteproject tool but I dont think that applies here. Thanks, Kevin ...Show All
Visual FoxPro Printing directly to LPT port
Hi everyone; I have 2 dot matrix printers installed on a win98 machine. I can successfully print from other machines to the printers on the win98 machine by issuing: set printer to \\win98machine\invoices or set printer to \\win98machine\reports The problem is that I can't find a way to print to these printers from the win98 machine itself. The above set printer command won't work. Neither would set printer to LPT1: or set printer to LPT2: They are simply disregarded and the printer is still the default windows driver. Any ideas would be greatly apreciated. As always - thanks. It's not that easy as Windows insists in going through the printer spool ...Show All
SQL Server Insert into table on Linked server
Insert statement to remote server is running very slowly. I have run Profiler and find there is a 'sp_cursor' call for each row. The source system is SQL2005 and destination is SQL2000(sp4). The linked server is using 'SQL server' type connection. Source query is against a single table with a where clause. source and destination table are identical with Primary keys. Purpose is just to move the rows. Connection is a slow network connection - should be ok. I have already overcome same problem for related update and delete queries by use of 'EXECUTE (query) AT LinkedServer' that works great - but insert can not take advantage of this... INSERT [LinkedServSQL2000sp4].dbname.schema.tablename ({column list}) Select {column list} from t ...Show All
Smart Device Development Bluetooth API
I am developing a mobile application using bluetooth. I am using Windows Mobile 5.0 and develop in C#.Net. Bluetooth api functionality is given in C++. So how can I use those functionality in C#.Net. How to call bluetooth accept and other methods. As usual for OS APIs which are not available in NETCF, you can P/Invoke from C# to BT API or you can use 3rd party wrapper which would P/Invoke for you. ...Show All
Visual Studio 2008 (Pre-release) Making custom user control as root of xaml
i'd like to create a class that inherits from a WPF control say UserControl or Grid and then have another XAML whose code behind in turn inherits from that class. On using the name of the custom class in the Root element of the XAML, get an error saying this is an invalid root element. Is there a way to get around this Here are the classes and XAML files: Get an error in View1.xaml saying that the root element is invalid. Window1.xaml <Window x:Class="WindowsApplication1.Window1" xmlns=" http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x=" http://schemas.microsoft.com/winfx/2006/xaml " Title="WindowsApplication1" Height="300" ...Show All
Visual C# About file thumbnail
Hi everyone, Does anybody know how to extract the file'thumbnail use C# .If you know, please tell me,thank you. Hi, The 'thumbnails' you see in Windows Explorer are stored in the thumbs.db system file that is generated by Windows whenever you view a folder in 'Thumbnail' view mode. If you never use the Thumbnail view in Windows explorer, the file won't even exist. Basically, there are 2 means of getting a thumbnail from a picture. 1. Get the thumbnail that is stored within the picture (most digital camera's store a thumbnail withing the jpeg) 2. Create your own thumbnail. For the first method, you'll need an EXIF parser to read EXIF tags from a JPEG. This is actually quite complex, bu ...Show All
Visual Basic How can I programme a module to shut down and restart itself after a period of time?
Hello all, I would like to enquire whether there is a code in which I can use to instruct a module to shut down, and then open itself again after a specified period of time Thanks in advance. Or you can write a controlling application which would determine if your process was running and if no start it. Or allow you to kill the process and restart it. This could be triggered by either a timer or user action. ...Show All
Windows Search Technologies Protocol Handler URLs
Hey, I am building a protocol handler so that I can index a database. The start url for the database is: dat://localhost/<name of database>/ and all the subfolders of the database are dat://localhost/<name of database>/<table name> When the protocol handler is initialized it is given the url for the start of the database. How can I add the urls for each of the table names to the list of paths indexed. I know that I could add each table url individually in GetDefaultCrawlScope. I noticed that if I do this though the AddDefaultUrl all the urls are listed when you browse the folders that WDS will index. I would like for only the dat://localhost/<name of database>/ to be listed and that when the protocol handler is in ...Show All
Visual C# Problem with obtaining text in an edit control
Hi All, I am getting the text inside an edit control of another process. I tried to read the text inside the Notepad using Win 32 APIs. Unfortunately, there is no text returned. I don't know what's the problem. Here's my code: public static string GetEditControlText(IntPtr hEdit) { StringBuilder sbText = new StringBuilder(Windows.GetWindowTextLength(hEdit)); Windows.GetWindowText(hEdit, sbText, sbText.Capacity); return sbText.ToString(); } Here are my API declarations: public class Windows { [DllImport("user32")] public static extern int GetWindowText(IntPtr hwnd, StringBuilder windowText, int maxCount); [DllImport("user32")] public static ...Show All
Visual Studio Documentation Compiler - Sandcastle
We did code complete of documentation compiler ( code named "Sandcastle") on June 15th and currently we are testing the tool building our .NetFramework documentation. We would like to release the CTP version of Sandcastle in Microsoft download center by next week. The perf in our testing has been great as we are able to build the entire framework content in less than 1 hour. I am in the process of going through final check and code signing required to post this in our download center. Please expect the CTP in the next week or so and I will provide an update here as soon I post the CTP. Anand.. Will source code be available I know this is a redundant question, but the way in which you've architected the application trou ...Show All
.NET Development calling saved form at runtime.
I have a program where on one form i click a cmdbutton and a premade form with all this information is appears. The user then fills out the information and then saves that form (for example: "Bonusfrm") with a new form. It then dissapears. On another form the user then selects from a combo box one of the forms that he or she has created. When selected I want that form "Bonus frm" to show up and have the informatino that the user put in earlier appearing on that form. thanks for the help twychopen22 , This question is not related to Remoting and serialization and so I am moving this to the right forum. Maheshwar Jayaraman [MSFT] ...Show All
Windows Live Developer Forums Options for sending (Windows Live) Alerts
Hi, I’d like to know the options for sending (Windows Live) Alerts. A quick look around I’ve found: http://signup.alerts.live.com/brochure/index.jsp - This looks like the most current approach, but it doesn’t fit well our model. MSN Alerts SDK and Integration Specification ( http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnlive/html/winliveidserv.asp ) looks promising, but it seems to be phasing out since the test links don’t work, only the production ones. At last, there is the Microsoft Alerts Version 6.0 Software Development Kit ( http://www.microsoft.com/downloads/details.aspx FamilyID=6257ad22-8d67-4cf0-b2d2-08e0cfe6c8ce&DisplayLang=en ). Per the documentation, this loo ...Show All
Audio and Video Development syntax error or not supported yet?
Hi gurus, Now I meet with a problem when I'm using MS HD DVD Simulator to test a disc. An XPath expression, /descendant::body/child::div , which I think all right, doesn't pass the MS Simulator though. And similar expression is found in XPath 1.0, W3C /descendant::olist/child::item selects all the item elements that have an olist parent and that are in the same document as the context node So, everybody please give your suggestions. Is it a syntax error or just not currently supported by MS HD Player yet Thanks! Unfortunately, HD DVD only supports a subset of XPath in order to make it easier to implement on low-cost hardware. Chapter 7 of the spec (not on me right now...) outlin ...Show All
.NET Development ADO.NET + OLEDB + dBase + Records Marked For Deletion Question
Hi there everyone, I'm using ADO.NET and OLEDB to connect to a dbase file that has records marked for deletion in it. When i opened a datareader using the standard connection string found at www.connectionstrings.com the datareader has the records marked for deletion. That would be fine if I knew how to step over them and not try and access them. I would rather that it didn't return the items that are marked for deletion. It was my understanding that OLEDB by default skipped records marked for deletion. So my question is, what am I doing wrong And how do I get OLEDB to either not return items marked for deletion or how do I get my data reader to skip them (continue in my while (dr.Read()) Thanks for your help! ...Show All
SQL Server BufferTempStoragePath - Global setting?
By default the BufferTempStoragePath is mapped to the user running the package's Documents and Settings folder. This is problematic when numerous packages are running simultaneously and using this disk location (i.e. sorts), and you don't have a large disk for your C: drive. The property of course can be changed. However the property is specific to a data flow task, so this would require developers to change the property is every data flow task of every package. Is there a global setting to change the default location that SSIS will use An alternative is to use configurations, however a configuration will be required for every data flow, as it is specific to the data flow task (and name of that data flow task) Any ideas Thanks ...Show All
