lucerias's Q&A profile
Visual Studio Team System Share a file to a folder?
Hi, Is it possible in TFS to share a file between folders. For example I have an xml file that gets managed in one location but I also need it to exist in one of two other physical folders. I tried in VS to add existing item, select the file and click "Add as link" but it does not get added. Any ideas Thanks Donal only way out is branching , you can branch and update periodically , you can write code for this also . I had same situation and here is my question to Brian Harry http://blogs.msdn.com/bharry/archive/2006/09/26/772371.aspx#1053904 Does SP1 support something like "linked files" in VSS We are working on a multi-location parallel development projec ...Show All
Visual Studio How to make application check for updates
How can you make a Windows Forms application check for a program update upon startup and give the user the opportunity to download/install it There is a nifty set of tools called the Updater Application Block which gives you a set of API's to do what you are asking for. "The Updater Application Block is a .NET Framework component that you can use to detect, download, and apply client application updates deployed in a central location."- http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnpag2/html/updaterv2.asp You can also look at ClickOnce. "ClickOnce deployment allows you to publish Windows-based applications to a Web server or network file share for simplified installation. V ...Show All
Windows Forms DataGridView - Position editing control?
The rows in my data grid are taller than the default height. This means that the combo box is smaller than the height of the cell. When not in edit mode, the text is properly aligned to the middle of the cell; when the combo box becomes active, it moves to dock itself to the top of the cell. Is there any way I can control that behavior and force the combo box to center itself vertically in the cell Nope, no dice. It's like it just ignores it completely. It puts the TEXT there, when the cell isn't activated, but doesn't do a thing to the editing control. Thanks for the help though. ...Show All
Windows Forms Enterprise Library 2006 and TableAdapters
What would be the implementation details for TableAdapters to work in conjunction with the Enterprise Library I was planning on passing Typed Datasets through the tiers using the Data Application Blocks but I fail to see where the TableAdapters would fit in. Thanks TableAdapters don't fit in for use with the Enterprise Library 2006. Although there is nothing stopping you from using them in conjunction, they are considered alternative solutions to the data access problem. Enterprise Library is a helper library for "generic" data access, whereas TableAdapters govern data access to a specific Database Table. Regards, Dave ...Show All
Visual Studio What caused creation of THOUSANDS of tmp files in SourceSafe users directory?
I'm using Visual Studio 2005 and VSS 6.0d. Visual Studio and VSS were getting slower and slower, and my entire computer was too, if those apps were active. To make a long story short, the culprit was this: there were 65536 0-byte *.tmp files in the VSS <database>\users\<username> directory. That's, right 65K 0-byte files. This wasn't in the <database>\temp directory, but in a directory for users .. the one with the ss.ini in it. Anyway, I deleted 'em and all is well. But I'm a guy who likes to know 'why'. Anyone know -BillyB You should be able to restrict AVG to not scan certain paths. GetTempFileName is a core Windows function and can't be tweaked by application developers. ...Show All
Visual Studio Express Editions 30 day Free Trial
I am adding "30 day Free Trial" code to my app. I want to write out a file to a secret location with the first run date, etc. Would C:/Windows/System be a good place to put it ahmedilyas wrote: Even Dman1 solution has a flaw and is not a real answer - the user can easily reflect the assembly, find the encryption algorithm and then decrypt the encrypted file and set whatever date they want back in the file encrypted - the app would be fooled in thinking it has only ran from the current date for example For your knowledge ahmed, there is no such thing as perfect security! And I very seriously doubt that the user can "easily" find the encryption algorithym...in fact ...Show All
SQL Server Limit client ip to login SQL Server 2005 Express.(compare MySQL)
Hi, In MySQL, "GRANT ALL PRIVILEGES ON *.* TO 'root'@'192.168.1.1' IDENTIFIED BY ' mypassword ' WITH GRANT OPTION;" This gives the permission to 'root' user from '192.168.1.1'. Another user or another ip couldn't connect to this server. In SQL Server 2005 Express, can I implement like above query statement No, there is not such an option in SQL Server. HTH, Jens K. Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Visual Studio Protected method of sealed classes appear in the Index
Try generating documentation for the following code: using System; u sing System.Collections.Generic; using System.Text; namespace SandCastleTest { public class BaseTest { protected virtual void Help() { } } public sealed class Test : BaseTest { protected override void Help() { } } } Generate documentation for it using the Sandcastle Aug CTP (HtmlHelp1x). If you'll look at the Contents-tab of the compiled help-file you'll notice that the Help-method is only shown as a method of the BaseTest-class. It correctly doesn't appear as a child of the Test-class as this class is sealed. If you then click on Test Class in the Contents-tab, you'll get a list of all the members of this class. ...Show All
Smart Device Development AutoSize Label
I am using VS 2005 and writing a VB.net application for a Windows Mobile 5.0 Smartphone using .Net CF 2.0. I need to determine the text height of multi-line wrapped text in a Label control so I can set the height of the Label to ensure that all text is visible, and then reposition other controls based on the new height of the Label. Unfortunately, CF 2.0 Labels do not have an AutoSize property. I have tried some examples using CreateGraphics and MeasureString such as the following... Private Sub AutoSizeControl( ByVal ctlControl As Label, ByVal textPadding As Integer ) ' Create a Graphics object for the Control Dim g As Graphics = Me .CreateGraphics ' Get the Size needed to accommodate the formatted Text Di ...Show All
Game Technologies: DirectX, XNA, XACT, etc. ddraw.h
Hi I m tryin to build the base class solutions as told in one of the documents .......its mainly to create the library files STRMBASD.lib (debug) and STRMBASE.lib (release). I m gettin this weird error of "ddraw.h" ............its says its not included in the file or directory . I searched the directshow sdk as well as the microsoft psdk ..could'nt find there..... would help me in finding the ddraw.h as to in what version of SDK could it be there. thank you.. Wessam Bahnassi wrote: DDraw.h should be included with any proper DirectX SDK installation. Search your SDK include directory for it... Thanks it worked ...Show All
SQL Server Move log file without shutdown
I need to move a database's log file to a different disk. Can I do this without shutting down It's pretty clear that I can create a second log file on the new disk but, what do I have to do to delete the old log file The documentation warns that files must be empty to be deleted but I can't find any information on how to empty and disable a log file. Will a BACKUP LOG make the log file empty enough to be deleted How do I make sure that new transactions are all written to the new log file Dang. I guess I'll have to take the database offline for 5 minutes. I was hoping to avoid that because even 5 minutes of downtime is going to take an hour of coordination, communication etc. This db is used duri ...Show All
Software Development for Windows Vista backward compatability of xls files created by office2007
Hi, I have created a xls file in Office 2007 but couldn't open the same in office2003 , i have also tried in reverse way also it is not working. Can any one please give me information on making it compatible. Thanks in advance for your suggestions. to be able to save, into a legacy verion of office (2003,xp,2000,97...) you have to go to save as...look at the right hand side of the box and it will say something to the effect of "save word document in legacy format" ...Show All
Visual Basic Checking MS-office service pack levels
I have a vb.net app which does a number of checks on a user computer and reports these back to the help desk. I would like to determine the best way of finding the service pack level for the installed version of Microsoft Office. Using vb.net. Any pointers would be most appreciated. Each Office application also has a COM/Interop library that comes with the application(ie you must have the office app installed for your application to work on the clients machine). You must first reference this library at the project level(Project - Add Reference - COM - Microsoft Excel 11.0....) and then inside your class use an imports statement like: Imports Excel = Microsoft.Office.Interop.Excel ...Show All
Visual Studio Express Editions Error while creating Dataset
Hi, I have recently downloaded Visual C# Express Edition and SQL Server 2005 Express Edition. When I try to create a dataset from within the Visual C# IDE, I get the following error: An unexpected error has occured Error Message: Key not valid for use in specified state. Is it a SQL Server related error How can I correct it I can create new database and tables and diagrams in the database using the Database Explorer of the IDE . But when I try to create a dataset, this error occurs. Thanks a lot. This seems like a VS error since things haven't even gotten to the point where you're connecting to SQL Express. Additionally, you point out that you're able to create and edit database through ...Show All
Visual C# Creating Word documents based off templates
Hello, I am developing using Visual Studio 2005 with C#. I am building an application that is a series of information-gathering wizards and things like that to get data from the user. Once all of the data is in, I am going to need to create a Word document based off one or more templates. The user will be able to choose a template. More than one template may need to be used to produce a single document, for example a template for the document structure itself, such as headers and footers, and another template for a specific section of the document, with a paragraph of text that has values substituted in. I'm having a little trouble figuring out what the best way will be to do all of this programatically. The user will hit a save but ...Show All
