Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003
This is the forum to discuss the Wrox book Professional VB.NET 2003 by Bill Evjen, Billy Hollis, Rockford Lhotka, Tim McCarthy, Jonathan Pinnock, Rama Ramachandran, Bill Sheldon; ISBN: 9780764559921
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 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 March 7th, 2005, 07:03 PM
Registered User
 
Join Date: Feb 2005
Location: Toronto, Ontario, Canada.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter6-Text Editor App

Hello,

I'm working on the Text Editor Application in Chapter 6. I've finished coding up to page 205, however when I compile the application I recieve the following error:

Resources 'Form1.resx' and 'TextEditor.resx' have the same manifest resource name 'Text_Editor.TextEditor.resources'.

I have already changed the name of Form1.vb to TextEditor.vb as per pg. 193. What could be the problem?

tim

  #2 (permalink)  
Old March 8th, 2005, 06:00 AM
Thearon's Avatar
Wrox Author
 
Join Date: Dec 2003
Location: Fuquay Varina, NC, USA.
Posts: 396
Thanks: 0
Thanked 8 Times in 8 Posts
Default

Tim,

I've not heard of this error before. ANyone else out there ever run into this?

You might try searching Google for this error to see if you get any hits.

Thearon
  #3 (permalink)  
Old March 8th, 2005, 12:31 PM
Registered User
 
Join Date: Feb 2005
Location: Toronto, Ontario, Canada.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello,

Thanks for your help.  I fixed the problem.  Since the default name is Form1.vb, when it is renamed all resources associated should also have their names changed to reflect this automatically.  I made a mistake when I renamed the file by forgetting the extention .vb so it screwed everything up.  The solution:  manually go into the project directory and rename the files yourself - SIMPLE!

Another question:  A quote from page 215

To dismiss the dialog box you rely on functionality built into the Button control.  When you drew the button onto the About form, you set its DialogResult property to OK.  If the button is on a modal dialog box this tells it that when it's pressed that modal dialog should be closed and the value in DialogResult(in this case OK) should be passed back to the caller.

Who is the caller?  Since everything in VB.net is an object, I would assume that since it is the toolbarHelpAbout object that triggers the About dialog box, this is the caller.  Or is the caller the TextEditor form?

Tim
  #4 (permalink)  
Old March 9th, 2005, 06:57 AM
Thearon's Avatar
Wrox Author
 
Join Date: Dec 2003
Location: Fuquay Varina, NC, USA.
Posts: 396
Thanks: 0
Thanked 8 Times in 8 Posts
Default

Tim,

The caller is whoever invoked the Show or ShowDialog method on the form where the button is defined.

For example, assume Form1 has the following code:

If frmAbout.ShowDialog(Me) = DialogResult.OK Then
...
End If

In this case Form1 is the caller since it invoked the ShowDialog method in the frmAbout form.

Thearon
 


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
Text Editor Creation Irving_Rivas C++ Programming 3 January 30th, 2007 08:29 AM
Text editor surendran PHP How-To 0 October 20th, 2006 01:44 AM
PHP Text editor redcell184 BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 9 September 3rd, 2004 10:53 AM
Need a Text Editor surendran Dreamweaver (all versions) 0 August 3rd, 2004 07:52 AM
Rich Text Editor PC User Access 0 June 5th, 2004 05:04 PM



All times are GMT -4. The time now is 05:43 AM.


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