15,908,661 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 Member 10334528 (Top 12 by date)
Member 10334528
25-Feb-14 12:02pm
View
KR - I have added the code above, I am not sure how useful this is as alot is done by the VS designer but its video1 that I require the click event on
Thanks
Member 10334528
25-Feb-14 12:02pm
View
Deleted
KR - I have added the code above, I am not sure how useful this is as alot is done by the VS designer but its video1 that I require the click event on
Thanks
Member 10334528
25-Feb-14 11:00am
View
Video Click as in Clicking the left Mouse button while the cursor is resting anywhere on the area of the video. For example when you click anywhere on a video playing on Youtube the video will pause.
Many Thanks
Member 10334528
25-Feb-14 10:29am
View
Krunal Rohit - Thank you for your response. However this seems to be a way of performing the function without the video click event if I've understood this correctly? Although a valid alternative its extremely important that the required function is run when the video is clicked.
Kind Regards
Member 10334528
7-Jan-14 18:33pm
View
Thanks so much! I have played around for the last 2-3 hours with the stuff you provided and I have successfully got all PictureBoxes to resize and relocate with formwindow resizing.
I have accepted your solution and updated the question with the code I used to assist anyone in the future.
Many Thanks!! :)
Member 10334528
7-Jan-14 6:40am
View
Thank you both for your replies. BillWoodruff I will reply to both your questions here to keep things simple.
There are over 65 PictureBoxes placed on top of this panel not just 4 but yes they are the only controls in the panel.
I'm after the picture boxes to stay in the same position/size relative to the panel background behind it as when in designer mode. Please follow the link below where I have uploaded a picture which should hopefully make it clearer.
http://i261.photobucket.com/albums/ii61/scottj15_2008/PanelResize_zpsfea30619.png
As you can see I'm looking for the pictureboxes to be locked into their positions relative to the panel, whilst resizing/zooming as appropriate to give the image as a whole the same view no matter what size.
Member 10334528
6-Jan-14 18:55pm
View
I have tried this. The PictureBoxes remain completely stationary while the background Panel image moves behind it when this is set.
Member 10334528
6-Jan-14 18:53pm
View
Deleted
Yes, The PictureBoxes remain completely stationary while the background Panel image moves behind it when this is set.
Member 10334528
6-Jan-14 18:09pm
View
Nothing is currently Docked but the Panel does have all 4 Top, Bottom, Left, Right Anchors along with BackgroundImageLayout = Zoom so that it resizes on any window resize.
The Picture box's use a background image and have no anchor but they appear to be behaving in a way that they would if Right and Bottom Anchor were to be selected.
Member 10334528
6-Jan-14 18:09pm
View
Deleted
Nothing is currently Docked but the Panel does have all 4 Top, Bottom, Left, Right Anchors along with BackgroundImageLayout = Zoom so that it resizes on any window resize.
The Picture box's use a background image and have no anchor but they appear to be behaving in a way that they would if Right and Bottom Anchor were to be selected.
Member 10334528
6-Jan-14 17:11pm
View
Hi, Thanks for your reply. Yes the picture box's's are defiantly in the panel as they all move with the panel when I move the panel in design view. The X and Y locations are also relative to the panel and not the form confirming this.
Member 10334528
23-Dec-13 12:13pm
View
Thanks for your response Richard. This does seem to solve the accessibly issue but the constructor is now unable to access "IndicatorImage1" which is being passed into the constructor. This is a PictureBox that was created in Design Mode.
The error I am getting is:
A field initializer cannot reference the non-static field, method, or property 'Form.IndicatorImage1'
Is there anyway around this? Thanks
Show More