-
Mar 12th, 2025, 06:27 AM
#1
Thread Starter
Junior Member
[RESOLVED] BC30001: Statement is not valid in a namespace
I've obviously done something wrong, as I'm now getting these errors:

How do I correct this please?
Last edited by MadLadDesigns; Mar 12th, 2025 at 06:39 AM.
Reason: [RESOLVED]
Andy
[MadLad Designs]
-
Mar 12th, 2025, 06:39 AM
#2
Thread Starter
Junior Member
Re: BC30001: Statement is not valid in a namespace
It was because I was missing the 'Public Class Form1' at the beginning (Doh!)
-
Mar 12th, 2025, 01:14 PM
#3
Re: [RESOLVED] BC30001: Statement is not valid in a namespace
FYI - It's a bad idea to post a picture of your code. It hard to read, at best. Always cut/paste your code, Use the code tags ("#") so the code keeps it's formatting.
-
Mar 12th, 2025, 01:23 PM
#4
Thread Starter
Junior Member
Re: [RESOLVED] BC30001: Statement is not valid in a namespace
 Originally Posted by wes4dbt
FYI - It's a bad idea to post a picture of your code. It hard to read, at best. Always cut/paste your code, Use the code tags ("#") so the code keeps it's formatting.
The reason I did a screenshot was to highlight the errors, a simple cut and paste would have just shown the code. The code wasn't the problem.
-
Mar 12th, 2025, 02:00 PM
#5
Re: [RESOLVED] BC30001: Statement is not valid in a namespace
 Originally Posted by MadLadDesigns
The reason I did a screenshot was to highlight the errors, a simple cut and paste would have just shown the code. The code wasn't the problem.
You can't read the errors either. lol
-
Mar 12th, 2025, 02:16 PM
#6
Thread Starter
Junior Member
Re: [RESOLVED] BC30001: Statement is not valid in a namespace
-
Mar 12th, 2025, 02:21 PM
#7
Re: [RESOLVED] BC30001: Statement is not valid in a namespace
You can cut/paste the errors too, usually. Just use the Quote tab for that.
-
Mar 12th, 2025, 11:55 PM
#8
Re: [RESOLVED] BC30001: Statement is not valid in a namespace
 Originally Posted by MadLadDesigns
The code wasn't the problem.
Except it was. You can include a screenshot if it adds value, e.g. you might want to show the lines of code that are underlined as being in error, but always post text as text, formatted appropriately. That means code, error messages, etc. Apart from readability, if we want to run your code for ourselves or search the web for an error message, we can't copy and paste the text from a picture.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|