Luke Liu's Q&A profile
Visual Studio Team System web deployment projects in drop location?
When building a regular 2005 web with Team Build, I get what looks like the contents of the Binaries folder in the drop location i.e. '<BinariesRoot>\Debug\Mixed Platforms\_PublishedWebsites\<WebName>... When using web deployment projects I dont get either. As part of a larger build process the drop location is the area I target for msi generation for example, what do you think is the best way to get the output of all web deployment projects into the drop location without say xcopy of specifically named files/folders Simon - pls look at doc http://msdn.microsoft.com/vstudio/teamsystem/refe ...Show All
Windows Forms Multiple selection checkbox
Is there a control that list checkbox and support multiple selection I checked CheckedListBox and it doesn't support the multiple selection. How can i do to support it Is there any article out there for it I'd prolly need to check for Ctrl+shift everytime the user check an item. Thanks, That's not what i want ... I want the user to be able to do a multiple selection by using crtl+shift .... ...Show All
Visual Studio Express Editions Accessing forms from external classes
Hi, I am quite new to high level language programming (being one of those who lived with machine code for a couple of decades). I am creating an application for my company which will store lots of information in a database (and I am using the C# language to do this). What I would like to do is access a form that I have created with Visual Studio 2005 professional from other classes. As the project is going to be large, I will create several forms over a period of time, but the main program elements will be stored in several separate classes for tidyness. All my own classes I have written so far can be accessible quite easily by decl ...Show All
.NET Development Can multithreading solve this problem?
I'm writing an C# window application that will query a large database. I found when the application is running the query, the GUI has no response. I heard that .NET GUI and event handling are running in the same thread, is it the cause of this problem Can I use multithreading to solve it Daniel Rieck wrote: There's a version of the BackgroundWorker for .NET 1.1 available here (which is compatible with the 2.0 version): http://weblogs.asp.net/rosherove/archive/2004/06/16/156948.aspx That's a bit messy. Just use standard multithreading code as supplied by System.Threading. ...Show All
Visual Studio Team System Unable to customize Project Portal Site(WSS) with webparts
Does anyone know why it fails to add webparts to my TFS project portal . A general error message pops up in WSS and when you try to throubleshoot it no relevant information. The strange thing is this is on the release version of TFS. I also happend to me on the RC version of TFS. The root WSS works fine and i'm able to add and remove web parts. As soon as I try and customize a TFS project portal site it fails. I've googled it and nothing. I found one article where it states it is WSS2.0 that is not that compatible with .Net framework 2.0. Does anyone know how to solve this problem ...Show All
Windows Forms Can't close a word application object after opening it...
Hi. I'm using the code below to open a Word Application, print, then close the document, and finally kill the Word instance (so I thought). And it's just not working. WinWord.exe still shows in the Task Manager each and every time this code is run. The list gets so long, that the computer runs out of memory. Any& ...Show All
Visual Basic MPEG Music
Is there anyway to add a MPEG Compressed sound/music file at all into the resources Visual Basic says it only allows PCM. The thing is, I'm sick of using them because to get good quality out of them the file sizes are huge. G'day. If you get the Windows Media Player SDK (WMPlayer10SDK) you can add a reference to it from your project. ...Show All
Visual Studio Calculating a properties value
How do I calculate a properties value based on other concept’s properties in the domain model What is the preferred way and why In the Corona tool, the way we do it is to mark a property as read-only and custom storage. Then we override the method GetValueForCustomStoredAttribute of the model element in question and do the calculation there. It wouldn't be wise to rely on rules or events for this "calculated" property. In future this will certainly change - we're still working our what it will change to. Gareth ---------------- ...Show All
Windows Forms Changing Parent Items From Child
How can I change parent items such as menu items from a child First of all, the menu items aren't going to be hidden, right They're disabled. And, they will be disabled if there aren't any children. That's the point. You update the availability of the menu items each time you pull down the menu, so that if there aren't any&nbs ...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 looking through wingdings for the symbols of the 3 buttons. Have fun!!! ...Show All
SQL Server VS 2005 sqlexpress installation fail
OK folks, watched the Steve Ballmer webcast (a bit ott but hey), get the WebDeveloper Express download w/SQL-Express whilst I wait a few days for my product to a arrive via mail .. guess what, same old "failed to install SQL-Exp 05" errors which I got with Beta 2. Tried all the "uninstall first" tools before installing.. unless I have something very weird on this machine I am at a loss. Any ideas guys I would love to give more info but I don't even know where the install log file is with this release. If these issues have already been addressed elsewhere, or I am being a bit stupid I apologise. Any help though is very welcome. many thanks Da ...Show All
.NET Development IPermission.Demand not called
I've implemented an IPermission derivative and a corresponding CodeAccessSecurityAttribute class. I register my class with caspol and gac it. My test driver has a method I attribute with my CodeAccessSecurityAttribute and request SecurityAction.Demand. Just prior to making the method call, I see the constructor for my permission class is called, then FromXml() and IsSubsetOf. Demand() is never called. Why Curiouser and curiouser... I see the Demand call even with that attribute.* Given that the problem doesn't seem to lie in the code, I guess we'll have to fall back on possible registration issues. Try adjusting the ...Show All
Visual C# Move rows from DataTable
Hi, I am using the DataTable.Select() method to populate a secondary table with data from a parent table in order to perform calculations on it. The thing is that one the calculations have been done, the data in the parent table is redundant so I would like to delete it (as the table can get quite big - 500,000 rows +). Is there a way to do this Thanks in advance, James Thanks, I've actually come up with a solution that works a treat. Just added a an autoincrement primary key to the parent table and then add those values to an array as they are selected into the secondary table, then delete each r ...Show All
Windows Forms Protecting UserControls
Is it possible to protect commercial user controls from being reusued by developers if they happen to end up with the assembly on their machine. Back in the day of ActiveX controls, there used to be a license file model that you shipped with that allowed the control to be used in the IDE but I can't seem to find the right search words to convince MSDN/google/etc to give me the .Net equivalent. Check out System.ComponentModel.LicenseProvider Details: http://msdn.microsoft.com/library/en-us/cpguide/html/cpconLicensingComponentsControls.asp frame=true Hope this helps, Jessica ...Show All
Visual C# Trimming strings
I am looking for a way to deny the user to type certain symbols into a name, because later I want to use that name to create a default filename or folder. A mask would be nice, but I haven't found one. I can trim from both ends, but not from the middle, and also trimming moves the cursor to the beginning of the line. After a zillion failures I came up with the idea below, but unfortunately the Undo method does not work as I expected and may even cause the application to crash. Any ideas Regards, Guido private void myTextBox_TextChanged( object sender, EventArgs e) { if (myTextBox.Text.Contains( "*" )) myTextBo ...Show All
