15,891,529 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 ryanba29 (Top 27 by date)
ryanba29
8-May-17 9:26am
View
I'm aware of the need to unsubscribe from events to prevent memory leaks, but this is not for that reason. This is to prevent double subscriptions and calling a method twice for the same event when it's not designed to run that way. I'm not totally relying on this but still through it in there for most subscriptions. My questions was is this bad practice to over use this or to use it before I even know if its needed.
ryanba29
19-Jan-17 17:10pm
View
Johannesnestler, sounds like the solution I needed. Give me a change to test it out before I accept your solution. Thank you for your suggestion.
ryanba29
17-Jan-17 9:43am
View
Afzaal, maybe I worded it in a way that is confusing or gave to much background information and if so I apologize, but my questions way not about licenses or protecting are code from decompile. We are currently late binding with Reflection only to are own libraries and so we don't have to remove unneeded references and recompile for every configuration of the software. I'm want to know if there is a way that I can still make project-to-project references and still accomplish what were doing. I realize that there is probably a better approach over all, but this is the situation I'm in and thank you again for your help.
ryanba29
17-Jan-17 9:40am
View
Deleted
Afzaal, maybe I worded it in a way that is confusing or gave to much background information and if so I apologize, but my questions way not about licenses or protecting are code from decompile. We are currently late binding with Reflection so we don't have to remove unneeded references and recompile for every configuration of the software. I'm want to know if there is a way that I can still make project-to-project references and still accomplish what were doing. I realize that there is probably a better approach over all, but this is the situation I'm in and thank you again for your help.
ryanba29
17-Jan-17 9:36am
View
Deleted
Afzaal, maybe I worded it in a way that is confusing or gave to much background information and if so I apologize, but my questions way not about licenses or protecting are code from decompile. We are currently late binding with Reflection to only are own libraries so we don't have to remove unneeded references and recompile for every configuration of the software. I'm want to know if there is a way that I can still make project-to-project references and still accomplish what were doing. I realize that there is probably a better approach over all, but this is the situation I'm in and thank you again for your help.
ryanba29
2-Dec-16 6:15am
View
Philippe Mori, the decorator was the wrong solution in this case but it did get me looking in the right place. If you want to use the solution I posted and post something similar I'll accept your answer unless someone comes up with a better one. I would hate to asked the question and then accept my own answer.
ryanba29
1-Dec-16 23:32pm
View
Thank you Phillpe. I did find some useful information on using a control template with a user control that looks like it may do what I need here https://www.codeproject.com/articles/82464/how-to-embed-arbitrary-content-in-a-wpf-control. I'll give it a try.
ryanba29
3-Nov-16 9:07am
View
Thank you for taking the time to respond, but my size concern here is on the clip board or in finial application. Dave Kreskowiak is correct the large size in memory dose not matter because it's reduced to the appropriate size once used off the clip board.
ryanba29
2-Nov-16 17:02pm
View
Update. You are correct. My image is reduced to 66k once I paste it where it's needed. If you want to post an answer saying the same I'll accept it.
ryanba29
2-Nov-16 16:51pm
View
Is there no way to reduce it in memory before sending it to the clip board? I have no use for it in my app again.
ryanba29
1-Nov-16 9:06am
View
This is just what I'm looking for. Adding an extension method to extend the string class. I used bool IsValidString(this string _string){return (string.IsNullOrWhiteSpace(_string) == false);}. It's true that there's some added complexity but the trade off is the added readability. Considering how much I use (!string.IsNullOrWhiteSpace()) I'm happy. Thank you.
ryanba29
31-Oct-16 16:19pm
View
Even if it's not cleaner than "!= true" it does get rid of the double negative. For me that is an improvement and I will accept this as the answer if nothing better is provided. Thank you.
ryanba29
25-Feb-16 14:49pm
View
Is this a MVVC question? If so your above code is a mixture of your View and your View model. You should move your methods and other business logic to a separate class. You can this initialize a instance of that class form you window and set your data context to that class. And in this case your database in the Data Model
ryanba29
25-Feb-16 14:23pm
View
Bitcoin at this point is no longer just software based. The amount a computing power required to produce a bitcoin now requires specialized hardware to produce them with any kind of efficiency. The hardware can range from $35 in to the thousands.
ryanba29
24-Feb-16 16:49pm
View
Will you mark as answer found?
ryanba29
24-Feb-16 16:39pm
View
If someone provides you with a valid solution to your problem, please be kind enough to accept there answer.
ryanba29
24-Feb-16 16:28pm
View
the View (from image above)? Image is missing
ryanba29
24-Feb-16 15:34pm
View
Also "from class file to form" is very unclear windows forms? W.P.F.? Assuming windows forms and also assuming that your method is in a file called class.cs and there is a class called what "Class1" that the method is part of. I think I see where your confusion is and will post a solution, but a bigger problem might be that your trying to implement this method and it may be beyond your skill level at this point if your don't know about public constructors and initializing classes . If not windows forms or I'm wrong about the where the method is please post so.
ryanba29
24-Feb-16 15:00pm
View
Could you further explain what your trying to do in your XAML? The result of the above code should give you a list view with 4 columns headers, one of witch the header is "DOWNLOAD". Then it looks like your trying to place your button with content of "Download" some where in the "DOWNLOAD" column. But with the above your button in not displaying.
ryanba29
23-Dec-15 16:35pm
View
I think the problems is that I'm having trouble expressing the exact set a events that's puzzling me. Let me run through the same steps in both version of VS to make sure my observations are correct, and I'll either reword the question or point out my mistake. It's going to be tomorrow before I'll have a chance to re post.
ryanba29
23-Dec-15 15:56pm
View
I have no doubt that I more than one misconception related to assemblies, and looks like I have a lot of reading to do to see if this answers my question, but I'm assuming it will. Then why when doing that same thing in 2015 did installing the NuGet package remove the need to manually add the reference?
ryanba29
23-Dec-15 15:55pm
View
Deleted
I have no doubt that I more than one misconception related to assemblies, and looks like I have a lot of reading to do to see if this answers my question, but I'm assuming it will. Then why when doing that same thing in 2015 did installing the NuGet package remove the need to manually add the reference?
ryanba29
23-Dec-15 14:23pm
View
Updated question and removed the class named class, I think that was a copy and past misstake
ryanba29
23-Dec-15 14:23pm
View
Deleted
Updated question and removed the class named call, I think that was a copy and past misstake
ryanba29
4-Nov-15 13:13pm
View
Adding DoubleBuffering and removing the extra Graphics object does it.
ryanba29
4-Nov-15 13:06pm
View
Thank you. Solved my problem. I thought creating two graphics objects must have been wrong, but was unsure of how to fix. Ty
ryanba29
4-Nov-15 12:55pm
View
I have tried both.
this.DoubleBuffered = true;
SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
In the form constructor. I will add re update post. Ty
Show More