C# :: Form2 Inaccessible Due To Protection Levels

Jun 12, 2014

I am trying to transfer information from form1 to form2 but it will not allow me to do so; I get an error when I write in the coding of

Form2 frm2 = new Form2();
frm2.FN.text = this.FirstName;

The error reads as "Form2 is inaccessible due to protection levels

I have looked over everything and I am pretty sure everything is set to public on both forms how do I fix this?

View 2 Replies


ADVERTISEMENT

C++ :: Inaccessible Error In Inherited Function

Nov 6, 2013

THis is my small program i am getting error CPP 46: 'result::putdata()'is not accessible

#include<iostream.h>
#include<conio.h>
class stud
{

[Code]......

View 1 Replies View Related

C Sharp :: How To Make Object In Form1 Work In Form2

May 20, 2012

I've got a calendar in Form 1 in my code, and buttons in Form2. I need these buttons to send codes for this calendar in Form1. How may I make these work? My friend told me to do a function as a new class, but I'm not sure how can I do this.

View 5 Replies View Related

C/C++ :: Trying To Add Multiple Levels Of AI To Game

May 21, 2014

I made a Tic Tac Toe game that works for 2 human players as it should. I am now trying to add 5 different levels of AI to the game for different levels of difficulty... I've kinda started piecing the code together but it absolutely does not work.

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

[Code] .....

View 7 Replies View Related

C++ :: Load Sokoban Levels From Text File

Jan 2, 2014

I have a group assignment were we need to load sokoban levels from text file. We have loaded the file in a vector but how we can parse the file for it to be used during the game.

We read about malloc and know how to access each character from the vector, but how can we select a particular level after the user inputs an the level integer number?

E.g.

Level 6
# # #
## @#
#####

View 1 Replies View Related

C++ ::  Binary Search Trees - Counting How Many Levels Are There

Jan 29, 2013

So I have this code that I wrote that pretty much makes a binary search tree with one node per element that holds the data int, one pointer for left, and one pointer for right. My tree is set that if you give it a number it starts as root, then afterwards any number you give it will either be placed left or right if it smaller than the current node or bigger respectively until it hits a pointer that points to NULL.

I was able to get my code to display the numbers in order no matter how bad you inserted the numbers to throw me off. My question now is this, how can I make it count how many levels there are? I'm not sure if this is clear or unclear but I want it to take all the paths and return to me the longest path and that should be how many levels there are.

#include <iostream>
using namespace std;
class binarySearchTree {
private:
class node {

[Code] .....

View 6 Replies View Related

C# :: Variable Protection Level In Class

Oct 20, 2012

With what protection level c# treats variable "a" in "myclas", because I get error code when I want to change it?

Code:
using system;
class myclass {
int a;
}
class mainclass {

[Code] .....

View 4 Replies View Related

C/C++ :: General Protection Exception Is Written When Execute Program

May 8, 2012

My code in c++ is

#include<iostream.h>
main()
{int a[10],x[5];
a[-7]=15;
x[5]=20;
cout<<x[-5];
}

View 2 Replies View Related

Visual C++ :: Software Tied To One Computer - How To Remove Protection

Oct 6, 2012

I had some software made for me by another programmer and i think he has put some sort of protection on it, so I can't use this software on any other computer apart from the one it is installed on now, how to remove this protection so I can run it off of any PC.

I have the following files in the folder.

SQLite.dll
SQLite.NET.dll
FUTautobuyer.s3db
FUT13.exe
Newtonsoft.Json.dll
SQLite3.dll
ComputerBenchmark.file

View 1 Replies View Related

C Sharp :: Error Concerning Sorted List Not Being Accessible Due To Its Protection Level

Oct 7, 2012

For school we have to create a blackjack game using windows form. I had to store the images of each card into a sorted list so i created a class called cardList and created a constructor which contained the the sorted list called cards. So it looks kinda like this:

public class cardList : Form1
{
SortedList cards = new SortedList();  
public cardList()

[Code]....

There's probably a few other errors, I'm still trying to figure this whole c# thing out. why the error tells me (on the line that contains c.cards.GetByIndex(cardNumber);) that cards is inaccessible due the its protection level.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved