15,892,927 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 thechazm (Top 13 by date)
thechazm
25-Jan-12 21:15pm
View
Excellent post! Extreamly informative and beneficial. Thank you so much for your time to take building this post.
thechazm
25-Jan-12 17:41pm
View
Your a life saver and I think I'll accept this solution. I appreciate your help and time on this issue.
thechazm
25-Jan-12 17:11pm
View
I have the program in a Winform but I will look up this WPF side and thank you for your reference. I have watched a few video's on WPF generation but have never done it myself.
thechazm
25-Jan-12 17:09pm
View
Ok I get your point. I have to ask this one question about your answer. The reason for the program is to manage personnel by re-assigning them to other projects or whatever. So I have a list box on the right that I click and drag to the center of the screen( which is a panel) and it creates the object but also keeping track of the object and sending the data back in SQL to the server. Is this functionality still possible with your solution you offered? If so I am all ears. Thank you for your time.
thechazm
25-Jan-12 16:34pm
View
Ok I am accepting your solution because you answered the question to my problem. Thank you so much for your help and time.
thechazm
25-Jan-12 15:20pm
View
No just a simple panel. I have a list on the right side of the screen. When the user clicks and drags that name from the list into the panel it creates the object I am trying to get to work. Then I want the user to be able to draw lines from one object to the others by using connector points that should stick just outside the control. Ok here's a question. So what If I fill the control's backcolor minusing 5 or 10 to make the outside of the control look hidden. Then have the rectangles draw in the same places but then they would look like they are sticking out just a bit? Is that possible?
thechazm
25-Jan-12 14:53pm
View
So if I understand you correctly with your statement's above is that I cannot draw a rectangle outside of my control? Can I stack onther controls on top of my control that would stick out just a little? The Idea is that I want it to be one object but the connector points will be used for resizing and drawing lines from.
thechazm
25-Jan-12 14:50pm
View
I am drawing the parent rectangle (or rectangle's) in a panel that fills most of the form. So yes plenty of room for that. The construction of the custom control or parent (as we are calling it) inherits from the Control class. Then I pass it the size with (this.Size = new Size(300, 150);). And in my onpaint override I fill the control with a color (g.FillRectangle(new SolidBrush(this.BackColor), this.ClientRectangle);).
thechazm
25-Jan-12 14:30pm
View
Ok yes I do see the rectangle now but I do want it sticking out below the initial rectangle as this is a connector for an object. Kindof like visio or power point objects. Do you know how I can accomplish this?
Thanks for the info.
thechazm
25-Jan-12 12:55pm
View
Thank you very much for your time and help on this. I finally have the right mind set to get this thing done. I kept wrapping myself around the appropriate object but I didn't understand was that any object could be used in this manner. Thanks for helping me out!
thechazm
24-Jan-12 12:06pm
View
Yes that is the right Idea I was going for but what object or control should I modify that would work best?
Should I just make a custom connector object inheriting from Control or what?
I would imagine the process is roughly the same between the two (WPF, and winforms). And thanks for the steps at the bottem. See the main issue I am having is I have a custom control that is just a simple panel and I thought if I added other panels to that panel as smaller objects located on the top, bottom, left, and right sides that I could manage the events and effects from that.
But I cannot seem to get the small panels to stick outside of the main panel just a bit. It keeps cropping it off at the end of the main panel. So I need some way to build controls on top of other controls and be able to have it going on the inside edge of the control and on the outer edge.
thechazm
24-Jan-12 11:17am
View
I updated the question. Hopefully its understandable.
thechazm
24-Jan-12 11:17am
View
I updated the question. Hopefully its understandable.
Show More