Wrox Programmer Forums
|
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 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 March 7th, 2005, 07:03 PM
Registered User
 
Join Date: Feb 2005
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

 
Old March 8th, 2005, 06:00 AM
Thearon's Avatar
Wrox Author
 
Join Date: Dec 2003
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
 
Old March 8th, 2005, 12:31 PM
Registered User
 
Join Date: Feb 2005
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
 
Old March 9th, 2005, 06:57 AM
Thearon's Avatar
Wrox Author
 
Join Date: Dec 2003
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





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 12:44 AM
PHP Text editor redcell184 BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 9 September 3rd, 2004 09:53 AM
Need a Text Editor surendran Dreamweaver (all versions) 0 August 3rd, 2004 06:52 AM
Rich Text Editor PC User Access 0 June 5th, 2004 04:04 PM





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