Windows App中的Intellisense问题 [英] Intellisense Issue in Windows App

查看:55
本文介绍了Windows App中的Intellisense问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好...
我想将Intellisense用于组合框.我已经完成了所有工作,但是问题是当我在列表中的所选项目上单击"Enter"时,组合框中的文本为空

我要做的是
* combobox下拉样式为:简单
* combobox自动完成模式为:suggestappend
* combobox自动完成来源:listitems

在表单加载事件中

Hello...
I wanna use intellisense for combobox. I''m done with everything but the issue is when I hit "enter" on the selected item from list the text in the combobox is empty

What I''v done is
*combobox dropdown style to: simple
*combobox Autocompletemode to :suggestappend
*combobox Autocompletesource to:listitems

In the form load event

<pre lang="cs">string[] validDogBreeds = new[] { "Bull Mastiff", "Bulldog", "Bold","Beby","Baby","Ban","Bunch" };<br />
            comboBox1.Items.AddRange(validDogBreeds);</pre><br />



你能帮我吗?



Can u help me?

推荐答案

我认为这可以解决问题.

您已将其用作:


I think this MIGHT pin down the problem.

You have used it as:


string[] validDogBreeds = new[] { "Bull Mastiff", "Bulldog", "Bold","Beby","Baby","Ban","Bunch" }; 



应该是:



It should be:

string[] validDogBreeds = new string[] { "Bull Mastiff", "Bulldog", "Bold","Beby","Baby","Ban","Bunch" };




我猜想用新的运算符初始化字符串是问题所在.让我知道它是否有效. :)




I guess initializing the string with the new operator was the problem. Let me know if it works. :)


将您的DropDrownStyle属性更改为下拉列表,而不是comboBox的Simple,并保留其他属性,然后尝试运行您的应用程序.我认为这可以解决您的问题.

否则,也请在给定的代码行中进行以下更改,然后再次运行:

string [] validDogBreeds = {斗牛犬",斗牛犬",大胆",贝比",贝比",班",束"};

通过对Visual Studio 2005中的代码行进行以上更改,我的代码执行得很好.

请做答复.
Change your DropDrownStyle property to dropdown instead of Simple for comboBox and leave other properties as it is and try to run your application. I think this will sort out your problem.

Otherwise do following changes too in your given line of code and run again:

string[] validDogBreeds = { "Bull Mastiff", "Bulldog", "Bold","Beby","Baby","Ban","Bunch" };

My code is executing well with above changes to your lines of code in Visual studio 2005.

Please do reply.


我也遇到了同样的问题.最后找到了解决方法.只需将Dropdown Style更改为"Dropdown".这肯定会有所帮助.

问候,
戈帕尔·乔希
Shreesoft系统
i was facing the same problem .Finally found the solution.. Just change Dropdown Style to "Dropdown".this would definitely help.

Regards,
Gopal Joshi
Shreesoft Systems


这篇关于Windows App中的Intellisense问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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