15,891,372 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 U. G. Leander (Top 13 by date)
U. G. Leander
30-Jun-16 2:56am
View
Have you tried to use OpenXML? It's a quite powerful (yet poorly documented) SDK. Might help you out.
U. G. Leander
30-Mar-16 10:03am
View
You're welcome! Could you please mark the question as solved, so that it doesn't appear in the "unanswered"-category?
U. G. Leander
30-Mar-16 8:35am
View
You could try lbxArtikel.ScrollIntoView(lbxArtikel.SelectedItem),
assuming lbxArtikel is your ListBox and then set the focus on the item.
U. G. Leander
18-Jan-16 9:24am
View
Why don't you use a Singleton? I think this should do the trick.
U. G. Leander
4-Jan-16 4:46am
View
check the value of "i" when the error occurs (-> set breakpoint there). I am sure that "i" is greater than "0". But "labs" has only a length of one, i.e. one element....so when you try to write to e.g. "labs[1]", this object is not instantiated (it is not even existing).
U. G. Leander
23-Nov-15 4:29am
View
The following link might help you...I didn't want to post this as an answer as I found it on the internet myself ;-)
http://stackoverflow.com/questions/1511516/bind-to-itemscontrols-datacontext-from-inside-an-itemtemplate
U. G. Leander
12-Nov-15 1:39am
View
Good and straight to the point...better than what I suggested in my comment :-)
U. G. Leander
12-Nov-15 1:33am
View
Take a look at this page, the DateTime class could help you:
http://www.csharp-examples.net/string-format-datetime/
U. G. Leander
2-Sep-15 9:39am
View
You are welcome!
U. G. Leander
2-Sep-15 3:53am
View
I just updated my solution and provided an example. Please take a look at it and let me know if this is the functionality you want to achieve.
U. G. Leander
17-Jun-15 4:34am
View
Just take a look where you instantiated 'i'....it is inside the do while loop and therefore the condition 'i<100' will always evaluate to 'true'.
Does termination work when entering '-1'?
U. G. Leander
27-May-15 8:43am
View
Agreed. I was just typing while CPallini explained the same...
U. G. Leander
27-May-15 8:37am
View
Exactly. This is the right place for increasing numbersCounter.
Edit: You should increase oddcount inside the if-statement if you only want to count the odd numbers. Outside the if-statement (but still inside the loop) you would increse the count of all numbers you have read so far.
Show More