BenziZbit's Q&A profile
Windows Forms Environment Variables in Windows Installer
I have a Windows Installer Setup project as part of my VS2005 solution, and was wondering if there was any way I could interact with Environment Variables from within this project Specifically, I was looking at a way to update the PATH variable on an install, and then remove the added entry during un-install. I was hoping there would be a quick and easy way of doing this. The Setup project has a Registry Editor, and I was expecting something s ...Show All
Visual Studio How do you add a using/reference to a t4 template?
I have a property based on a List<string> called DataMembers that I want to iterate through in the template. <#@ Property Processor="PropertyProcessor" Name="DataMembers" #> I get the following error: : error CS0246: Compiling transformation: The type or namespace name 'TestPackage' could not be found (are you missing a using directive or an assembly reference ) Yeah, probably, but how do I add one ...Show All
Windows Forms On a DataGridView control, is it possible to ...
Completely hide/disable the leftmost fixed column Disable cell/row/column selection mode – A mouse click on any cell/row/column does no selection If so, how Thanks, A) Set the RowHeadersVisible property of the DataGridView control to false. B) What is it that you want to accomplish If you don't like the colors of the sel ...Show All
Windows Forms Embedded control keeps crashing...
I have an embedded control that works find when its in a standalone application (executable) but when it is embedded in IE it crashes everytime i close IE with it loaded or click on a link to another page. Any ideas Thanks in advance, Marco ...Show All
Visual Studio Team System Disconnect from TFS gives error
When I right click the TFS server in Team Explorer and choose Disconnect, it gives me a confirmation prompt, I click Yes and it gives me the error "Value cannot be null. Parameter name: uriString". Is this a bug or am I just doing something wrong Is this still there in the Refresh Beta3 If yes... how do i disconnect Thanks Thomas ...Show All
Visual Studio Express Editions Dmi forms title in toolbar!
Hey, im trying to make a Mdi form with a toolbar, and if a new subform is opened, there must be a button added to A tool container, so you easly can switch from maximized screens. Im trying an hour now and still dont get this to work. I hope someone would like to help me :) Thanks Chris This is what I did as a sample to implement this. It is missing the removal of the form when it closes. I added a new form to my project, added a Too ...Show All
SQL Server Can I get a value from a Matrix Cell?
I know in a report we can use ReportItems to refer to a cell, however, will this work for a matrix How do I get values from a Matrix Cell ...Show All
Visual C++ How to turn off Intellisense processing?
I'm using VSTS July 2005 CTP. I've found that on idle VSTS kicks in Intellisense processing, which often ends up hanging the IDE. I've looked through all options and can't find a place to turn that processing off. Thanks. It would be great if intelli-nonsense was at least smart enough to not do indexing while I'm using my computer (or provided an option). I've compiled; I'm waiting to run a benchmark; and I can't because t ...Show All
SQL Server Why is UDF class declared partial?
When you create a C# SQL Server project and add a UDF to it, the containing class that wizard creates is declared partial. Is there a reason for this I have not been able to find any mention of this in the docs or anywhere else. Does anyone know Thanks in advance, Alex So that you can include several UDFs in the class, without having them all in the same file... It's an eas ...Show All
Windows Forms Is this legal for me to do this?
If not, i will happily stop, but right now, i am having a blast with Terrarium in .Net 2.0. http://tanderson.cbs-posi.com/MyTerrarium/checkmeout.jpg Just don't tell the C# coders They will probably scream blasphemy and other curses. ...Show All
Windows Forms DataGrid currency formatting
Based in the examples in TaskVision, I wrote a custom implementation of the DataGridTextBoxColumn that only overrides the Paint method: protected override void Paint(Graphics g, Rectangle bounds, & ...Show All
Visual Studio 2008 (Pre-release) WPF apps slow for some reason
Everything is slow for some reason. I tried Max, and that ran decently (aside some weirdness I'll explain below), but I try running some of the sample code and other stuff I compile on Visual Studio, and it's unbelievably slow. I tried the samples here on XamlPad... I can click on a button at a rate of about 2-3 times a second, and my CPU usage will jolt up to 100%. Most other sample applications run just as slow. Max runs okay, except tha ...Show All
.NET Development DAO Wrapper: Field is DBNull after Addnew and throws error
First a quick bit of background. I have a legacy app that is written in VB6 using DAO. We are slowly migrating to .Net. DAO is a problem going forward, but we do not have the time (or $$) to rearchitect using ADO/ADO.Net. We decided to write a set of abstract VB.Net classes that present the DAO interface - this will allow us to implement concrete classes using any physical DB engine that we choose to use in the future. I currently have implem ...Show All
Visual C# Access denied when reading the TotalProcessorTime of the idle-process
Hi there, whenever I try to read the TotalProcessorTime of the idle-process I get the exception "access denied". All other processes can be handled normally. I read the time this way: foreach (System.Diagnostics.Process proc in Processes) { proc.Refresh (); string ID_Time = "ID = " + proc.ProcessName + ", Time = " + proc.TotalProcessorTime.ToString (); } Has anybody an idea ...Show All
Visual Studio How to remove VSS?
I'm working on a solution that is under VSS control. I want to zip it to send it to a colleague just for viewing. So he does not need the VSS control at all. Is there an easy way to remove VSS control including all the control files(.scc/.vssscc/.vspscc/etc.) I do not want him to be confused. I want him to view the solution as if it has never been put under VSS control at all. Is that possible Thanks! Th ...Show All
