Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C# 4.0 aka C# 2010 > C# 4.0 aka C# 2010 General Discussion
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old May 2nd, 2015, 03:33 AM
svb svb is offline
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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?
  #2 (permalink)  
Old May 5th, 2015, 11:43 PM
Friend of Wrox
Points: 528, Level: 8
Points: 528, Level: 8 Points: 528, Level: 8 Points: 528, Level: 8
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2014
Posts: 136
Thanks: 1
Thanked 10 Times in 10 Posts
Default

can you post your code
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 09:50 AM



All times are GMT -4. The time now is 01:25 PM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.