PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Framework Forms Re: TreeView, TreeView.HideSelection=false, Window.Minimize

Reply

Re: TreeView, TreeView.HideSelection=false, Window.Minimize

 
Thread Tools Rate Thread
Old 25-06-2003, 06:46 AM   #1
NotYetaNurd
Guest
 
Posts: n/a
Default Re: TreeView, TreeView.HideSelection=false, Window.Minimize


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
>
>



  Reply With Quote
Old 26-06-2003, 05:09 PM   #2
Shardool Karnik
Guest
 
Posts: n/a
Default Re: TreeView, TreeView.HideSelection=false, Window.Minimize

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
> >
> >

>
>



  Reply With Quote
Old 30-06-2003, 05:56 PM   #3
Shardool Karnik
Guest
 
Posts: n/a
Default Re: TreeView, TreeView.HideSelection=false, Window.Minimize

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
> >> >
> >> >
> >>
> >>

> >
> >
> >.
> >



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off