473,406 Members | 2,549 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Renaming Form File Question

Hello!

I am using a book that tells me to rename form1.vb in the Solution Explorer
and if I do this, the program never runs. It gives me a sorts of errors.
Starting with saying the EXE file is missing and then says:

'Sub Main' was not found in 'Picture_Viewer.Form1'.

It told me to rename form1.vb to fclsViewer.vb.

If I had left it alone, it would compile and run. Is this book in error and
left out a step or am I doing something wrong?

Thanks,
Brian
Nov 21 '05 #1
1 1127
Yes..thank you. A "duh" moment for me.

"Donzo" <Do***@discussions.microsoft.com> wrote in message
news:37**********************************@microsof t.com...
You have to change the class name to what you just renamed the form to.
If you go into the code view of the form you just changed the name of in
the
solution explorer(fclsViewer.vb) you will notice that the class name is
still
form1. Change this to the new name (fclsViewer) and set the project to
use
this form at startup.

"Brian" wrote:
Hello!

I am using a book that tells me to rename form1.vb in the Solution
Explorer
and if I do this, the program never runs. It gives me a sorts of errors.
Starting with saying the EXE file is missing and then says:

'Sub Main' was not found in 'Picture_Viewer.Form1'.

It told me to rename form1.vb to fclsViewer.vb.

If I had left it alone, it would compile and run. Is this book in error
and
left out a step or am I doing something wrong?

Thanks,
Brian

Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: peter | last post by:
Hello all, Recently I've started to refactor my code ...(I'm using python 2.3.4) I tried to add extra functionality to old functions non-intrusively. When I used a construct, which involves...
1
by: Don Leverton | last post by:
Hi Folks, I have been given a CD with approx 130 .xls files (bean-counters!) that I would like to import and merge to ONE table (tblTradeshow). The XL files are *similarly*, but not...
6
by: Pegboy | last post by:
I am trying to create a DOS utility that will extract data from a file and use it to form a new filename for that same file. I can successfully open the file, get the data I need and form the new...
3
by: Tim923 | last post by:
There seem to be 4 steps to rename the form Form1 to MyForm: Rename the CS file from Form1 to MyForm. (I think this step could be ommitted, but they might deduct points.) Click on the form...
0
by: Andy | last post by:
Hello: I am using System.Web.Mail.MailMessage. Currently: when I am attaching a file to the object, I am renaming the file using the FileInfo.Copy method and attaching the new file to the...
6
by: Rob | last post by:
When renaming a form... looks like you should probably rename it in 2 places... the logical (Name) property of the form as well as the physical file name... (this could become confusing ). Is...
8
by: BillCo | last post by:
I'm updating a legacy app with table naming that makes baby jesus cry. It's a bit of a spider web though... no telling when and where the tables will be called by name. So I wrote this for renaming...
8
by: VB6Newbie | last post by:
Hi, I have just created an educational children's VB6 quiz program which has 10 questions and plays a sound file for each question. It has a counter to show the question number and the current...
6
by: laredotornado | last post by:
Hi, A question for those of you who always seem to know the one line way of doing things. I'm using php 4.4.4 and I want to rename the first part of the file to a particular string. For...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.