As long as the target machines you intend to run your application on have
Team Explorer installed on them, yes it's possible.
I've actually got a project out on CodePlex that I integrated their form
into my application already if you need a working example.
http://www.codeplex.com/NException
Check out the EditTFSWorkItemForm class, it should have a good example of
how to use it. Also, from my experience with TFS and custom applications you
*will* run into problems with using their controls on forms. The controls
you'll be using aren't registered in the GAC *cough* so your application
will have problems resolving where the assemblies are located when using
them on your target machines. That's the workaround I came up with to ensure
the assemblies could be resolved properly (it's inside the Program.cs file
in the project I directed you to)
static Assembly CurrentDomain_AssemblyResolve(object sender,
ResolveEventArgs args) {
AssemblyName name = new AssemblyName(args.Name);
using (RegistryKey key =
Registry.LocalMachine.OpenSubKey(@"Software\Micros oft\VisualStudio\9.0")) {
// Locate the installation directory for Visual Studio.
string installDir = key.GetValue("InstallDir").ToString();
string privateAssembliesFolder = Path.Combine(installDir,
"PrivateAssemblies");
string assemblyFile = Path.Combine(privateAssembliesFolder,
name.Name + ".dll");
if (File.Exists(assemblyFile)) {
return Assembly.LoadFile(assemblyFile,
AppDomain.CurrentDomain.Evidence);
}
}
return null;
}
"SasaT" <Sa***@discussions.microsoft.comwrote in message
news:F9**********************************@microsof t.com...
Hi people...
I integrated WorkItemFormControl with my application and it works as
expected except one little detail: if some work Item have another WI or
Changset attached as a link (Links tab), linked items will always be
opened
as HTML read-only documents.
If you do the same action from the Team Explorer, result will be alive
Work
Item opened in a new WorkItemFormControl window.
Is there a way to simulate Team Explorer functionallity from the custom
form
with hosted WorkItemFormControl control?
Thanks in advance,
Sasa