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
  1. Home
  2. General Programming
  3. C#
  4. arraylist

arraylist

Scheduled Pinned Locked Moved C#
helpquestion
8 Posts 8 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sonia Gupta
    wrote on last edited by
    #1

    i wrote the following code at the form load ArrayList s; it showed the following error The type or namespace name 'ArrayList' could not be found (are you missing a using directive or an assembly reference?) is there any dependency or namespace i have to include.

    Sonia Gupta Soniagupta1@yahoo.co.in Yahoo messengerId-soniagupta1 Love is Friendship and Friendship is Love....

    J P R L N 6 Replies Last reply
    0
    • S Sonia Gupta

      i wrote the following code at the form load ArrayList s; it showed the following error The type or namespace name 'ArrayList' could not be found (are you missing a using directive or an assembly reference?) is there any dependency or namespace i have to include.

      Sonia Gupta Soniagupta1@yahoo.co.in Yahoo messengerId-soniagupta1 Love is Friendship and Friendship is Love....

      J Offline
      J Offline
      JoeSharp
      wrote on last edited by
      #2

      hi sonia ArratList? or ArrayList? regards

      1 Reply Last reply
      0
      • S Sonia Gupta

        i wrote the following code at the form load ArrayList s; it showed the following error The type or namespace name 'ArrayList' could not be found (are you missing a using directive or an assembly reference?) is there any dependency or namespace i have to include.

        Sonia Gupta Soniagupta1@yahoo.co.in Yahoo messengerId-soniagupta1 Love is Friendship and Friendship is Love....

        P Offline
        P Offline
        Pete OHanlon
        wrote on last edited by
        #3

        Because it should be ArrayList instead. There is no ArratList in any of the standard namespaces (I can't speak for any assemblies you've written here). The ArrayList is in the System.Collections namespace.

        Deja View - the feeling that you've seen this post before.

        1 Reply Last reply
        0
        • S Sonia Gupta

          i wrote the following code at the form load ArrayList s; it showed the following error The type or namespace name 'ArrayList' could not be found (are you missing a using directive or an assembly reference?) is there any dependency or namespace i have to include.

          Sonia Gupta Soniagupta1@yahoo.co.in Yahoo messengerId-soniagupta1 Love is Friendship and Friendship is Love....

          R Offline
          R Offline
          Ravi Bhavnani
          wrote on last edited by
          #4

          It's ArrayList not ArratList. Also, you need to reference the System.Collections namespace in a using statement, or fully qualify the type, eg: System.Collections.ArrayList. /ravi

          This is your brain on Celcius Home | Music | Articles | Freeware | Trips ravib(at)ravib(dot)com

          1 Reply Last reply
          0
          • S Sonia Gupta

            i wrote the following code at the form load ArrayList s; it showed the following error The type or namespace name 'ArrayList' could not be found (are you missing a using directive or an assembly reference?) is there any dependency or namespace i have to include.

            Sonia Gupta Soniagupta1@yahoo.co.in Yahoo messengerId-soniagupta1 Love is Friendship and Friendship is Love....

            L Offline
            L Offline
            Luc Pattyn
            wrote on last edited by
            #5

            For all Framework classes MSDN states to what namespace they belong. :)

            Luc Pattyn [Forum Guidelines] [My Articles]


            this weeks tips: - make Visual display line numbers: Tools/Options/TextEditor/... - show exceptions with ToString() to see all information - before you ask a question here, search CodeProject, then Google


            1 Reply Last reply
            0
            • S Sonia Gupta

              i wrote the following code at the form load ArrayList s; it showed the following error The type or namespace name 'ArrayList' could not be found (are you missing a using directive or an assembly reference?) is there any dependency or namespace i have to include.

              Sonia Gupta Soniagupta1@yahoo.co.in Yahoo messengerId-soniagupta1 Love is Friendship and Friendship is Love....

              N Offline
              N Offline
              Nisar Inamdar
              wrote on last edited by
              #6

              :rose:Hi sonia, i think you have problem with arraylist declaration.... you may use ..... private ArrayList mylist= new ArrayList[100]; i think it will works... Nisar Inamdar. Always For U

              J 1 Reply Last reply
              0
              • S Sonia Gupta

                i wrote the following code at the form load ArrayList s; it showed the following error The type or namespace name 'ArrayList' could not be found (are you missing a using directive or an assembly reference?) is there any dependency or namespace i have to include.

                Sonia Gupta Soniagupta1@yahoo.co.in Yahoo messengerId-soniagupta1 Love is Friendship and Friendship is Love....

                N Offline
                N Offline
                N a v a n e e t h
                wrote on last edited by
                #7

                Sonia Gupta wrote:

                ArratList s; it showed the following error The type or namespace name 'ArratList' could not be found (are you missing a using directive or an assembly reference?)

                Because there is no class named like ArratList


                My Website | Ask smart questions

                1 Reply Last reply
                0
                • N Nisar Inamdar

                  :rose:Hi sonia, i think you have problem with arraylist declaration.... you may use ..... private ArrayList mylist= new ArrayList[100]; i think it will works... Nisar Inamdar. Always For U

                  J Offline
                  J Offline
                  J4amieC
                  wrote on last edited by
                  #8

                  Nisar Inamdar wrote:

                  private ArrayList mylist= new ArrayList[100];

                  This line will not compile (and im sure you didnt want an Array of 100 ArrayLists)

                  --- How to get answers to your questions[^]

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

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