PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
Re: TreeView, TreeView.HideSelection=false, Window.Minimize
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
Re: TreeView, TreeView.HideSelection=false, Window.Minimize
![]() |
Re: TreeView, TreeView.HideSelection=false, Window.Minimize |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
Hi shardool,
Itz happening Perfectly for me ..means when i minimize and again restore...beforeselect/afterselect is nto called ..... cast a few lines of code in here... Regards. "Shardool Karnik" <Shardool@hotmail.com> wrote in message news:#c7h7lZODHA.1720@TK2MSFTNGP11.phx.gbl... > I have set the HideSelection Property to false... > A problem I am facing is .... when I minimize/maximize the form > the treeview calls the method BeforeSelect and AfterSelect, which causes > problems.... > > Is there a work around this problem ?? I need the node to be always selected > .... > > > Regards, > > - Shardool Karnik > > |
|
|
|
#2 |
|
Guest
Posts: n/a
|
hmmm...I switched to onclick instead of onchange ....
well I can't really put my code here since its just too big ... however I can explain the situation and see if that helps ... I have my business/contacts in a tree on the left panel ... relative information on the selected node is displayed on the right ... now, when a user modifies a contact/business and doesn't save then, clicks on a node..the user will be prompted to save the contact/business before changing the node... now, I have to prompt to save....I cannot autosave when a user enters some info and doesn't save, then minimizes, the user will be prompted to save... this gets very annoying when the users are trying to copy informatiuon from another window and accidently minimize my program .. the save prompt keeps on coming since the treenode is unselected and selected automatically which triggers the node change event ... don't sweat on it if you aren't sure what I am talking about ... however, thanks for your help ... - Shardool "NotYetaNurd" <NotYetaNurd@Matrix.com> wrote in message news:enHayVuODHA.3768@tk2msftngp13.phx.gbl... > Hi shardool, > Itz happening Perfectly for me ..means when i minimize and again > restore...beforeselect/afterselect is nto called ..... > cast a few lines of code in here... > > Regards. > > "Shardool Karnik" <Shardool@hotmail.com> wrote in message > news:#c7h7lZODHA.1720@TK2MSFTNGP11.phx.gbl... > > I have set the HideSelection Property to false... > > A problem I am facing is .... when I minimize/maximize the form > > the treeview calls the method BeforeSelect and AfterSelect, which causes > > problems.... > > > > Is there a work around this problem ?? I need the node to be always > selected > > .... > > > > > > Regards, > > > > - Shardool Karnik > > > > > > |
|
|
|
#3 |
|
Guest
Posts: n/a
|
Hey Andreas,
That sounds viable. I will have to try it sometime later since I will have to change my events to onchange from onclick. Will let you know once I do that. Thanks for your help. If you need anything, don't hesistate to ask. Regards, Shardool Karnik, "Andreas Kroll" <AKR@NTT-SW.DE> wrote in message news:084201c33c93$48887f70$a601280a@phx.gbl... > Hi! > > Why don't you save the previously selected node and > compare it to the node in BeforeSelect/Afterselect? > If the nodes are equal, you don't need to call your code > to save. > > Take care > Andreas Kroll > > > >-----Original Message----- > >hmmm...I switched to onclick instead of onchange .... > > > >well I can't really put my code here since its just too > big ... however I > >can explain the situation and see if that helps ... > > > > > >I have my business/contacts in a tree on the left > panel ... > >relative information on the selected node is displayed > on the right ... > > > >now, when a user modifies a contact/business and doesn't > save > >then, clicks on a node..the user will be prompted to > save the > >contact/business before changing the node... > > > >now, I have to prompt to save....I cannot autosave > > > >when a user enters some info and doesn't save, then > minimizes, the user will > >be prompted to save... > > > >this gets very annoying when the users are trying to > copy informatiuon from > >another window and accidently minimize my program .. > >the save prompt keeps on coming since the treenode is > unselected and > >selected automatically which triggers the node change > event ... > > > > > >don't sweat on it if you aren't sure what I am talking > about ... > >however, thanks for your help ... > > > > > > > >- Shardool > > > > > > > > > > > >"NotYetaNurd" <NotYetaNurd@Matrix.com> wrote in message > >news:enHayVuODHA.3768@tk2msftngp13.phx.gbl... > >> Hi shardool, > >> Itz happening Perfectly for me ..means when i minimize > and again > >> restore...beforeselect/afterselect is nto called ..... > >> cast a few lines of code in here... > >> > >> Regards. > >> > >> "Shardool Karnik" <Shardool@hotmail.com> wrote in > message > >> news:#c7h7lZODHA.1720@TK2MSFTNGP11.phx.gbl... > >> > I have set the HideSelection Property to false... > >> > A problem I am facing is .... when I > minimize/maximize the form > >> > the treeview calls the method BeforeSelect and > AfterSelect, which causes > >> > problems.... > >> > > >> > Is there a work around this problem ?? I need the > node to be always > >> selected > >> > .... > >> > > >> > > >> > Regards, > >> > > >> > - Shardool Karnik > >> > > >> > > >> > >> > > > > > >. > > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

