Click here to Skip to main content
15,900,378 members
Home / Discussions / C#
   

C#

 
AnswerRe: Reading text from an HTML file based on its tags. Pin
Heath Stewart28-Sep-05 7:21
protectorHeath Stewart28-Sep-05 7:21 
AnswerRe: Reading text from an HTML file based on its tags. Pin
Dan Neely28-Sep-05 6:56
Dan Neely28-Sep-05 6:56 
Question.Net Application not Runing on Test System Pin
Zishan Haider28-Sep-05 6:07
Zishan Haider28-Sep-05 6:07 
QuestionAllowing selections in only one listview at a time Pin
Dan Neely28-Sep-05 5:41
Dan Neely28-Sep-05 5:41 
AnswerRe: Allowing selections in only one listview at a time Pin
Dan Neely28-Sep-05 7:08
Dan Neely28-Sep-05 7:08 
AnswerRe: Allowing selections in only one listview at a time Pin
Heath Stewart28-Sep-05 8:09
protectorHeath Stewart28-Sep-05 8:09 
GeneralRe: Allowing selections in only one listview at a time Pin
Dan Neely28-Sep-05 8:13
Dan Neely28-Sep-05 8:13 
GeneralRe: Allowing selections in only one listview at a time Pin
Heath Stewart28-Sep-05 8:22
protectorHeath Stewart28-Sep-05 8:22 
The only way to detect programmatic vs. user-click is to get the current mouse position, translate that to client coordinates from screen coordinates, and detect if the mouse is over a particular ListViewItem. It actually gets pretty messy.

dan neely wrote:
With only 2 lvs on the form, the containerclass idea is serious overkill for my current needs/

As you know if programming, change is the only constant ( or those things declared with const Wink | ;) ) The manager idea is actually pretty simple and very flexible and is scalable for future needs. It also keeps from writing spaghetti code. The goal of object-oriented programming is to encapsulate concepts and code into re-usable classes, and the manager approach is one such way of doing that. Rather than writing similar (if not the same) code for a specific sequence every time you need it you can reuse this class and encapsulate all the selection code inside it. It's just an abstract approach to solving the problem and just one idea for handling it.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Customer Product-lifecycle Experience
Microsoft

[My Articles] [My Blog]
GeneralRe: Allowing selections in only one listview at a time Pin
Dan Neely28-Sep-05 9:03
Dan Neely28-Sep-05 9:03 
GeneralRe: Allowing selections in only one listview at a time Pin
Heath Stewart28-Sep-05 9:16
protectorHeath Stewart28-Sep-05 9:16 
GeneralRe: Allowing selections in only one listview at a time Pin
Dan Neely28-Sep-05 9:28
Dan Neely28-Sep-05 9:28 
GeneralRe: Allowing selections in only one listview at a time Pin
Heath Stewart28-Sep-05 9:30
protectorHeath Stewart28-Sep-05 9:30 
QuestionC# and SQL DB Script Pin
| Muhammad Waqas Butt |28-Sep-05 5:34
professional| Muhammad Waqas Butt |28-Sep-05 5:34 
QuestionCrystal reports Pin
Member 181155428-Sep-05 4:52
Member 181155428-Sep-05 4:52 
AnswerRe: Crystal reports Pin
dbetting28-Sep-05 9:27
dbetting28-Sep-05 9:27 
QuestionBook Review? Pin
Russell Jones28-Sep-05 4:30
Russell Jones28-Sep-05 4:30 
AnswerRe: Book Review? Pin
Dario Solera28-Sep-05 6:57
Dario Solera28-Sep-05 6:57 
GeneralRe: Book Review? Pin
Anonymous28-Sep-05 22:25
Anonymous28-Sep-05 22:25 
QuestionSystem.Xml.Document : How to write special characters in an xml file ? Pin
smashingraph28-Sep-05 3:53
smashingraph28-Sep-05 3:53 
AnswerRe: System.Xml.Document : How to write special characters in an xml file ? Pin
Dave Kreskowiak28-Sep-05 6:24
mveDave Kreskowiak28-Sep-05 6:24 
GeneralRe: System.Xml.Document : How to write special characters in an xml file ? Pin
smashingraph28-Sep-05 21:50
smashingraph28-Sep-05 21:50 
QuestionReleasing Memory Pin
dbetting28-Sep-05 3:30
dbetting28-Sep-05 3:30 
AnswerRe: Releasing Memory Pin
Guffa28-Sep-05 5:22
Guffa28-Sep-05 5:22 
GeneralRe: Releasing Memory Pin
dbetting28-Sep-05 6:24
dbetting28-Sep-05 6:24 
GeneralRe: Releasing Memory Pin
Guffa28-Sep-05 9:03
Guffa28-Sep-05 9:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.