16,004,602 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 .NET 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 Jürgen Röhr (Top 4 by date)
Jürgen Röhr
25-Sep-11 12:38pm
View
you didn't provide any information, that is suited to give you a better advice than: check the mikes, speakers, cables and power.
maybe you can elaborate a bit on what your program does (how are the voices transferred), and what you've found out about the working and the not working computers.
Jürgen Röhr
22-Sep-11 3:15am
View
Deleted
Nice and clean, but still room for improvement. There's no need for checking every "marker" (the "reset"-line). You only need to check prime numbers.
while (!sieveContainer.Get(++marker));
factor = marker;
or with Linq
factor = marker = Enumerable.Range(marker + 1, candidate).First(prime => sieveContainer.Get(prime));
Reduces the time needed to about 1/3 (candidate = 100000000, 15sec vs. 5sec)
Jürgen Röhr
28-Jul-11 2:15am
View
Deleted
Reason for my vote of 1
What is this about? Is it about creating a CustomControl? Then I think it is bad, because you have to create a new class for every button with a different text or different image. You missed to show something like TemplateBinding, ContentPresenter and exposing some 'new' properties (e.g. the images source) to justify creating a new class. In fact, I think, using the "add custom control"-command in Visual Studio does most of the things you did manually and yields more to learn about this topic.
Or is it about simple creation of a button with more than just text in it? Then a really simple solution is: take your Grid and add it as Content to a standard button.
Jürgen Röhr
30-May-10 13:49pm
View
To be precise: of course, you can overwrite any property, you want. But your code has not much to do, with what you intended, because the Button is just not as simple as you expected it to be (and this is true for other controls as well). To proove it, just take an unmodified Button and set it's background to something nasty (say: orange). Did you expect what you see?
To gain a better understanding, it's a good idea to follow John Simmons proposal; then you have the complete template and can modify it as you need. As an example: the buttons 'backing' consists of a Rectangle in a Border in a Grid in a Border; and each plays a role in animating the different states...