473,698 Members | 2,023 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

WorkItemFormCon trol - Linked Work Items opened as HTML documents

Hi people...

I integrated WorkItemFormCon trol 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 WorkItemFormCon trol window.

Is there a way to simulate Team Explorer functionallity from the custom form
with hosted WorkItemFormCon trol control?

Thanks in advance,
Sasa

Jun 27 '08 #1
3 1377
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 EditTFSWorkItem Form 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_A ssemblyResolve( object sender,
ResolveEventArg s args) {
AssemblyName name = new AssemblyName(ar gs.Name);

using (RegistryKey key =
Registry.LocalM achine.OpenSubK ey(@"Software\M icrosoft\Visual Studio\9.0")) {
// Locate the installation directory for Visual Studio.
string installDir = key.GetValue("I nstallDir").ToS tring();
string privateAssembli esFolder = Path.Combine(in stallDir,
"PrivateAssembl ies");

string assemblyFile = Path.Combine(pr ivateAssemblies Folder,
name.Name + ".dll");
if (File.Exists(as semblyFile)) {
return Assembly.LoadFi le(assemblyFile ,
AppDomain.Curre ntDomain.Eviden ce);
}
}

return null;
}

"SasaT" <Sa***@discussi ons.microsoft.c omwrote in message
news:F9******** *************** ***********@mic rosoft.com...
Hi people...

I integrated WorkItemFormCon trol 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 WorkItemFormCon trol window.

Is there a way to simulate Team Explorer functionallity from the custom
form
with hosted WorkItemFormCon trol control?

Thanks in advance,
Sasa
Jun 27 '08 #2
Hi Jeff,

thanks for helping.
I downloaded your project and checked out EditTFSWorkItem Form class, but can
not see any parameter which changes default WorkItemFormCon trol behaviour and
opens linked work items in a new WorkItemFormCon trol 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 WorkItemFormCon trol 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***@discussi ons.microsoft.c omwrote in message
news:3A******** *************** ***********@mic rosoft.com...
Hi Jeff,

thanks for helping.
I downloaded your project and checked out EditTFSWorkItem Form class, but
can
not see any parameter which changes default WorkItemFormCon trol behaviour
and
opens linked work items in a new WorkItemFormCon trol 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 WorkItemFormCon trol 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
2634
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 and has been in place for several years without any performance problems. Recently I added a couple of fields to the output of the view, and it became very slow when scrolling. When just opened in the database window, the linked view takes about...
2
2684
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 happened (hourglass for about 2 seconds then nothing). I tried relinking the tables and got the same response. (Access even completely bombed out once with a Dr Watson failure).
0
1416
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 search criteria that they have entered. The documents are indexed, linked, and kept in a special directory. I have been asked to also provide a hard copy of the content of the database and the linked documents, on demand. What I would like to do...
2
6009
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, and the linked tables are successfully created. I use the data from these linked tables in several forms. All works great until I close the Access frontend and open it again. When I try to use the forms, I get an error message: "Could not...
6
4883
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 the html page controls the form fields that are required. It doesn't function like it's supposed to and I can leave all the fields blank and it still submits the form. Also I can't get it to transfer the file in the upload section. The file name...
3
9816
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 the data.mda. Hence, I have an button with the following: DoCmd.RunCommand acCmdLinkedTableManager The button works on the computer with Ms Access but not those that on
0
14418
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 be greater than 255 characters. 2. I have an access database. I link (not import) to the contents of the excel spreadsheet. In the design view in access, Column A has the data type "memo".
51
8626
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 for linked lists, I couldn't find one. I read something about Mcilroy's "Optimistic Merge Sort" and studied some implementation, but they were for arrays. Does anybody know if Mcilroys optimization is applicable to truly linked lists at all?
0
8674
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9157
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8895
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8861
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6518
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3046
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2329
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.