mattjb's Q&A profile
Windows Forms ArrayList troubles
Broadview : when i edit a value within my arraylist, the value does not stay changed, it behaves almost as if it were changed only within a certain scope. I have two structures : Structure materials Dim name  ...Show All
Visual Studio Team System VSS and Team Server
It seems that I can't have some VS projects (existing ones) use VSS and others (new ones) use TFS without continually changing the configured source control plug-in. Why can't this be configured per solution It looks like I'm pretty much forced to migrate everything or nothing, which is totally crazy. OK, I did not see anything unusual with the solution or project files. It would be worth looking at a ...Show All
SQL Server Scrpting to genrate surrogate keys
This is the code iam using to get the incremental surrogate keys: Imports System Imports System.Data Imports System.Math Imports Microsoft.SqlServer.Dts.Pipeline.Wrapper Imports Microsoft.SqlServer.Dts.Runtime.Wrapper Public Class ScriptMain Inherits UserComponent 'Declare a variable scoped to class ScriptMain Dim counter As Integer Public Sub New() 'This method gets called only once per execution 'Initialise the variable counter ...Show All
.NET Development DoEvents not available under My.Application
Problem: When I try to add a My.Application.DoEvents statement to my form code, DoEvents is not a member of the list. Background: I started this project as a Windows Service. To make my initial draft easier to debug, I changed it to a Windows Application and added a form. The program is running and the interface works. I tried the Run Custom Code option under each of the files under My Project, thinking it might regenerate the myApplication ...Show All
Smart Device Development How can I get the current version of the app .netcf 2.0
Hello, I am wanting to get the current version of the wm 5.0 application that is on the mobile device at runtime. How can I accomplish this as the .netcf doesn't support Diagnostics.FileVersionInfo.GetVersionInfo. Thanks. John If you want to get the version of your current assembly you may use code like this: System.Version ver = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version; Y ...Show All
Visual Studio Team System CREATE VIEW Error!
Hi, Just installed VSTS - DB Pro and imported my sample database into Database Project. However i getting some errors in my Database View. I have a couple of view which actually point to the tables in different database. For example: I have a DatabaseA with Table1 I have a view in DatabaseB as below: CREATE VIEW dbo.MyRemoteView AS Select * from DatabaseA.dbo.Table1 I have no problem with the view creation in Sql server query analyzer and i actu ...Show All
SQL Server A QUERY THAT RUN ON DB2 THAT HAVE MORE PERFORMANCE THAN SQL SERVER 2000
The execution time for this query on DB2 v8.0 DBMS one second but I execut e it on SQL SERVER 2000 is around 55 second so how i can incease the performance for SQL server SELECT ACC_KEY1,ACC_STATUS_LAST FROM PSSIG.CLNT_ACCOUNTS INNER JOIN PSSIG.CLNT_CUSTOMERS ON PSSIG.CLNT_ACCOUNTS.CSTMR_OID = PSSIG.CLNT_CUSTOMERS.CSTMR_OID WHERE (PSSIG.CLNT_CUSTOMERS.CSTMR_START_DT >= '1900-1-1 12:00:00') AND (PSSIG.CLNT_CUST ...Show All
SQL Server Writting multiple rows from one input Row
Hi: I'm trying to write a transformation script to write multiple rows from 1 input row. In SQL Server 2000 DTS I could do this by using DTSTransformStat_SkipFetch and DTSTransformStat_SkipRow. In SQL server 2005 it looks like I need to use EndOfRowset but I do not know how to use it for sure. If this correct can someone show me a code example and if I am incorrect can someone tell me how to do this Thanks I have and I do n ...Show All
Visual Studio Association and Inheritance do not work in Class Designer of Standard Edition of Visual Studio 2005
Hi, I'm playing with the class designer in Visual Studio 2005 Standard (Academic version) and I can't get the Inheritance or Association to work. I create very simple classes like: public class Class1 { } with the class Designer. I click on Association (or Inheritance) in the toolbox. I then click on Class1 (expecting to see a line and be able to drag it to Class2), but all that happen is I move class1 around the screen ...Show All
Windows Forms New form based on standard form
I want to create a new base-form which inherits from the standard Windows form. I want to add some properties to the new form. For example: a standard form has a property tag and I want my form to have multiple tag properties like tag ...Show All
Windows Forms DataGridView leaks due to insuficent ToolTip cleanup
We have a control in our application that derives from the DataGridView control. I've spent all day tracking down leaks in our app using the SciTech profiler. I believe that I have found a leak in the DataGridView that occurs through the internal DataGridViewToolTip class. When the grid is setup to use tooltips and the first one is activated the underlying ToolTip coomponent is created and part of that initialisation is to figure out what ...Show All
Windows Forms DataSource turns null after DataBind() ?!
Hey everyone, I'm new to this forum so sorry if i misplaced this thread. I'm building a simple ASP.NET page having a GridView control and a DetailsView control for master/detail display. code for databinding the GridView is: DataTable prodTbl = ... // code which successuflly reads a table from DB ProductsGridView.DataSource = prodTbl; ProductsGridView.DataBind(); // next lines of code DOESN'T WORK even though C ...Show All
Windows Forms Can't update underlying database in VB 2005
When I click the SaveItem button on my BindingNavigator control, it appears to complete successfully, but no change is actually made to the underlying database. This is application specific. If I build a new program with a form that has controls bound to the same db, I can update the database with no problem. I added a simple form in the problem application to see if it was form-specific, but the new form won't work either. ...Show All
Smart Device Development DataGrid paint event on DataSet data modification
Hello everyone! I am new to this forum and .NET CF, so i'm sorry if my question might seem too easy. I an trying to build an application where my datagrid displays dynamical data. I am using a DataSet to store data that i receive through a HTTP connection. One column must have cells turn gray if new data is inserted into them and remain that way for an amount of N seconds. I have used reflection to paint the cells, after registering ...Show All
Visual Studio Team System Redo a build?
Hi, I have a very stupid question, but certainly very important and usefull :-) How can you redo a specific build with team foundation server It is possible to get a specific version based on label on the client side or on the TF server, but I don't see how to say "Get that version and build again it!" :-) Thanks in advance, Steeve PS: Well in fact I can see a "non easy and manual way": 1. Crea ...Show All
