November-06's Profile User Rating: *****

Reputation: 46 Craftsman
Group:
Active Members
Active Posts:
423 (0.28 per day)
Joined:
04-January 11
Profile Views:
15,858
Last Active:
User is offline Today, 04:41 AM
Currently:
Offline

Previous Fields

Country:
Who Cares
OS Preference:
Who Cares
Favorite Browser:
Who Cares
Favorite Processor:
Who Cares
Favorite Gaming Platform:
Who Cares
Your Car:
Who Cares
Dream Kudos:
0
Icon   November-06 has not set their status

Posts I've Made

  1. In Topic: Beginner problem - Method name does not exist

    Posted 29 Jan 2015

    Are you sure your program and your class are using the same namespace? If they're not, you should call the namespace before the class name.

    Read more about calling namespaces, classes and methods.
  2. In Topic: Beginner problem - Method name does not exist

    Posted 29 Jan 2015

    I did not see it before.

    Your fillPositive is inside another class, which is ArrayMethod. You should call it by calling the class first.

    
        int[] taskOneArray = ArrayMethod.fillPositive(15);
    
    
    
  3. In Topic: Beginner problem - Method name does not exist

    Posted 28 Jan 2015

    I think the problem concerns this line

        int[] taskOneArray = new int[fillPositive(15)];
    
    


    I rarely use arrays but from what I know, enclosed in the brackets should be a number.

        int[] taskOneArray = new int[15];
    
    


    In your case, fillPositive is returning an array of int, int[], instead of just int.

    Since you need an array, you should remove the "new" keyword and directly set the value of taskOneArray to the return value of the function.

    
        int[] taskOneArray = fillPositive(15);
    
    
    
  4. In Topic: Intellisense not displaying all element property file

    Posted 28 Jan 2015

    If you have experienced creating your own classes, you may have an idea of what's happening.

    Access Modifiers, for example, may affect this. Whether a method or a property of that class is declared private, public, internal, protected, or protected internal will affect its display in the intellisense.

    You would have to consider static and non-static methods too. When a method is static, you don't need to instantiate the class before you can call the method.

    
    public class Class1{
       private string GetUsername(){
          return "username";
       }
       public string GetAddress(){
          return "address";
       }
       public static string GetContactNumber(){
          return "000-00-00";
       }
    }
    
    
    


    When you call this class from your page, you should not be able to see GetUsername() whether you instantiate the class or not.

    When you call the class without instantiating it, adding a period should show GetContactNumber in the intellisense since it is a static method.

    
       // You can call it via Class1.GetContactNumber()
       // No need to instantiate class
    
    
    


    In the sample above, the GetAddress() is still not accessible. You still need to instantiate class before you can call this method.

    
       Class1 classVariable = new Class1();
       classVariable.GetAddress();
    
    
    


    Learning this, you may have an idea how intellisense works.

    [Note: The codes above were written directly to this editor. No tests were done. Please do correct if I make a mistake.]
  5. In Topic: ListView

    Posted 28 Jan 2015

    I have not really used ListView before. For these things, I would use a Repeater since it is really easy to customise.

    You may want to look at the Repeater control too to see if it fits what you want to do.

My Information

Member Title:
D.I.C Regular
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:
Interests:
Programming, Playing Chess
Programming Languages:
C#.NET
VB.NET
ASP.NET
LINQ
VB 6.0
Java
C
MATLAB

Contact Information

E-mail:
Private
Yahoo:
Yahoo  sixth_of_november@yahoo.com

Comments

November-06 has no profile comments yet. Why not say hello?