Answer Questions
Nightmare_BE Confirm Deletion of a Record
I have a datagridview with a binding navigator with a delete button (the red X). I want a message box to appear when the user clicks on the delete button to confirm whether they in fact want to delete the record. I have the following code so far: Private Sub BindingNavigatorDeleteItem_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BindingNavigatorDeleteItem.Click If MsgBox( "Are you sure you want to delete selected record(s) " , MessageBoxButtons.OKCancel, "Confirm Delete" ) = Windows.Forms.DialogResult.Cancel Then End If End Sub As you can see, I do not have anything after the Then line because I can't figure out what code I need to cancel the event. Of course, th ...Show All
Gabriel Muñoz Luna ASP Unit Test with Forms Authentication
I have a page that I'm trying to run unit tests on, this page is on a web site that is protected by Forms Authentication. When I run the test the TestContext.RequestPage property is the Login page for the site. Is there any way to get past this either by calling FormsAuthentication.Authenticate somewhere, or by supplying the username and password to the test before it calls into the web app No it's not possible to disable authentication Thanks Dominic, > The reason the Ordered test fails is because the cookies/creds/session used in the web test are > not passed through to the unit test. This is because a) it's a different test b) the unit test does't > keep cookies around in general, let alone from a different te ...Show All
Tryin2Bgood Exception error, how to solve or handle it?
Hi, could someone tell me whats the meaning of the error and how can I solve it. Thanks. here my code: public static void ReadData() { string connectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\FYPproject.mdb" ; string queryString = "SELECT Sample_Number,Pump_Speed FROM 2Pumps" ; using ( OleDbConnection connection = new OleDbConnection (connectionString)) { OleDbCommand command = new OleDbCommand (queryString, connection); connection.Open(); OleDbDataReader reader = command.ExecuteReader(); <<Error on this line while (reader.Read()) { MessageBox .Show( String .Format( "{0} , {1}" , reader[0], reader[1]) ...Show All
Suryakant Verma Problem when installing .NET Framework
Well, my setup file is continually stalling when I try to install Visual C++ 2005 Express, so I saw in the FAQ that installing .NET Framework 2.0 sometimes helps. So I try that. However, my install process freezes at this point in the install: http://img.photobucket.com/albums/v280/Cheesy74/curses.png Anyone know why I've tried to install it again after doing what you've said, but the exact same thing happens. It freezes at the exact point I have a screenshot of in my first post. I think there was a miscommunication. I've tried manual install with VC++ express, but the setup file just runs in the background, no window pops up. I read in the FAQ that this migh ...Show All
Deepu_a various Vendors Like VSTS for AML
Can I get the Evaluations(Comparsions in all aspects) between different Vendors for AML Different Vendors for the Colobrative Environment like VSTS ALM : (Application LifeCycle Management) Vendors : Microsoft VSTS IBM Rational Purify Plus, Rational Software Modelar Compuware DevPartner Bornald Together Can I get evaulation between different vendors and how far VSTS stands in this Sudheer Different Vendors for the Colobrative Environment like VSTS ALM : (Application LifeCycle Management) Vendors : Microsoft VSTS IBM Rational Purify Plus, Rational Software Modelar Compuware DevPartner Bornald Together ...Show All
Mark Arrildt Unable to get Email alerts anymore
Hi, We are not receiving any email alerts. We get this message in the Event Viewere on the server: TF53010: An unexpected condition has occurred in a Team Foundation component. The information contained here should be made available to your site administrative staff. Technical Information (for the administrative staff): Date (UTC): 2/21/2007 4:39:48 PM Machine: DALENG01 Application Domain: /LM/W3SVC/3/Root/services-2-128165495697877397 Assembly: Microsoft.TeamFoundation.Server, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a; v2.0.50727 Process Details: Process Name: w3wp Process Id: 4612 Thread Id: 5756 Account name: JDA_DOMAIN\tfsservice Detailed Message: TF50282: Could not conne ...Show All
Reggie Chen Best Practice question regarding TFS branching
I am working on a project involving the development of a prototype. There are two different database schemas being used for different use case scenarios. The project code for the different use cases is the same except for a database access class. My question is, what is the best way handle this using VSTS and TFS Should I have two different projects with the database access class branched from one project to the other Should I set up the files in project A, and in project B set them up as links to the files in project A (since they are the same except for the database access module). Or is there a better way Any help would be appreciated. Thanks. Team Projects are collection of lot of artif ...Show All
SynergyNT How to get the content of changeset using Object Model
Hi, I'm using Object model to get the content of changeset - the files that included in some specific changeset. I'm using the Changeset class but I couldn't find how to get the files that associated to the changeset. Can any one pass the code how to get it Thanks in advance, Shmulik. Hello, Changeset class contains collection Changes, each Change contains Item field which gives you local or/and server path (depending on the change). Hope this helps Yes, Thanks. ...Show All
oasisman MDI Child Form Problem (not showing)
I am having difficulty with a MDI child/parent relationship for my C# winforms project. I currently have a several controls (button, menu strip, etc.) that call the same function to open a new child form. The main form has the propery of MDI container as it was set on the properties window (not programmatically). However, when I click on the button, the form does not show up. If I make the form so it is not an MDI child (by commenting the second line of code below), it does pop up just fine...but that's not what I want. Here is the code that I have for the function. I have just recently added the .focus method because I saw that mentioned on another forum post and it didn't work. [code] frmSearch frmSearch = new frmSearch(); frmSearch.Mdi ...Show All
Ajaykr Instance Failure error displayed when attempt to create a new SQL Server 2005 database in VSTS db pro
I put .\MYSQLSvr2005 in the design-time validation database once I attempt to create a new project, at the last step and expection thrown with Instance Failure. I have SQL Server 2000 and Analysis Services 2000 install as default instance. My SQL Server 2005 and Analysis Services 2005 installed as named instance (MYSQLSVR2005). If i put the full name of my instance (eg. xxx-xxx\MYSQLSVR2005) as the design time validation database, DB Pro throws an exeception saying the instance cannot be connected. If I use the Tool --> Connect to database, I can connect to my SQL Server 2005 database. VSTS has no documentation at all on how to setup DBPro configuration. Very frustrated with it currently :( ...Show All
MJMatthew Screen Flicker
I have a form with many small images. When it loads, the screen paint slowly ( ) travels from bottom to top in a very visible manner. In Excel I can use "Application.ScreenUpdating = True" before a lengthy recalc to avoid this same type problem (and also to speed-up the recalc) Is there a similar property in VB.Net The images are grouped on Panels. I had thought to hide the panels before (possibly in the load event) and unhide later. I can't determine where I might set the visible property to true. Any suggestions Roger Three properties to use when loading/painting to stop flicker: 1. DoubleBuffer = True 2. SuspenLayout and ResumeLayout If it's just images that you need, your best bet is t ...Show All
VK2GWK Delete team project and remove from SCE?
I deleted two team projects one got removed from SCE and one didn't How do I get rid of the one that didn't and why did one get removed and not the other I understand there is some sort of bug related to this but why one and not the other and there must be a way to get rid of that one that is left right If not do we now know if this is fixed in SP1 You can do it with 'tf perm'. I'm not sure it's possible from the UI. great..yaar.. ...its really funny...i think since you are the administrator and created the team project and then deleted the same...that's y...but others won't have the permission in SCE.... and my view in this regard..is the refresh is not ...Show All
mohandasgandhi bug?
os:winXP home edtion language:simplified chinese when I open my project builded yesterday,rebuild it ,find an error occured:fatal error C1093: API call 'ImportFile' failed '0x80070003' : ErrorMessage: 系 找不到指定的路 (The system can't find the directory properly)。confused!!! definitly it worked very well yesterday,when I double clicked the the message,find it can't find "stdafx.h",but it do worked well yesterday,why after one day it cound't be compiled (This error happened second time since I install vc2005 express edition). JinMengCheng, I just remembered that a while ago I moved the whole project dir (including stdafx.h) Putting it back in the original place 'fixed' the problem. Although I can't find any reference ...Show All
Ravencraft Error: No Pending Changes - But there are changes!
Hello, Sometimes we're experiencing the following annoying behaviour with our TeamFoundation Server (RTM) and the TeamExplorer: A file was checked out and changed, and if I try to check in the changes ("Check in pending changes..."), TeamExplorer says "Error: No Pending Changes" and does nothing. This is not safely reproducible though. But it still gives our team a really bad feeling about migrating to TeamSystem (we're at it right now, and we're running into several small glitches). Whatever, right-clicking the directory and selecting "Refresh" solves the problem. Has anybody else experienced this problem and knows why or when it appears Best regards, Martin DonMartin ...Show All
RavindraDonkada Build solution (in VS 2005) passes on build machine. Team buid lose some references
In Visual Studio 2005 (on team build machine), I made the build .sln file without error. In Team Build, I included this solution file to my build type. When I started team build, I got the following errors: … Target CoreCompile: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Csc.exe /noconfig /nowarn:1701,1702 /errorreport:prompt /warn:4 /define:DEBUG;TRACE /reference:D:\TeamBuild\... ... IShellView.cs(19,35): error CS0246: The type or namespace name 'IView' could not be found (are you missing a using directive or an assembly reference ) &nbs ...Show All
