Zachmo's Q&A profile
Windows Forms Mixing bound and unbound columns
My DataGridView has a mix of bound and unbound columns. I'd like the unbound columns to be calculated from the bound columns (like an Excel formula). What's the best event to handle for this Right now, I've got it working by handling CellFormatting, but I have to special case the "New" row so it won't crash. I'm thinking one of ...Show All
SQL Server EngineThread Problem
I've run into an odd problem. I've got a package that hangs on one machine if EngineThreads is not set to 2. the dataflow in question uses an XML source, and 2 branches. One branch does some synchronous transformation, and the other (using a different table from the source) uses an async script xform to do a sort of conditional aggregation. They both come together using a merge join and then sent to DB On the development workstation (2 x 2.6 GHz, SQL 2005 tools + full VS.NET 2005), run against the dev SQL box database, it works fine as default. When deployed directly to the dev SQL box (1 x PIII 550, SQL 2005 + tools only), it ...Show All
Visual Studio 2008 (Pre-release) Publish fails for WPF app using November CTP
If I publish a simple WPF app to http://localhost/TestClick I get the following error: Error 1 Publish failed with the following error: Object reference not set to an instance of an object. 1 1 WindowsApplication1 Here is the info from the error log: System.NullReferenceException: Object reference not set to an instance of an object. at System.Xml.XmlReader.CalcBufferSize(Stream input) at System.Xml.XmlTextReaderImpl.InitStreamInput(Uri baseUri, String baseUriStr, Stream stream, Byte[] bytes, Int32 byteCount, Encoding encoding) at System.Xml.XmlTextReaderImpl..ctor(String url, Stream input, XmlNameTable nt) at ...Show All
Visual C++ Working with bytes and bits
I'm writing a program (to be more exactly it's a DLL) that comunicates with some machines through the serial port, so I need to read 17 bytes from the buffer, get the first byte and split it into 7 bits (the serial port configuration specifies that will be 7 the number of data bits). - How can I get this value from the BYTE array and split it into an array of bits - I'm getting the value from a position of the BYTE array a writing to a file to see what the program(VB6) is receiving. The first time it receives only one byte, the other times, it receives the whole BYTE array. Why I'm using fputs like this: char cSWA = buf[0]; fputs ...Show All
Windows Forms DataGridView - Null Values & DataGridViewImageColumn
Hi, I have a simple DataGridView with a DataGridViewImageColumn. I add rows programmatically to it in Form_Load. When I add a null value to the image column a 'placeholder' image appears. I want no image at all to appear for null values. How can I achieve this This is for VS2005 Beta 2/C# by the way. Many thanks, Ben Hello, I now have VS2005 Release Candidate but am still unable to get it to work as it should (ie. I should no longer need to use a 1x1 transparent image). Please could you tell me specifically what I need to do in RC and Final It's a databound DataGridView by the way. Many thanks ...Show All
Visual Studio 2008 (Pre-release) Smart rendering of large amounts of geometries
An old blog entry I found - http://www.eightypercent.net/Archive/2003/12/02.html#a158 - mentions an interface called IRetainedRender, which is related to smartly rendering a subset of a potentially large amount of data (think of a 'map' control displaying a viewport onto an underlying dataset of millions of polygons etc): I can't find this interface anywhere in the documentation, so does anyone know what it's been replaced with I should have clarified that VisualHostElement was a suggested name for an element derived from FrameworkElement that you have to implement. Implementing several DrawingVisuals ena ...Show All
Visual Studio Team System In web tests,how to validate the values on a grid?
I want to validate the values that are shown on a grid, based on the values that are selected on a Combo.(Herein internally, the grid gets filled, when the combo box value is changed.) I would also like to know the selected row from the grid. Pls, give me the details of this.If we have to write a custom validation rule for this, kindly provide that custom validation rule too. It sounds like you would have to write a custom validatoin rule for this. Here are the instructions for creating a custom valiation rule. http://msdn2.microsoft.com/en-us/library/ms182556.aspx You will be supplied the full res ...Show All
Visual C# ProgressBar.Value
Ok. I know this is an odd question but I just cant figure it out. Basically, I increment my progressBar value with a certain process. So sometimes the value is 25, or 82 or whatever. Sometimes value passed to the progressBar turns out to be a decimal, then i get the error. My question is as follows: How would I make an if statement something like this: if (progressBar1.Value == a decimal) { do.this } You are getting an error because the Value property of a ProgressBar is of the type int and you are passing it a float/decimal value. try this progressBar1.Value = (int)newValue; I generally do the following ...Show All
Visual Studio Team System Add Work Item menu still loading...
I just uninstalled/reinstalled TFS on my server. I uploaded my custom process template, and created a new team project from my template. However, when I try to right-click the Work Items folder, Add Work Item, it says "Add Work Item menu still loading...(try again in a moment)". It has been saying this for over an hour now. When I remote desktop into the TFS server and use team explorer on there, I can add work items just fine. What is going on here Everything else on my dev machine client appears to be working. I can upload and view documents just fine, and I can run work item queries and see the proper ...Show All
Windows Forms Visual representation of a list (ala ListBox bottom to top)
Hello all, getting ready to give up trying to figure out how to do what i need on my own so i'm trying my luck in asking here. I have a list of objects that i wish to represent in a visual list like a ListBox, the problem is i need to draw the items from the bottom of the control and upwards. I need the SelectedItem functionality offered by the ListBox (as well as Key-events, mouse-events and collection-changed-type-events) which has had me look at the ListBox control, however as far as i have found there's no way to reverse the order it draws it's items (without resorting to some serious headache trying to modify the areas to draw in ...Show All
Smart Device Development problem in deployment in emulator
Hi , i am getting an error Current VMID is in use wait for other applications to exit.due to this i am not able to deploy application. please help me Thanks wm_al Hi , Today somehow initially i was able to deploy my application but again the same problem has started with the error this time as Connection to device failed. can anyone please help me out as to how do i solve this proble. thanks ...Show All
Visual Studio Debugging SQL Server 2005 Stored Proc in Visual Studio 2005
Hi all, I have a big stored proc (about 6,000 lines) written in T-SQL. I want to debug this stored proc using something other than a bunch of PRINT statements. I tried using the Visual Studio debugger (Server Explorer - Database - Stored Proc - "Step Into Stored Procedure"), but this is behaving erratically. The "Current statement" yellow cursor is rarely on the line that is currently being executed. It is usually between 2 and 100 lines above the actual current statement. It seems that the further down the code I get, the bigger the distance (in lines) between the yellow cursor and the actual current statement. Maybe something related to ...Show All
Visual Studio Team System Updating Assembly Version Information
Hello, I am looking for a way to automatically update the version information for all projects in a TFS Build. I have downloaded the AssemblyInfoTask from GotDotNet to take a look at it. Although it works fine for local builds I'm not sure how to use it with TeamBuild - or if it can even be used with TeamBuild. Since the AssemblyInfo.vb (or .cs) file has to be checked out first I'm not sure how to implement this in a TeamBuild script. Has anyone had any success with getting this custom task (or any other task for that matter) to update assembly version information in TeamBuild --- Thanks, Jeff O ...Show All
Visual Studio Express Editions Help displaying specific Arrays in Listbox!
Ok well the problem I have is that i have to setup a program in which the user selects a Product from its ID which is displayed in a Combobox. Once selected the user clicks the buy button which brings up a quantity input box where the user can enter a number which is calculated and displayed in a Listbox! The problem im getting is that althought it is displaying the information i want, for each array/product in the combobox which is has not been selected the listbox displays a bunch of zeros. Im fairly sure that the program is simply cycling through all the arrays and calculating the neccessary fields and displaying 0's for the arra ...Show All
Visual Studio Express Editions Public/Private Sub Issue
I am sure this question has alot to do with my inexperience with VB...so its probably something simple. I have a form with some text boxes on it. I have them set to be ReadOnly by default. I want to make it so they can be enabled by opening a dialog box and typing a password. So I created a public sub( ) that basically just enables the form fields when the correct password is typed. The problem is that the statement that makes ReadOnly=False seems to be ignored. In fact, even if I try to just show the value of one the textboxes in a messageBox it comes back blank. On the other hand if I make a private sub ( ) and put it on the same ...Show All
