Click here to Skip to main content
15,914,780 members
Home / Discussions / C#
   

C#

 
QuestionGreat NMS tool Pin
gvgohome30-Apr-09 16:50
gvgohome30-Apr-09 16:50 
AnswerRe: Great NMS tool Pin
Christian Graus30-Apr-09 19:14
protectorChristian Graus30-Apr-09 19:14 
QuestionAsk about table in C#? Pin
Johnscorta30-Apr-09 15:58
Johnscorta30-Apr-09 15:58 
AnswerRe: Ask about table in C#? Pin
_Maxxx_30-Apr-09 16:33
professional_Maxxx_30-Apr-09 16:33 
GeneralRe: Ask about table in C#? Pin
Johnscorta30-Apr-09 18:00
Johnscorta30-Apr-09 18:00 
GeneralRe: Ask about table in C#? Pin
Johnscorta30-Apr-09 18:18
Johnscorta30-Apr-09 18:18 
GeneralRe: Ask about table in C#? Pin
_Maxxx_30-Apr-09 19:47
professional_Maxxx_30-Apr-09 19:47 
QuestionHashtable problem in VisualStudio 08 C# Pin
msheekhah30-Apr-09 14:43
msheekhah30-Apr-09 14:43 
I created a project using .NET Framework 3.0 before I downloaded 3.5...

using C# on Visual Studio 08

Creating a windows program, a basic forms program

I have the following:
using System;<br />
using System.Collections;<br />
<br />
<br />
namespace Zombie_Zombie_Zombie<br />
{<br />
    partial class Form1<br />
    {<br />
        protected override void Dispose(bool disposing)<br />
        {<br />
            if (disposing && (components != null))<br />
            {<br />
                components.Dispose();<br />
            }<br />
            base.Dispose(disposing);<br />
        }<br />
<br />
        #region Windows Form Designer generated code<br />
<br />
        private void InitializeComponent()<br />
        {<br />
            this.tabControl1 = new System.Windows.Forms.TabControl();<br />
            ...<br />
        private System.Windows.Forms.RichTextBox outputRichText;<br />
        private System.Windows.Forms.LinkLabel linkLabel14;<br />
<br />
        class character<br />
        {<br />
            protected Hashtable charSheet = new Hashtable();<br />
            protected Hashtable calcSheet = new Hashtable();<br />
            protected Hashtable mutantStats = new Hashtable();<br />
            protected Hashtable mutantPowers = new Hashtable();<br />
            // charSheet is the base character sheet with user modifiable values<br />
            // calcSheet are the values after calculations... Strength plus Melee plus Sword<br />
            // non user modifiable<br />
            // mutantStats are the mutant powers that directly affect the base stats, and are added<br />
            // into calcSheet<br />
            charSheet.Add("Name","")<br />
            ...<br />
            charSheet.Add("Money", "");<br />
        }<br />
<br />
    }<br />
}<br />
<br />


Now I'm using this because that's the syntax given here: <a href="http://msdn.microsoft.com/en-us/library/system.collections.hashtable.aspx">MSDN Hashtable Class (System.Collections)

I had originally tried charSheet["Name"] = ""; because I was using Beginning C# Game Programming page 105 on Hashtables.

This is the error code I get:
<br />
Error	1	Invalid token '(' in class, struct, or interface member declaration	C:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\Zombie Zombie Zombie\Zombie Zombie Zombie\Form1.Designer.cs	499	26	Zombie Zombie Zombie<br />
...<br />
Error	39	Invalid token '(' in class, struct, or interface member declaration	C:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\Zombie Zombie Zombie\Zombie Zombie Zombie\Form1.Designer.cs	537	26	Zombie Zombie Zombie<br />


help please
AnswerRe: Hashtable problem in VisualStudio 08 C# Pin
Member 103390730-Apr-09 22:35
Member 103390730-Apr-09 22:35 
GeneralRe: Hashtable problem in VisualStudio 08 C# Pin
msheekhah30-Apr-09 22:43
msheekhah30-Apr-09 22:43 
GeneralRe: Hashtable problem in VisualStudio 08 C# Pin
Member 103390730-Apr-09 23:05
Member 103390730-Apr-09 23:05 
GeneralRe: Hashtable problem in VisualStudio 08 C# Pin
msheekhah30-Apr-09 23:05
msheekhah30-Apr-09 23:05 
GeneralRe: Hashtable problem in VisualStudio 08 C# Pin
Henry Minute1-May-09 1:12
Henry Minute1-May-09 1:12 
QuestionExcluding Activeds and ADODB from the setup project creating problem while installing the application on other machine Pin
prateeksj30-Apr-09 14:13
prateeksj30-Apr-09 14:13 
AnswerRe: Excluding Activeds and ADODB from the setup project creating problem while installing the application on other machine Pin
Mycroft Holmes30-Apr-09 15:27
professionalMycroft Holmes30-Apr-09 15:27 
QuestionWeird Security Error when shelling out to managed exe Pin
snakewine30-Apr-09 14:00
snakewine30-Apr-09 14:00 
QuestionSingleton Pattern : Using a single dataSet in all over of application. Pin
hdv21230-Apr-09 12:07
hdv21230-Apr-09 12:07 
GeneralRe: Singleton Pattern : Using a single dataSet in all over of application. Pin
Rolando CC30-Apr-09 12:47
professionalRolando CC30-Apr-09 12:47 
AnswerRe: Singleton Pattern : Using a single dataSet in all over of application. Pin
PIEBALDconsult30-Apr-09 13:00
mvePIEBALDconsult30-Apr-09 13:00 
GeneralRe: Singleton Pattern : Using a single dataSet in all over of application. Pin
Mycroft Holmes30-Apr-09 15:32
professionalMycroft Holmes30-Apr-09 15:32 
AnswerRe: Singleton Pattern : Using a single dataSet in all over of application. Pin
_Maxxx_30-Apr-09 16:39
professional_Maxxx_30-Apr-09 16:39 
QuestionExtracting Audio from Video file Pin
Payam Rastogi30-Apr-09 11:26
Payam Rastogi30-Apr-09 11:26 
AnswerRe: Extracting Audio from Video file Pin
Member 103390730-Apr-09 22:42
Member 103390730-Apr-09 22:42 
QuestionSimple power-up question Pin
Star0930-Apr-09 10:23
Star0930-Apr-09 10:23 
QuestionRe: Simple power-up question Pin
Christian Graus30-Apr-09 10:37
protectorChristian Graus30-Apr-09 10:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.