TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Andrzej
NA
6
0
copying an object from clipboard
Mar 7 2009 2:12 PM
This (below) piece of code is intended to copy selected picture from richTexBox into clipboard and then from clipboard into pictureBox, but it doesn't work. Nothing happens. Could me someone explain why?
private: System::Void butSkalujRyc_Click(System::Object^ sender, System::EventArgs^ e) {
if (panel1->Visible == false)
{
this->richTextBox1->Copy();
pictureBox1->SizeMode = PictureBoxSizeMode::StretchImage;
if(Clipboard::GetDataObject()->GetDataPresent(DataFormats::Bitmap))
this->pictureBox1->Image = cli::safe_cast<Bitmap^>( Clipboard::GetDataObject()->GetData(DataFormats::Bitmap));
panel1->Show();
Clipboard::Clear();
}
else panel1->Hide();
}
Reply
Answers (
1
)
Trying to go from parent form to a child form...
Char to String