Tuesday, April 10, 2007
RSS Reader: Day 2
I spent quite a bit of time today tracking down why I can't delete a row from the Folders table. I discovered that the QueryBuilder is not generating the delete code. I then tried to trick the QueryBuilder into creating the code, but was unsuccessful. I finally coded the Delete command by hand. I posted a message about it on the UT and Michael Mclain responded that I don't want to use the QueryBuilder anyway and to look at the TableAdapter Wizard in VS 2005. In trying to solve the problem, I looked at four different books and all showed using the QueryBuilder.
After that was working, I returned to wiring up the tree view. I found that it has a ContextMenuStrip property for each Node for handling Right Click events. I had been trapping the click in code, figuring out if it was right or left click, and if right click, displaying the proper context menu. I hooked up the ContextMenuStrip property and took out the code I had written.
I then started to look at how to determine when a node is selected and which node is currently selected. The AfterSelect event method looks to be just what I need. I put in some test code to display the selected item in the browser control.
Tomorrow I need to work on the New Subscription dialog and the RSS feed parser to pull apart the feed and save its different pieces. I did some preliminary experimenting on the parser, so I have an idea of where to start on it.
After that was working, I returned to wiring up the tree view. I found that it has a ContextMenuStrip property for each Node for handling Right Click events. I had been trapping the click in code, figuring out if it was right or left click, and if right click, displaying the proper context menu. I hooked up the ContextMenuStrip property and took out the code I had written.
I then started to look at how to determine when a node is selected and which node is currently selected. The AfterSelect event method looks to be just what I need. I put in some test code to display the selected item in the browser control.
Tomorrow I need to work on the New Subscription dialog and the RSS feed parser to pull apart the feed and save its different pieces. I did some preliminary experimenting on the parser, so I have an idea of where to start on it.
Subscribe to Posts [Atom]