Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Can some one help me pass data

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
XxTylerxX
Expert Cheater
Reputation: 1

Joined: 02 Jun 2010
Posts: 107
Location: Canton, Ohio

PostPosted: Thu Jun 03, 2010 1:07 pm    Post subject: Can some one help me pass data Reply with quote

I have searched for a while but i'm stuck.... i'm trying to pass data from form2 to form1 for a trainer... i don't how to get passed the protection level error.... here is code i'm using
Code:
public partial class Form2 : Form
    {
        Form1 Frm1;
        public Form2()
        {
            InitializeComponent();
           
        }
        private void button1_Click(object sender, EventArgs e)
        {
            Frm1.Swf.SetVariable = "From Form2";
        }

here is error i'm getting
Code:
Error   1   'Stick_Ball_Arena_Trainer.Form1.Swf' is inaccessible due to its protection level   
Back to top
View user's profile Send private message MSN Messenger
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Thu Jun 03, 2010 1:18 pm    Post subject: Reply with quote

You need to make the property 'Swf' public in 'Form1'.
Back to top
View user's profile Send private message
XxTylerxX
Expert Cheater
Reputation: 1

Joined: 02 Jun 2010
Posts: 107
Location: Canton, Ohio

PostPosted: Thu Jun 03, 2010 1:30 pm    Post subject: Reply with quote

Can you explain... i'm not all that great in c#..
Back to top
View user's profile Send private message MSN Messenger
WaffleMaster
Grandmaster Cheater Supreme
Reputation: 0

Joined: 19 Oct 2006
Posts: 1237

PostPosted: Fri Jun 04, 2010 9:41 pm    Post subject: Reply with quote

Find the declaration. If there is no access modifier in front of it, put the word public in front of the declaration. If there is one, then change it.
_________________
Problem, CEF?

Buying zhelms/leech in Windia. PM me.
Back to top
View user's profile Send private message AIM Address
Untouchable
Grandmaster Cheater Supreme
Reputation: 6

Joined: 21 Jun 2008
Posts: 1710

PostPosted: Fri Jun 04, 2010 11:47 pm    Post subject: Reply with quote

Since you are new at Visual C#, just go to Form1 and select your ShockwaveFlash Object so that it displays a list of properties for the control. Go down to modifier, and select public.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites