15,901,373 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 fct2004 (Top 13 by date)
fct2004
19-May-12 14:59pm
View
This sounds like it might have a chance of working. I know you can't place the actual Canvas at multiple locations at once, because the visual tree will only allow it to have one parent. Yet, two images (not Images) of the Canvas and its contents, sounds like it might work. You might have a bit of trouble interacting with it on a GUI level.
fct2004
1-Apr-12 7:26am
View
I don't know of anything that can make this run faster in parallel code. A normal for loop is about the fastest this is going to get for two reasons.
1. There is more overhead in a parallel loop than a normal loop.
2. Writing to the same console in parallel won't speed it up because we are being limited by the I/O stream, not the CPU.
If you were doing actual computation inside the body of the loop, we might be able to help you speed it up by running the loops in parallel.
The sort answer is no. You cannot speedup the body of this specific loop by running it in parallel.
fct2004
31-Mar-12 23:04pm
View
Line objects have an X1, X2, Y1, and Y2 properties. I had to do this for work, and using those properties to set the endpoints of the line worked pretty well. I have to warn anything in the negatives might not be visible because a lot of controls don't render things that are outside of them. And, you might want to increase the width and height of the canvas a bit.
fct2004
31-Mar-12 22:51pm
View
1. Do you want to add a new control every-time a button gets clicked?
2. Are there any controls you want to remove when a button gets clicked?
3. Are you saying you have different controls, and the one that gets added is dependent on which button is clicked?
fct2004
31-Mar-12 22:46pm
View
Do any of those properties lead to things like images because that can really slow things down. Are you doing anything that may disable UI virtualization? Why aren't you binding it an ObservableCollection?
fct2004
31-Mar-12 22:29pm
View
Why is this a problem, shouldn't the event handler be giving you the correct row index when it responds to the event the set it off?
fct2004
31-Mar-12 22:04pm
View
Are trying to say that some of the controls are tied to an entity in your database, and you want to create more controls of the same types that are tied to a new entity when the button is clicked?
fct2004
31-Mar-12 21:58pm
View
That link doesn't really look like the thing you're talking about.
fct2004
31-Mar-12 21:52pm
View
I'm sorry, but are you asking for help to make something run faster, or are you asking for help to know why it didn't run faster?
fct2004
31-Mar-12 21:47pm
View
What version of .Net is this in?
fct2004
28-Mar-12 1:05am
View
This works as long at the default value hasn't been changed to something other than null.
fct2004
28-Mar-12 1:01am
View
Is this a WinForms or WPF application? Each of them has their own RichTextBox class, and their content accessed through different properties. Either way, I would advise the scan then parse approach.
fct2004
28-Mar-12 0:30am
View
Do you main label, as in the concept of labeling something? Or, an object of type Label?
If you're talking about the concept, it might be easier to place individual items in a list control of some kind.
Show More