zabrucewayne's Q&A profile
Visual Studio Team System Check-In Policy, Code Analysis exclusions, copying to other TFS Projects
We've gone into a TFS Project and modified the check-in policy to require Code Anaylsis. We've also disabled a number of the specific code analysis rules. We'd like to apply these same code analysis exclusion rules to other/future TFS projects. How does one move code analysis exclusions from one TFS project to another Is this accessible through the Process Template Management I found http://msdn2.microsoft.com/en-u ...Show All
Visual Basic find first word of text box
How do you find the first word of textbox1 This has stumped some people on other forums. What i want to find is the text before the first space. Thanx in advance! You could add a Module and place a function in here which you will be able to access from any of the forms in the problems Function FirstWord(TextString as string ) as string Dim firstWordInString As String = System.Text.Regu ...Show All
SQL Server Locking positions on page
Hi Guys I have almost managed to be able to drive the production of invoices for an old legacy app through RS2000. My final problem is that a subreport that is containing within a list on the report page is pushing everything below it down... Any hints on be able to stop this kind of action i already restrict the number of rows that the subreport returns, so there should be enough space on an A4 pages for what i want TIA Stephen ...Show All
Windows Forms ListView crashes the CLR?
Setting a ListView to virtual mode and then populating Text or SubItems() with strings longer than 260 characters _and_ two quotes crashes my application the hard way - the EXE just shuts down. I suspect some problem in the unmanaged part of the .NET framework, but can't really tell. I reported this bug( ) three days ago already in this forum, but my post vanished for whatever reason. Can anybody reproduce this problem Or know a workaround/ ...Show All
Windows Forms Saving Image - A generic error occurred in GDI+
Hi, I am downloading images via a web service and saving them on the local machine to allow me to syncronise product images between the store administrator application running as winforms locally, and and the asp.net web site: The image is streaming  ...Show All
Visual Studio Team System Programmatically insert requests
Sometimes I have to use 3rd part tools to retrieve requests invoked from clientside javascript. These tools (primarily HttpWatch) lets me save output in xml format. To get the testing right, I manually insert request based on data from xml. a) Is it possible to write plugins to the "webtest-editor" context-menu b) Can requests be programmaticly inserted to the "webtest-editor" a) It is possible, but difficult. b) What are you trying to do ...Show All
Windows Forms Handling OnMouseClick of a control from designer
How can I handle this event when the user clicks on the control in VS designer I would like to create control similar to TabControl (but I dont want to inherit it) and I am interested, how is the tab switching done in the desig ...Show All
SQL Server PredictSupport
Hi, Can anyone explain what this function returns What does the support value represent Thanks, Dave PredictSupport(<attribute>, <state>) returns the number of cases in the training set that support the predicted state for this attribute. If the state is not specified, the state with the highest predict probability is used. The general idea is that a high probability prediction with a larger support value may be ...Show All
Visual C++ Is it possible to...
...number the lines in the compiler to make it a little more convenient to locate errors For example you have an error on line 250 in your 500 line program and most people wouldn't want to count to 250 (and I know I dont want to), so I was just wanting to know if the lines can be numbered or if there is another way to easily find the line that contains the error. ...Show All
.NET Development MDAC SDK Conformance testing & .NET!
Hi there, I have recently upgraded to .NET 2003 and would like to use the OLE DB conformance testing tools, supplied with MDAC 2.8 to test a writable OLE DB provider. The trouble is I cant build the tools as they make use of ANSI C++ and obsolete header files. The documentation only includes directions for VC5 & 6 users and no information for .NET users. Are there any conformance testing tools that will work with .N ...Show All
SQL Server Is this possible? How
hello guys, I want to create a report using a bar chart data region from a cube. The cube contains Date and Time dimentions. Here is my question: The catagory field (x-axis) value of the bar chart is dependent on the paramaters value(i.e.StartDate and EndDate). For instance if the difference between StartDate and EndDate is greater than 1 year, the x-axis value for the bar chart should come from the Date dimention and display the year value. ...Show All
.NET Development No typelib generated
namespace Interfaces { [System.Runtime.InteropServices. ComVisible ( true )] public interface IBaseballStats { double CalcBattingAvg( int atBats, int hits); } } I have this one interface declared in a project that has the "Make assembly COM-visible" and "Register for COM interop" check boxes checked. When i build the app, i get a warning saying the dll "does not contain any ...Show All
Visual Basic My program wants internet access
For reasons unknown to me, my program suddenly wants to access the internet on startup. I do not know why it is doing this. I tried deleting the bin folder and rebuilding but the result is the same. It wants access before it even gets to my code. It doesn't even get my Form_Load Function. ...Show All
Visual C++ Getting popup CMenu item height
This should be a simple question, but I need help finding the answer: How do I figure out how many menu items will fit on the screen per column in a popup menu before I call CMenu::TrackPopupMenu() Easy Answer: Get the screen height and the menu item height and divide. Screen Height: ::GetSystemMetrics(SM_CYSCREEN) Menu Item Height: I've tried ::GetSystemMetrics(SM_CYMENUSIZE) and ::GetSystemMetrics(SM_CYMENU) but they give incorrect answ ...Show All
SQL Server How to get the Task name inside your custom task
I have a custom task, and during the Execute method I'd like to get hold of the task's name. It appears that this is held on the TaskHost, but I cannot see how to obtain that from within the task itself. Anyone got any ideas Thanks Darren Jamie. I think SourceName is only added to the Variables list if your package has Event Handlers. Allan ...Show All
