Windows Develop Bookmark and Share   
 index > Windows Forms Sample Applications > Newbie I'm sure it's an obvious answer
 

Newbie I'm sure it's an obvious answer

I'm really new to this whole programming thing and .net... Anyhow I've made my creature with some samples and whatnot..

I'm using VB , I made a nice one using C# but I seem to be able to read VB better.

I see this
The following Assembly attributes must be applied to each Organism Assembly
' The class that derives from Animal

' Provide Author Information
' Author Name, Email

So I put in this:
<Assembly: OrganismClass("SimpleCarnivore")> 
And I get an error when trying to add animal
"Your organism SimpleCarnivore could not be found in the assembly.  Please make sure this class exists."

I don't know. it's really confusing me but I have this public class defined with teh same name:
 Public Class SimpleCarnivore : Inherits Animal

Any help would be great
MigrationUser 1  Sunday, April 18, 2004 3:55 AM
Delete the namespace in the code.
Right click on your project, choose "Properties"
Under "Root Namespace", put the namespace in there.
Then make sure the OrganismClassAttribute matches
For example 
OrganismClass("VBPlant.Flora"), then your Root Namespace would be VBPlant, and your Assembly name: Flora
MigrationUser 1  Sunday, April 18, 2004 4:05 PM

You can use google to search for other answers

Custom Search

More Threads

• Class is not in the assembly
• dataservice.asmx
• to Mitch walker
• Lookup table's not updated
• Make a Master-Detail form in VB.Net.
• C#: DataGridView: Primary Key Column (varchar): On Insert, Column Does Not Allow Nulls
• * BUG - I though the Nox and Asgard were nasty bugs.
• object cannt be disposed
• svhost.exe
• Why TaskVision does NOT use DataRelations?