Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 4.0 aka C# 2010 > C# 4.0 aka C# 2010 General Discussion
|
C# 4.0 aka C# 2010 General Discussion Discussions about the C# 4.0, C# 4, Visual C# 2010 language and tool not related to any specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 4.0 aka C# 2010 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 2nd, 2015, 03:33 AM
svb svb is offline
Registered User
 
Join Date: Apr 2015
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Cannot Call Openfiledialog through button on Tabcontrol

Hi All,

I am having an issue where, if I call an openfiledialog.showdialog() through a button(created using designer from toolbox) which is present on a tabpage of a tabcontrol, then it fails with the error Attempted to read or write protected memory. The call to the filedialog works fine if i drag the button from the tabpage to the main form.

Could someone please advise if there is a correct or an incorrect way of adding control to a tabpage?
 
Old May 5th, 2015, 11:43 PM
Friend of Wrox
 
Join Date: Feb 2014
Posts: 136
Thanks: 1
Thanked 10 Times in 10 Posts
Default

can you post your code





Similar Threads
Thread Thread Starter Forum Replies Last Post
Button code to call URL Zozozo BOOK: Beginning ASP 3.0 0 June 11th, 2007 08:06 AM
Using the OpenFileDialog johno BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 7 May 28th, 2007 02:57 AM
Call macro in Add-in from a toolbar button??? Chavo Excel VBA 1 May 3rd, 2005 01:55 PM
Call code behind from HTML button event X-Ken VS.NET 2002/2003 1 July 27th, 2004 12:46 PM
how to call serverControl Button event using .... alyeng2000 ASP.NET 1.0 and 1.1 Basics 1 December 9th, 2003 10:50 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.