How to open the TFS "View History" window from a VSPackage? - envdte

I'm writing a VSPackage for Visual Studio that contains a tool window to display a list of items from TFS. When one of the items is clicked, I'd like to open the "View History" window. How can this window be opened programmatically?

Microsoft.VisualStudio.TeamFoundation.VersionControl.dll contains this functionality. I was able to open the history window with the following code:
VersionControlExt versionControlExt = dte.GetObject("Microsoft.VisualStudio.TeamFoundation.VersionControl.VersionControlExt") as VersionControlExt;
versionControlExt.History.Show("$/Path/To/Item", VersionSpec.Latest, 0, RecursionType.Full);

Related

Can't create new project in QT Design Studio because of the extra large size of "Create New Project" dialogue Box. And also can not resize it

I want to create a new project in the QT design studio. But whenever I click on the "create new project" button it opens an extra-large "New Project" titled dialogue box. Because of this, I can't reach the "Create" button, nor can I resize it.
How can I resize the window or reach the "create" button otherwise?
You could try using some Win key combinations to rearrange your window.
Windows Support

Window PopUp And Robot Framework

I have a case where I have to validate if I click on upload button, window popup appears to select the file.
Can anyone please help me in doing this using robot framework.
If you only use a Windows interface, you can use AutoIt Library that provide keyword that can do what you need to do, here are the steps to install it:
Install Pywin from this link https://sourceforge.net/projects/pywin32/files/pywin32/Build%20218/pywin32-218.win32-py2.7.exe/download
Download the AutoIt Zipfile from here:
https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/robotframework-autoitlibrary/AutoItLibrary-1.1.zip
Install it as Library (If you don't know how, come back to me and i'll give you the steps)
Now you can use this keywords to upload your file:
wait for active window |WindowTitle="title of the upload window"
win active | "title of the upload window" | Open
send | "yourfile.extesion"
sleep | 1
control click | "title of the upload window" | Open | [CLASS:Button; INSTANCE:1] | LEFT
Hope this helped you.
Regards,
I'd recommend using Choose File. Here's a manual example of a File Upload that I had to do with Robot Framework.
Click Add File button on website.
Click Upload File button on website popup menu.
Click [fileName] on the OS GUI popup.
Click Upload on the OS GUI popup.
Click Upload on the website popup menu.
Click Cancel on the website popup menu.
Here's the code I used to do it.
Click Button ${ADD_FILE}
Choose File ${FILE_UPLOADS} ${DEFAULT_FILE}
Click Button ${UPLOAD_BUTTON}
Click Button ${CANCEL_BUTTON}
Notice that Choose File saved me two steps, including going outside the DOM. A huge advantage of this is that you can run this in one window while your focus is on a different window.

Visual Studio 2015 "Quick Find" goes away when switching tabs (files)

In the Visual Studio 2015 IDE, QuickFind has changed. While I find it irritating that it only has one arrow and a dropdown for forward/back/all, the biggest problem is that it goes away when I click on a new tab (file).
Old Process:
Select a a control from an aspx page
Ctrl-F to get it into QuickFind
Click on the tab for the aspx.vb page
Click the arrow to step through the places that the control is referenced
Current Process:
Select the control
Ctrl-F to open the QuickFind
Click the arrow to “find” the thing I’ve selected (or else it won’t be in the dropdown list later)
Click on the tab for the new page
Ctrl-F again to open the QuickFind
Click the dropdown for find history and select the thing I’m searching for
Click the arrow to actually perform the find
Further, QuickFind seems to be missing from Productivity Power Tools 2015.
Am I missing a setting somewhere?
I am using asp.net and vb.

Visual Studio: Missing datetime picker

So I am trying to add a date time picker to my web application within Visual Studio, but it turns out I cant see it in the tool box. I am running VS 2012
If I go into the tool box and try and add it 'choose items > .net framework components > Find datetimepicker it is selected there!!!
Any reasons why I cant see it, or is there a way I can manually add this?
If you want to use Date Picket in your web application,you can download Aajx Toolkit based on your framework version 3.5 or 4.0.
After downloading the Aajx Toolkit,unzip the folder and find the.dll file.
Now You have to add reference of it into your application.
Right click on your application tools and select add new tab and name it 'Ajax Tools'.
Right click on that tab and select 'Choose Items'.
Popup window will come and click on browse button,select that unzipped .dll file and click on 'Ok' button.
You can see reference is added into your bin folder and see the new Ajax controls under the new 'Ajax tools' tab.
you can find Calender Extender control over there and you can use it by simply drag and drop into your page.

How to add date picker control to my toolbox?

I am using visual studio 2005 and I have added Datepicker dll in my bin folder of sample project.And By doing right click on solution Explorer Add:references,choosed the that dll.But I want display that control in my toolbar.Does I need to create tab for it.Or it automatically get created.or need to go to toolbox then right click anywhere in the toolbox area click choose item and then select server control dll from there and it should appear in toolbox.Suppose if I done this for my sample project.But when next time I am using other project using vs 2005,that control can be seen in toolbar.I know we have to add reference into project for dll but for control need to create tab once again?
You will have to open up a new instance of visual studio right click your toolbox, select Add tab, then you right click the newly added tab and select Choose items, browse to the dll and add the dll, this should add the date picker for all projects, at least it worked for me

Resources