• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1403
  • Last Modified:

VB.NET IDE: TODO List

Hi,

When using VB.NET, I mark certain activities to be done as 'TODO. Using menu option View->Show TAsks->Comments, I can see all the 'TODOs. Now can I programmtically access this View->Show TAsks->Comments object? My objective is to read the TODOs and export to a CSV file.

Regards,
MI
0
vj_mi
Asked:
vj_mi
  • 2
  • 2
1 Solution
 
cubixSoftwareCommented:
Hi

You can access it but this needs to be via an Add-In. Within your add in you can have the following code, where applicationObject is the main DTE environment object

The code was from http://msdn2.microsoft.com/en-us/library/envdte.tasklist.taskitems.aspx which you can use for additional reference

==============================

        Dim win As Window = applicationObject.Windows.Item(Constants.vsWindowKindTaskList)
        Dim TL As TaskList = win.Object
        Dim TLItem As TaskItem
        Dim msg As String

        For Each TLItem In TL.TaskItems
            ' List properties of the Task Item.
            msg = "TaskItem Category property value: " & TLItem.Category & vbCr
            msg = msg & "TaskItem SubCategory property value: " & TLItem.SubCategory & vbCr
            msg = msg & "TaskItem Checked property value: " & TLItem.Checked & vbCr
            msg = msg & "TaskItem Displayed property value: " & TLItem.Displayed & vbCr
            msg = msg & "TaskItem IsSettable property value: " & TLItem.IsSettable(vsTaskListColumn.vsTaskListColumnCheck) & vbCr
            msg = msg & "TaskItem Priority property value: " & TLItem.Priority & vbCr
            msg = msg & "TaskItem Description property value: " & TLItem.Description & vbCr
            msg = msg & "TaskItem Line property value: " & TLItem.Line & vbCr
            MsgBox(msg)
        Next

================================

HTH :)
0
 
cubixSoftwareCommented:
Hi

Did this help?
0
 
vj_miAuthor Commented:
Hi,

Sorry ... Due to virus problem on my system, I did not get time to check this solution. My system had become very slow and had to first work on that. I will check tonight and update you tomorrow on this.

Regards,
MI
0
 
vj_miAuthor Commented:
Hi,

The solution suggested is working very well..... thanks a lot.

Regards,
MI
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now