- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
4 Posted Topics
Re: Need to see some more of you code in order to help, but it might be the case that the address is pointing to a memory location to which there is no access. Have you checked if this is the case? | |
Re: [QUOTE=MrBlack;1514903][CODE] namespace ConsoleApplication8 { class Program { static void Main(string[] args) { Person p1 = new Student(); p1.Sing(); p1.Run(); Console.WriteLine(p1.GetType().Name); Console.Read(); } } class Person { public void Run() { Console.WriteLine("Person Run"); } public virtual void Sing() { Console.WriteLine("Person Sing"); } } class Student : Person { public void Run() … | |
Re: Suggestion: Create an Admin class containing the instantiation of the forms, including the current state; then you end up with something like this [CODE] class FormAdmin { Form currentForm {get; set;} Form Form1 = new Form(); Form Form2 = new Form(); Form Form3 = new Form(); function changeVisibleForm( int ID … | |
Re: I think that you have an error when counting the numbers in the line [CODE] foreach (int n in numbers) { A[P] = n; P++; }[/CODE] Instead try to sonething like [CODE] int[] countOfNumbers = new int(10); foreach (int m in numberArrayToCheck) [/CODE] |
The End.