Click here to Skip to main content
15,905,504 members
Home / Discussions / C#
   

C#

 
GeneralRe: WebBrowser control steal focus on page load Pin
harold aptroot10-Oct-09 22:31
harold aptroot10-Oct-09 22:31 
GeneralRe: WebBrowser control steal focus on page load Pin
OriginalGriff10-Oct-09 22:53
mveOriginalGriff10-Oct-09 22:53 
GeneralRe: WebBrowser control steal focus on page load Pin
harold aptroot10-Oct-09 23:07
harold aptroot10-Oct-09 23:07 
GeneralRe: WebBrowser control steal focus on page load Pin
OriginalGriff10-Oct-09 23:27
mveOriginalGriff10-Oct-09 23:27 
GeneralRe: WebBrowser control steal focus on page load Pin
harold aptroot10-Oct-09 23:40
harold aptroot10-Oct-09 23:40 
GeneralRe: WebBrowser control steal focus on page load Pin
harold aptroot11-Oct-09 5:39
harold aptroot11-Oct-09 5:39 
QuestionList tree help! Pin
venomation10-Oct-09 9:56
venomation10-Oct-09 9:56 
AnswerRe: List tree help! Pin
Mycroft Holmes10-Oct-09 12:43
professionalMycroft Holmes10-Oct-09 12:43 
I presume there is a valid reason not to use a standard treeview or one of the many commercial controls. Infragistics does one with an outlookexpress style which combines a treeview and a listview. There is an excellent one here that is also opensource A Much Easier to Use ListView[^]

If you insist on rolling your own (not a bad thing) then you need to understan recursive structures, you need 2 methods. This assumes there is a heirarchical relationship in your collection.

LoadBaseNodes(Trreeview, Collection)
Create the top level of nodes into the treeview
Call LoadeSubNodes(ThisNode, Collection)
Add node to treeview

LoadeSubNodes(ThisNode, Collection)
Create the nodes that are children of ThisNode
Add nodes to ThisNode
Call LoadeSubNodes(ThisNode, Collection) <= this is recursive (calls itself)

Never underestimate the power of human stupidity
RAH

GeneralRe: List tree help! Pin
venomation10-Oct-09 12:59
venomation10-Oct-09 12:59 
AnswerRe: List tree help! Pin
Nicholas Butler11-Oct-09 1:14
sitebuilderNicholas Butler11-Oct-09 1:14 
GeneralRe: List tree help! Pin
venomation11-Oct-09 3:13
venomation11-Oct-09 3:13 
QuestionPageSetupDialog doesn't autoselect "US Index Card 5x8" in Page Size dropdown list Pin
Mzungu Mark10-Oct-09 9:16
Mzungu Mark10-Oct-09 9:16 
QuestionDebugging a getter Pin
Hans Ruck10-Oct-09 9:03
Hans Ruck10-Oct-09 9:03 
AnswerRe: Debugging a getter Pin
Luc Pattyn10-Oct-09 11:04
sitebuilderLuc Pattyn10-Oct-09 11:04 
GeneralRe: Debugging a getter Pin
stancrm10-Oct-09 11:53
stancrm10-Oct-09 11:53 
GeneralRe: Debugging a getter Pin
Luc Pattyn10-Oct-09 12:50
sitebuilderLuc Pattyn10-Oct-09 12:50 
Questionbest way for a client/server program Pin
teknolog12310-Oct-09 8:51
teknolog12310-Oct-09 8:51 
AnswerRe: best way for a client/server program Pin
Md. Marufuzzaman10-Oct-09 8:58
professionalMd. Marufuzzaman10-Oct-09 8:58 
GeneralRe: best way for a client/server program Pin
teknolog12310-Oct-09 9:09
teknolog12310-Oct-09 9:09 
GeneralRe: best way for a client/server program Pin
Md. Marufuzzaman10-Oct-09 9:34
professionalMd. Marufuzzaman10-Oct-09 9:34 
GeneralRe: best way for a client/server program [modified] Pin
teknolog12310-Oct-09 9:49
teknolog12310-Oct-09 9:49 
GeneralRe: best way for a client/server program Pin
Xmen Real 10-Oct-09 20:31
professional Xmen Real 10-Oct-09 20:31 
AnswerRe: best way for a client/server program Pin
harold aptroot10-Oct-09 9:16
harold aptroot10-Oct-09 9:16 
GeneralRe: best way for a client/server program Pin
Md. Marufuzzaman10-Oct-09 9:21
professionalMd. Marufuzzaman10-Oct-09 9:21 
GeneralRe: best way for a client/server program Pin
harold aptroot10-Oct-09 9:28
harold aptroot10-Oct-09 9:28 

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.