473,397 Members | 2,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

WorkItemFormControl - Linked Work Items opened as HTML documents

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

Jun 27 '08 #1
3 1364
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
Jun 27 '08 #2
Hi Jeff,

thanks for helping.
I downloaded your project and checked out EditTFSWorkItemForm class, but can
not see any parameter which changes default WorkItemFormControl behaviour and
opens linked work items in a new WorkItemFormControl window instead as HTML
read-only documents.

Can you explain me which property/method call/anything ensures that linked
work items are opened as editable WorkItemFormControl controls?

Thanks,
Sasa
Jun 27 '08 #3
Ah sorry, must've been a little tired when i answered that the other day.
Can't say i've ever tried using the control to open up linked work items
before. There might be something in the TFS SDK about it, but i doubt it.

Sorry i couldn't be of more help
"SasaT" <Sa***@discussions.microsoft.comwrote in message
news:3A**********************************@microsof t.com...
Hi Jeff,

thanks for helping.
I downloaded your project and checked out EditTFSWorkItemForm class, but
can
not see any parameter which changes default WorkItemFormControl behaviour
and
opens linked work items in a new WorkItemFormControl window instead as
HTML
read-only documents.

Can you explain me which property/method call/anything ensures that linked
work items are opened as editable WorkItemFormControl controls?

Thanks,
Sasa
Jun 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Neil | last post by:
I previously posted re. this, but thought I'd try again with a summary of facts. I have an Access 2000 MDB with a SQL Server 7 back end. There is a view that is linked to the database via ODBC...
2
by: Robert McGregor | last post by:
Hi all, I've got a Front End / Back End database that was working just fine. One day i opened the FE to find that if I tried to open one of the linked tables from the database window, nothing...
0
by: Chris Bazzie | last post by:
I am using MS Access to index documents (in this case material safety data sheets), to track what departments they are used in, and to allow users to browse the actual documents that meet some...
2
by: Jill Elaine | last post by:
I am building an Access 2002 frontend with linked tables to an encrypted Paradox 7 database. When I first create these linked tables, I'm asked for the password to the encrypted Paradox database,...
6
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
3
by: sj | last post by:
I have written an application (CW.mde) with a seperate data (Data.mda) file. My Data tables are linked to CW. I want my user to be able to re-link the data.mda when they change location/path of...
0
by: Grip | last post by:
Hi, I have gone throught the group and Microsoft's online help and have seen many suggestions but I am still seeking clarity: 1. I have an excel spreadsheet. Column A contains text that may...
51
by: Joerg Schoen | last post by:
Hi folks! Everyone knows how to sort arrays (e. g. quicksort, heapsort etc.) For linked lists, mergesort is the typical choice. While I was looking for a optimized implementation of mergesort...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.