473,395 Members | 1,571 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

TreeView Focus

I use the treeview to open a new form but the treeview reclaims focus after
MouseUp. Any solutions to this problem?

Oct 20 '05 #1
3 1792
I thought that there was a 2 day turnaround in this newsgroup? Guess I was
misinformed.

"Dave" wrote:
I use the treeview to open a new form but the treeview reclaims focus after
MouseUp. Any solutions to this problem?

Nov 22 '05 #2
Hi Dave,

You will often get answers very quickly in the newsgroups. There are lots
of smart people who frequent here. However, for the most part it is peopled
by volunteers so there are no guarantees.

I'm not sure I understand this question. Are you saying the tree control
takes focus from the form simply by moving the mouse up? If that is
happening is there possible some code in your program that is setting the
focus to the tree again perhaps in a SetCursor() or MouseMove() call or
something like that? Perhaps posting more information would help to spark
other people's comments.

Tom

"Dave" <Da**@discussions.microsoft.com> wrote in message
news:6E**********************************@microsof t.com...
I thought that there was a 2 day turnaround in this newsgroup? Guess I was
misinformed.

"Dave" wrote:
I use the treeview to open a new form but the treeview reclaims focus
after
MouseUp. Any solutions to this problem?

Nov 22 '05 #3
Thank you for your response.

No, I am not doing anything to return focus to the treeview. I find it
impossible to:
a. Click the tree view node
b. Open a New form based on the Click event.
c. Have focus remain on the newly opened form.

It seems that the control itself will not release focus when a node is
clicked.

Any ideas?

"Tom Serface" wrote:
Hi Dave,

You will often get answers very quickly in the newsgroups. There are lots
of smart people who frequent here. However, for the most part it is peopled
by volunteers so there are no guarantees.

I'm not sure I understand this question. Are you saying the tree control
takes focus from the form simply by moving the mouse up? If that is
happening is there possible some code in your program that is setting the
focus to the tree again perhaps in a SetCursor() or MouseMove() call or
something like that? Perhaps posting more information would help to spark
other people's comments.

Tom

"Dave" <Da**@discussions.microsoft.com> wrote in message
news:6E**********************************@microsof t.com...
I thought that there was a 2 day turnaround in this newsgroup? Guess I was
misinformed.

"Dave" wrote:
I use the treeview to open a new form but the treeview reclaims focus
after
MouseUp. Any solutions to this problem?


Nov 22 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Franck Pommereau | last post by:
Hi all, I'm building a PyGTK interface in which I would like that no widget would be able to get the focus (and so to be activated by pressing the Return key). For this purpose, for each widget,...
1
by: Rasmus | last post by:
I need to grab focus to a specific node i my treeview when I click on my listbox. Here's the code that differs between the different event i the listBox: private void...
0
by: Elliot | last post by:
The following code creates 2 node objects in a treeview control. When I click on the second node, a process object corectly launches "http://www.cnn.com" but focus immediately returns to the...
1
by: iqbal | last post by:
Hi, I am writting an application in outlook style which has Left Panel and a Right Panel. I have Treeview COntrol in left panel, and I load the forms in right panel on AfterSelect event of the...
3
by: Kay | last post by:
Hi all, Can anyone tell me how do I set focus on a particular treenode at run time? If you need to know what I'm try to do please read on ... I have a treeview to represent a Country/Product...
1
by: mongphong28 | last post by:
Hi, I'm using a treeview as a menu, and when the user clicks on a node I want the focus to set to a control (ie textbox) in a panel to the right. The problem I'm having is the focus will not...
2
by: bg_ie | last post by:
Hi, I have a treeview where the user selects a node before editing it. The problem is that when the user clicks on the text box to edit the node, the treeview loses its focus and the node is no...
18
by: =?Utf-8?B?TGkgV2VuZw==?= | last post by:
Hi, Is there a way for TreeView to have multiple selections? But I am not talking about its checked boxes. I want a way similar to ListView with MultiSelect = True. So I can use or key and...
1
by: =?Utf-8?B?TG9yZW4=?= | last post by:
I’m having a couple of problems using the TreeView control on a windows form. I feel as if I’m missing something very obvious, but I not seeing it! Any suggestions would be appreciated. 1....
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.