15,886,851 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by KEL3 (Top 6 by date)
KEL3
3-Nov-12 9:25am
View
Thank you all.
Finally, I decided to go with the OnRender() approach and add a property in a derived class that returns the inner TextBox (as MS should have done). It saves memory and complexity (I think).
KEL3
2-Nov-12 10:11am
View
I don't see a any "comboBox1.TextBox" either. That's the problem.
I guess I must do the trick inside the OnRender() override function... :(
KEL3
2-Nov-12 8:25am
View
You mean that you want countTrue to return 1 when data contains "W" else return 0 ?
If you write a normal for/foreach loop that does what you want perhaps I could give you the LINQ equivalent (if it exists).
Or give examples of input and output.
You say:
data={"W","H","X","V"} => return 3
data={"O","H","X","V"} => return 1
???
I don't understand what is countTrue() supposed to count...
KEL3
2-Nov-12 6:27am
View
Oups! My bad!
I CAN get the new value (I just do (e.OriginalSource as TextBox).Text). Forget what I said before.
The problem is how to set the event handler by code.
There doesn't seem to be any comboBox1.TextChanged.
KEL3
2-Nov-12 6:08am
View
Unfortunately not.
This is mostly a problem for ComboBoxes with the IsEditable property set to true.
There is a problem with ComboBox and when the event handler for TextChanged gets called (when you edit the text contents of it by typing inside it) you cannot see the new Text value (you see the value before modification).
This is a related discussion:
http://social.msdn.microsoft.com/Forums/en/wpf/thread/bf7de95a-b088-48e9-989f-d5f9e3a857da
Textboxbase.Textchanged solves a lot of problems, but I have problems accessing it by code...
KEL3
15-Sep-11 14:09pm
View
Yes it does.
David was right. I've found out what was going on now...
Thanks for your help too. :)
Show More