DanTanzer's Q&A profile
Windows Forms how can i make the embedded control resize itself?
i had been making the embedded control fire an event the page could catch, then the page would read the size from the control, and do some DHTML to set the <object> tag to the new size. the problem is that this requires additional security,&nb ...Show All
Visual Studio 2008 (Pre-release) Many-to-many relationship keys in DLinq
When mapping a many-to-many relationship, if the two foreign-key holding fields on the joining table are marked IsIdentity="true" then DLinq throws an error when attempting to traverse the relationship: A first chance exception of type 'System.InvalidOperationException' occurred in System.Data.DLinq.dll at System.Data.DLinq.ProviderBase.DeferredSourceReader`1.QueryableLink.BuildQuery() at System.Data.DLinq.ProviderBase.DeferredS ...Show All
SQL Server How to create Merge Replication with latest update always from subscribers
Hi , I am trying to create Replication Topology (Merge Replication) like below. Subscriber1 --> Publisher <-- Subscriber2. I have created both subscribers with Subscription Type as Server with Priority as 75. I am updating the Column A of Row_10 in Subscriber1 on time say 11 am. After i am running the Starting synchronizing agent from Subscriber1. The value propagated to Publisher now publisher contains the latest value in Colum ...Show All
Visual Studio Will VS 2005 coexist with VS 2003?
I am about to rebuild my computer so that I have a fresh machine for Visual Studio 2005 (I had the RC installed until now). Once I install everything (including VS 2003) will Visual Studio 2005 install fine and will both Visual Studios work as expected The problem is solved already. After installing .Net framework 2.0, there is one more tab named "ASP.NET" in the IIS Web Site Properties dialog. Change the ...Show All
Visual FoxPro Need help Database trigger
Hi I have been tasked to convert an old Clipper app to Foxpro Ver 9.0. The old software has 2 fields in all the databases one called ChangedOn and one called DeletedOn. These fields hold the date,time,computer name, and login name of the machine and user. These fields were updated anytime a record was changed or marked for deletion. I would like to use the database triggers to update these fields because of the numerous place ...Show All
Windows Forms Error in OleDBConnection : Object reference not set to an instance of an object
I am running the following code. It executes when the value of variable i is 1 and when the loop continues and value of i becomes 2 i am getting error "Object reference not set to an instance of an object" in the cmdSearch.Comman ...Show All
Visual Studio Team System how to manage the test case ?
how to manage the test case save it as a word file into the test item or other measures Thanks for your help! Hi Zhayanjun, I'm not sure I understand your question, so please reclarify if my response doesn't answer what you are looking for. Visual Studio Team Test has support for many different types of tests, including a Manual Test. The Manual Tests are stored as either ...Show All
Software Development for Windows Vista How to persist a workflow
Hi, Having added the SQL persistance service how can I force my workflow to persist as it enters each activity Ta in advance, Michael M. Sounds like a good candidate for a tracking service. PersistWorkflowOnTransitionService It also sounds like a good candidate for a new property\mechanism similar to 'UnloadOnIdle'. PersistOnActivityTransition ...Show All
Windows Forms Data Replication???
I wasn't sure where to post this but I figured I stud a better chance of getting an answer here than anywhere. I'm in the process of trying to build a website that will tie in with our point of sale system. The problem I'm trying  ...Show All
Visual Basic Form Focus Issues
First of all, I am using the .NET 2.0 framework with Visual Studio 2005. I have two forms. One is a form with a TreeView control on it (used as a menu - kindof a favorites list) and the other is a form with a WebBrowser control on it. The TreeView_Click event fires up the other form with the link passed to it via the Node. If the user clicks the TreeView and the form is already open with that link in it, it is supposed to set focus to the ...Show All
Visual Studio Team System Error viewing word document from changeset or source control item history
If I try to view a word document associated with a change set or view the history of a word document and choose to view an older version, I get the error message: "No application is associated with the specified file for this operation" However, if I choose to view the latest version of the file from source control explorer, it works fine. Anyone got any ideas on what I need to do to get this working Thanks, Rod ...Show All
.NET Development Best practices with SQL and C#
Premise: A standard customer database program with INSERTS, UPDATES, SELECT, etc. Since data access is going to be used on a frequent basis, how best to code the SQL portions 1) Hard code the SQL into a class, many different classes for multitude of tables, maintain as a stored procedures, etc. 2) Is it best to open the connection just before the SQL call and close immediately after Thanks in advance, Lance ...Show All
.NET Development How to recognise different paths refer to same file?
Two different paths may refer to the same file, e.g. C:\Temp\MyFile.txt, \\MyPC\C$\Temp\MyFile.txt . Is there a way of comparing such paths, and determining whether they actually do refer to the same file (in VB.NET) Hi! System.IO.Path.GetFullPath() can help when using relative paths. For true mapping including network and web servers - hmm, I don't know such method, but I think it shouldn't exist - different ...Show All
Visual C# .Net passport
Is there any way to integrate with .Net passport and check the user's .Net passpoert (in web or win) You need the Passport Software Development Kit, there is a great article on MSDN how this all works: Secure an ASP.NET Application by Using Microsoft Passport . ...Show All
Visual Studio Tools for Office Multithreading in VBA for Excel
How do you Multithread in VBA for Excel I know how to do it in Visual Basic Studio but I cant get it to work for Excel Is there a certain reference I need There is very limited information on the web about multithreading in Excel. The web also says Excel Visual Basic 6.3 has multithreading capabilities. Thanks If anyone has a simple example, such as two drawings moving simultaneously (not turn based, that appears to be simultan ...Show All
