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 


C# 2008 help

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Meeman
Advanced Cheater
Reputation: 0

Joined: 15 Nov 2007
Posts: 54

PostPosted: Sun Dec 30, 2007 2:04 pm    Post subject: C# 2008 help Reply with quote

hello,

I just got Visual C# 2008 a few days ago and have gotten used to it pretty quickly. I am having problems, though, with the dialog controls. Mostly the open file and save file dialogs.

to open the open dialog with a name of d i put in
Code:

d.showdialog;


and it comes up with an error that says

"Error 1 Only assignment, call, increment, decrement, and new object expressions can be used as a statement"


I'm not sure how to fix this.

Also for a save file dialog im not sure how to save a file. I know how to in Visual Basic but not in Visual C#.

Thanks

_________________
I AM MEEMAN666!!!!!!!!!!

PPT277


programming languages i use: VB6, Delphi 7 , C# 2008, Python

You want to +Rep me!!!!!!!
Back to top
View user's profile Send private message AIM Address
samuri25404
Grandmaster Cheater
Reputation: 7

Joined: 04 May 2007
Posts: 955
Location: Why do you care?

PostPosted: Sun Dec 30, 2007 2:23 pm    Post subject: Reply with quote

Code:

d.ShowDialog();


You have two things wrong with that:

First, C# is case sensitive. You have to use their casing.

Second, in order to call a method, you need to have () behind it, with parameters inside. If it requires no parameters (as with ShowDialog()), then you just leave it ().

_________________
Wiccaan wrote:

Oh jeez, watchout I'm a bias person! Locked.


Auto Assembly Tuts:
In Depth Tutorial on AA
Extended
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