15,886,519 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 Clark Kent123 (Top 17 by date)
Clark Kent123
30-Sep-14 15:25pm
View
I know that this is an old post, but this has solved my problem! Thanks! +5 :)
Clark Kent123
23-Aug-13 13:57pm
View
Thank your response. Sadly, at this stage I don't think I will be able to transition to another component. But never the less I appreciate your comment have bookmarked that link. Thanks!
For the time being I am going to put this problem on hold and step away from it for brief period of time. I have spent almost 2 days trying to figure out why such a few computers exhibit this problem. I still believe the solution is quite obvious.
Clark Kent123
26-Jul-12 17:06pm
View
Yeah your solution worked as well. I ended up adding some more variables that were unnecessary and became unstable. Once I removed them it worked just fine. Well, thanks for the help.
Clark Kent123
26-Jul-12 17:04pm
View
Oh my! It works. I copied and pasted what you put and it works. What was I doing wrong? Maybe the Image Object was making things unstable. This whole time I was thinking that you had to give it a Image Object. Never tried the bitmap by itself. Well... thanks.
Clark Kent123
26-Jul-12 16:46pm
View
Thanks for the help. I am still receiving the same error I have posted under Dave's solution ("Parameter is not valid"). It seems GDI+ becomes unstable when you pair it with a Bitmap Object. I even tried reducing the image size to see if that will help, but I get the same error.
What I plan on doing is using the code you posted and placing it in a separate solution and see if I get the same results.
Thanks though.
Clark Kent123
26-Jul-12 16:28pm
View
Posted is the code that I am testing out.
Dim bmpPictureBox As New Bitmap(Me.Picture1.Width, Me.Picture1.Height)
Dim imgToBeCopied As Image
imgToBeCopied = bmpPictureBox
m_Graphics.FromImage(imgToBeCopied)
'Any function called from m_Graphics receives the "Parameter not valid."
'For instance this does not work m_Graphics.Clear(Color.White)
Clipboard.SetImage(imgToBeCopied)
The dimensions of my PictureBox that I want the Bitmap to use is: 840x 400. Hopefully that is not too large. Maybe I can make it smaller and see what happens.
Clark Kent123
26-Jul-12 16:05pm
View
Grr... I thought it was just me, but it seems a bunch of people who have used the GDI+ bitmap solution that you have suggested are receiving the problem that I am now getting "Parameter is not valid." This is when you call any GDI+ function after you initialize it using the FromImage using a bitmap. Hmmm, not sure what to do at this point. Back to the drawing board (pun not intended :) ).
Your advice works in theory so I will give it an accept solution, but does not get me the what I want. I appreciate the help Dave.
Clark Kent123
26-Jul-12 15:06pm
View
Thanks Dave for that. I am currently running some experiments so I get a grasp of this.
Clark Kent123
31-Jan-12 10:16am
View
I see your point. I didn't realize all that. You learn something new everyday. Thanks for the clarification! :)
Clark Kent123
31-Jan-12 8:22am
View
MAC addresses are not unique? I always thought they were. Is it at least virtually unique? What are the odds that 2 network adapters having the same address (rhetorical just thinking out loud)?
Or do you mean that a person can change their MAC address thus violating it's uniqueness if it was unique to begin with?
Clark Kent123
30-Jan-12 13:56pm
View
No problem. I encourage you to check the link Simon_Whale posted (Solution #2). The answer is found there.
Check the section on "Associating Events with Event Handlers"
http://msdn.microsoft.com/en-us/library/2z7x8ys3%28v=vs.71%29.aspx
Finally, I would like to encourage you to vote if either or both of us have answered your question. So it can be closed or rephrase your question.
Clark Kent123
25-Jan-12 11:07am
View
Thank you! It works like I expect it to. :)
Clark Kent123
25-Jan-12 11:07am
View
Thank you! It works like I expect it to. :)
Clark Kent123
23-Jan-12 13:32pm
View
Deleted
Link is broken.
Clark Kent123
19-Jan-12 13:48pm
View
Thanks I have updated my solution.
Clark Kent123
6-Jan-12 8:30am
View
I have looked at this code, but I am still not sure where do you want to check for MoveNext().
For more information about what MoveNext() is I suggest reading upon it. http://msdn.microsoft.com/en-us/library/ee275535%28v=BTS.10%29.aspx
do while recordset.EOF = False
recordset.MoveNext()
loop
Try something like that. Hard to comment when you posted a block of code which you don't point to me where you think your having the problem.
As a debugging tip that I have learned log everything in the problem. More information is helpful in finding out where your problem lies. console.writeline(insertobjectToInspectHere.tostring())
I hope this helps. Don't give up! :)
Clark Kent123
29-Sep-11 15:01pm
View
Deleted
Reason for my vote of 4
"Always start left curly brace { on a new line." That's my pet peeve when I see other programmers put the left curly brace on the same line.
"Names starting with underscores. They look cool, but let's not :)" Ha ha. Good one!
Good article.
Show More