组合框最初突出显示 [英] Combo boxes initially highlighted

查看:68
本文介绍了组合框最初突出显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有五个组合框,每个组合框都列出了一个在IDE中手工填充的项目。

每个文本属性都绑定到数据库中的文本字段。当我打开
时,最初填充数据集并显示所有这些组合框的页面

显示正确的数据,但所有这些数据都会突出显示,就好像它们有

焦点。


如果我点击然后点击另一个控件,则突出显示消失。我

有一个标签界面,如果我导航到另一个标签并返回

亮点已从所有组合框中消失。


如何让他们最初显示未突出显示的数据?


Gary

I have five comboboxes each has a item listed populated by hand in the IDE.
Each has the text property bound to a text field in the database. When I
initially fill the dataset and display the page all of these combo boxes
display the correct data, but all of them are highlighted as if they have
focus.

If I click in on and then click another control the highlight goes away. I
have a tabbed interface and If I navigate to another tab and back the
highlights are gone from all of the combo boxes.

How can I get them to initially display the data not highlighted?

Gary

推荐答案

Gary,


它们被突出显示,因为0索引最初是选定的。


加载后将selectedindex设置为-1这消失了。


我希望这有帮助吗?


Cor
Gary,

They are highlighted because that the 0 index is the selected one initially.

Set the selectedindex to -1 of each after loading and that goes away.

I hope this helps?

Cor


Cor,


" Cor Ligthert" <无************ @ planet.nl> schrieb:
Cor,

"Cor Ligthert" <no************@planet.nl> schrieb:
它们被突出显示,因为0索引是最初选择的那个。
They are highlighted because that the 0 index is the selected one
initially.




尽管如此,组合框不应该如果他们没有重点,那么仍然会突出显示。


-

MS Herfried K. Wagner
MVP< URL:http://dotnet.mvps.org/>

VB< URL:http://dotnet.mvps.org/dotnet/faqs/> ;



Nevertheless, the comboboxes should not remain highlighted if they don''t
have the focus.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>


但所有五个都保持突出显示。我尝试了Cor留下的建议

但是没有效果。


我迷失了解释五个组合框怎么可能都有

同时关注。


Gary

" Herfried K. Wagner [MVP]" <喜*************** @ gmx.at>在消息中写道

新闻:eJ ************** @ TK2MSFTNGP14.phx.gbl ...
But all five of them remain highlighted. I tried the suggestion Cor left
but that had no effect.

I''m at a lost to explain how five combo boxes could all appear to have
focus at the same time.

Gary
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:eJ**************@TK2MSFTNGP14.phx.gbl...
Cor,
Cor Ligthert <无************ @ planet.nl> schrieb:
Cor,

"Cor Ligthert" <no************@planet.nl> schrieb:
它们被突出显示,因为0索引最初是选定的。
They are highlighted because that the 0 index is the selected one
initially.



然而,组合框不应该保持突出显示没有焦点。

- MS Herfried K. Wagner
MVP< URL:http://dotnet.mvps.org/ >
VB< URL:http://dotnet.mvps.org/dotnet/faqs/>



Nevertheless, the comboboxes should not remain highlighted if they don''t
have the focus.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>



这篇关于组合框最初突出显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆