Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
M

msheekhah

@msheekhah
About
Posts
8
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Invalid rank specifier: expected ',' or ']'
    M msheekhah

    powerList = new string[256] {"..." };
    powerIndex = new string[30] {"..." };
    typeIt = new int[256] { 1, ..., 2 };

    am I not doing exactly what it says in MSDN? <a href="http://msdn.microsoft.com/en-us/library/aa288453(VS.71).aspx">msdn

    string[] names = new string[] {"Matt", "Joanne", "Robert"};

    i swear for each stupid mistake I bring you guys, I fix a lot of them on my own...

    C# visual-studio com help question

  • how to clear text from a listBox in C# VS2008 forms application
    M msheekhah

    I think I found the MSDN page to add text, but I need to clear it first.

    listBox1.Items.Add(((TextBox)sender).Text);

    C# csharp tutorial

  • 'WindowsFormsApplication4.character.character()' is inaccessible due to its protection level
    M msheekhah

    this is declared inside of the Form1 class in a Windows Form Document c#, VS2008

    protected void loadSTPage()
    {
    character temp = new character();

    what am I doing wrong?

    C# csharp question

  • Error 1 'character': member names cannot be the same as their enclosing type
    M msheekhah

    yeah fixed. thanks. getting better at getting bugs fixed using MSDN search. hopefully keep the stupid shit to a minimum.

    C# help csharp c++ question

  • Error 1 'character': member names cannot be the same as their enclosing type
    M msheekhah

    i'm teaching myself c#. i got through polymophism, pointers, linked lists, and data structures in C++ in college decades ago. however, I'm spacing on the easy shit it seems. Can someone help me out?

    using System;
    ...
    using System.Windows.Forms;

    namespace WindowsFormsApplication4
    {
    ...

    public class character
    {
    protected Hashtable charSheet = new Hashtable();
    protected Hashtable mutantStats = new Hashtable();
    protected Hashtable mutantPower = new Hashtable();

            public void character()
            {
                charSheet.Add("Name", "");
                ...
                mutantStats.Add("Tactics", "");
            }
            public void character(string nm,int xp,int lvl,int str,int dex,int sta,int spe,int hea,int soa,int def)
            {
                charSheet.Add("Name", nm);
                ...
                mutantStats.Add("Defense", "");
            }
            
            // constructors
    
          ...
    
    C# help csharp c++ question

  • Hashtable problem in VisualStudio 08 C#
    M msheekhah

    i had forgotten that I was trying to build it using a template of sample code I was working with... so I started again...

    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;

    namespace WindowsFormsApplication4
    {
    public partial class Form1 : Form
    {
    public Form1()
    {
    InitializeComponent();
    }
    }
    public class character
    {
    protected Hashtable charSheet = new Hashtable();
    protected Hashtable calcSheet = new Hashtable();
    protected Hashtable mutantStats = new Hashtable();
    protected Hashtable mutantPowers = new Hashtable();
    public character()
    {
    }
    charSheet.Add("Name","")
    ...
    charSheet.Add("Money", "");
    }
    }

    I still do not see what I'm doing. why won't it let me make a hashtable in the class character when it's apart of the namespace with System.Container ?

    C# csharp help dotnet visual-studio com

  • Hashtable problem in VisualStudio 08 C#
    M msheekhah

    lol. I learned oop over ten years ago on C++ before the ansi iso standard and just now trying to get back into it... thanks for the help tho.

    C# csharp help dotnet visual-studio com

  • Hashtable problem in VisualStudio 08 C#
    M msheekhah

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

    C# csharp help dotnet visual-studio com
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups