15,662,893 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 Javascript questions
View Python questions
View C++ questions
View Java 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 fd9750 (Top 10 by date)
fd9750
13-Nov-20 9:29am
View
Hi,
I have tried innumerable variants on that but it never succeeded.
In the mean time I have found a way to do it with a python script.
fd9750
28-Nov-19 9:23am
View
Yes, that would do the trick. I have done some testing and once InitializeComponent has executed the code actually ends up in the Form_VisibleChanged() function where I could add some code to correct any goofs caused by the designer.
It is a bit silly though to have to cure things like that. For the designer to be really functional it should support reassigning the Control.Collection it selected.
fd9750
18-Dec-12 12:42pm
View
Hi Espen,
Thanks for the info. I'll check it out tomorrow.
fd9750
18-Dec-12 12:39pm
View
Hi nv3,
I was beginning to suspect that was the case. In the mean time I have successfully used GetWindowRect to get the size.
Thanks for the info.
fd9750
18-Dec-12 10:55am
View
Fair enough but why does the "LineTo" work then and what is the alternative ?
Oh yes, I have found out it only works once. if you trigger WM_PAINT for the dialog using Invalidate() or SendMessage(WM_PAINT) nothing happens any more except for erasing the drawing when using invalidate.
I am really new to this and I am getting more and more confused.
fd9750
18-Dec-12 10:25am
View
the WM_PAINT for the dialog
fd9750
18-Dec-12 10:25am
View
Deleted
the WM_PAINT for the dialog
fd9750
18-Dec-12 10:09am
View
Too bad, I am calling "ShowGraph" from within the OnPaint() message handler which does get triggered by means of WM_PAINT. The "LineTo" works fine so that should be OK.
fd9750
18-Dec-12 10:06am
View
Unfortunately I am calling "ShowGraph" from within the OnPaint() function which does get triggered by means of WM_PAINT.
fd9750
7-Dec-12 4:05am
View
OK, I´ll keep it in mind.
Show More