Matty4242's Q&A profile
Visual Studio Team System Custom Controls Problems (again)
Dear all, I have TFS with SP 1 beta installed on Windows 2003 SP 1 (VPC 2004 SP1). I’ve tried to create my custom control and to fire up Naren’s Custom Control. In both cases the Custom Control had been successfully imported to TFS. I Can also create a new project containing WI with one of those Custom controls. The problem is that I am receiving an error instead the Custom Control (other controls are displayed correctly). The error text is : Method 'add_AfterUpdateDatasource' in type 'WitCustomControlSample.WorkItemIdReference' from assembly 'WitCustomControlSample, Version=1.0.2506.23549, Culture=neutral, PublicKeyToken=null' does not have an implementation. I have fired up Naren’s control using articles: http://blog ...Show All
Software Development for Windows Vista Problem Purging mailbox from within Exchange 2003
We are having an issue trying to purge a few left over mailboxes from a recovery effort. What we have noticed is as follows: -the account that the mailbox was tied to no longer exsists. -when you try to either reconnect or purge the mailbox I get the following error. "The operation cannot be performed because this mailbox was already reconnected to an existing user." ID no. c1034ad6" We need a way to either reconnect this mailbox to a new account or purge it off the system. I can provide more information if needed... Thanks, Sean This is a problem with mail user information in AD in relation with Exchange. You can refer to the following article to have an idea of what is going on: http://support.microsof ...Show All
Visual FoxPro Native Financial Functions in VFP
Anyone know how to simulate the financial functions in excel or vb.net VFP has the following: PAYMENT() Returns the amount of each periodic payment on a fixed-interest loan. PAYMENT( nPrincipal , nInterestRate , nPayments ) PV() Returns the present value of an investment. PV( nPayment , nInterestRate , nTotalPayments ) FV() Returns the future value of a financial investment. FV( nPayment , nInterestRate , nPeriods ) In addition there is the NPV() option for the CALCULATE command which operates on multiple records and computes the net present value of a series of future cash flows discounted at a constant periodic interest rate. NPV( nExpression1 , nExpression2 [, nExpression3 ]) Other than these, you are on your own ...Show All
Visual Basic Adding a line break to a message recieved over TCP in a text box
I have: TextBox2.Text = TextBox2.Text + returndata + ControlChars.CrLf Which presumably adds a line break at the end of the message. Sadly not. All it adds is a space. The message recieved was obtained as ASCII over TCP from a Python chat server me and a friend are working on. How will I get a line break at the end of returndata (the message obtained from the server) I've just tried it and seems to work fine for me: Me.Textbox.Text = Me.Textbox.Text + returndata + Environment.NewLine maybe unacceptable but try adding a returndata.ToString() to see if that helps. When I tried it, it puts the message on a new line everytime ...Show All
Visual Basic VB 2005 Express false compiler error
I have a VB 2005 WinForms Project which is giving what I think is a false error. On the Designer screen for the main form (which normally displays the form layout etc.) I get: One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes. '.ctor' is not a valid identifier. Hide at Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom.CodeDomEventBindingService.ValidateMethodName(String methodName) at System.ComponentModel.Design.EventBindingService.EventPropertyDescriptor.SetValue(Object component, Object value) at System.ComponentModel.Design.Serialization.CodeDomSeriali ...Show All
Visual C# Share data between multiple application instances
Hi! Do you know any way to share data between multiple application instances without buffering it in a file or a database (like a static class) Thanks! Hi, You can choose one of the following: 1) Remothing 2) Shared memory (unsafe). 3) Create a window service/com+ application to hold and supply the shared data 4) database/file/xml/exc.. my recommendation is 4 because it is the simplest one. Hope this helps, guy kolbis ...Show All
Visual Studio Team System Users / Logins (CTP7)
I'm experiencing some issues regarding users and logins in the CTP7 version. The story: At first, there's no database or login available in the SQL2005 instance When I create a user named testuser in the Schema View , it is nicely added to the users folder as testuser.user.sql . Since it is created without login , I change the piece of the script to for login [testuser] In the Pre-Deployment folder I change the Logins.sql script to create a login if it does not already exist. Why is the testuser sometimes included correctly sometimes included with without login (although the script says for login [testuser] ) sometimes excluded when building the database project Also, I'm not able to just create a login with password=N'wachtwoord' ...Show All
SQL Server AMO - Dimension Composite Key
i'm developing an aplication in order to create a cube on the fly, and i'm confuse with something that i read at the Msdn's web site, the doubt that i have is about composite keys in Dimension Tables, after read this paragraph (extracted from - http://msdn2.microsoft.com/en-us/library/ms345091.aspx - "Creating Dropping and Finding Dimensions) . " The primary key attribute of the dimension should be defined as AttributeUsage.Key to make clear that this attribute is the key access to the dimension " It's like the Dimension Tables must have a unique atributte as PK right , but what happens if my Dim Tables have a compositeKey . Is necessary to create a UNIQUE atribute as PK in the Dimension Tables Thank you Deepa ...Show All
SQL Server correlated subquery and date filtering problem
Note the following sql query. It contains two separate queries, an correlated subquery and outer query to work against the results of the subquery. Its purpose is twofold (1) get the TOP n ranked field entities using a certain value, (2) return all records for those entities. SELECT MasterLoanID, NoteNumber, LendingOfficer,OriginalAmount, ReviewSampling FROM MasterLoanData WHERE Import_AsOfDate = '2006-05-31' AND BankID = '1' AND clientID = 1 AND LendingOfficer IN(SELECT TOP 3 LendingOfficer FROM MasterLoanData WHERE Import_AsofDate = '2006-05-31' AND ClientID = 1 AND BankID = '1' GROUP BY LendingOfficer ORDER BY SUM(OriginalAmount) DESC) ORDER BY LendingOfficer, Notenumber Note that both queries need to filter the same fields -- impor ...Show All
.NET Development Updating SQL Server using DataSet
Hello all. I have a DataSet that contains 237 tables. This DataSet is populated using the ReadXml() method and a FileStream connected to an XML document. My question is: How do I insert the rows from my new DataSet into the SQL Server database I have seen examples on how to use a SqlDataAdapter and set the UPDATE command, but I'm not using a SqlDataAdapter. Also, all of the examples I've seen using this method involve using the Fill() method (which I can't use because I'm using XML files to populate my DataSet). Anyone know how to push the data in my DataSet into SQL Server Thanks. Example: DataSet ds = new DataSet(); FileStream fs = new FileStream(@"C:\temp\test.xml", FileMode.Open, FileAccess.Read); ds.Re ...Show All
Windows Forms how to check empty row in datagridview
Hi, for eg consider i've 4 rows in a datagrid view . i should be able to select and delete a row. it works fine. but when i select the last empty row (5th) i'm checking like this. if (dataGridView2[0, dataGridView2.CurrentCell.RowIndex].Value == System. DBNull .Value) return ; the above command works in datagridview mouseclick event. but if i select the empty row and use a delete button i need to check the same abov e condition it should get return. but it always deletes the the last row in the grid (here 4th) (i.e) always the rowindex is pointing to the lastrow with data in the grid. so how to check for an empty row....Please let me know some way. I need this . thanks venp--- if (!dat ...Show All
SQL Server upgrading from SqlExpress2005 to SQLEXP2005Advanced
Hi, I am newbie with SqlExpress. I have SqlExpress2005 installed on my computer and created some databases on that. They are working fine. Now, for the sake of full text search and other facilities, I would like to upgrade this to SQLEXP2005Advanced. My questions are: 1. Shall I need to uninstall SqlExpress2005 first to install SqlExpress2005 2. How I can take backup of existing databases on SqlExpress2005 so that I can immediately restore them on SQLEXP2005Advanced Thanks in advance for any help in this regard.... Regs Tony No uninstall is required. When you run the SQLExpress Advanced setup it will ask you to select either a default instance or a named instance. Click the button to view existing instan ...Show All
Windows Forms Disable PropertyGrid swallowing ctrl+z command keys?
Hi there, I have an undo/redo framework within my app but if a PropertyGrid control has the focus, it will swallow the ctrl+z keys and either perform toggling undo/redo if an item is being edited or nothing at all. I would like to disable this behaviour so that the containing form can handle multi-level undo/redo. I cannot define custom editors for every field type because the property grids need to be used for editing external types. Any ideas how to do this Thanks in advance, Duncan Oh I see, you actually get a KeyDown event not a KeyPreview event. Problem solved. ...Show All
SQL Server call a remote procedure
how can i call a remote procedure with out using linked server can i use open rowset or something I need to return a temp table Joey: Would it be acceptable to implment this with a "linked server" but without full linked server capability -- similar to the "remote server" of old SQL 7 You could do this by only allowing the "RPC" feature and NOT allowing the "Data" feature available from "linked server". I realize this is a compromise to your request but this might be a good option in this case. Then you could execute the procedures as described by Barry. Dave ...Show All
Windows Forms Halting another installation with C#
Lets say I have my program running in the background and I execute a setup.exe file and then the program halts the "install setup" showing information about what I'm about to install How can I see the difference between a setup install and lets say a normal application like winamp when it is executed Basicly I just want my program to take control whenever I try to install something new to my computer. Is it possible Appreciate all the help I can get! / David Hi Alanu Your mind game is worth of thought. I imagine that your need a same kind solution as used by virus scanners. However, now you are not hunting virus fingerprints inside programs. The scanner’s database now has every common ...Show All
