Click here to Skip to main content
16,016,736 members
Home / Discussions / C#
   

C#

 
AnswerRe: treeview and database Pin
danmor49813-Feb-14 8:58
danmor49813-Feb-14 8:58 
GeneralRe: treeview and database Pin
Richard MacCutchan13-Feb-14 21:45
mveRichard MacCutchan13-Feb-14 21:45 
QuestionASP.NET Project Files Pin
Sandhya Bandar12-Feb-14 2:29
Sandhya Bandar12-Feb-14 2:29 
AnswerRe: ASP.NET Project Files Pin
Richard MacCutchan12-Feb-14 4:42
mveRichard MacCutchan12-Feb-14 4:42 
QuestionThe file version maintain utility Pin
sahani from india12-Feb-14 1:56
sahani from india12-Feb-14 1:56 
AnswerRe: The file version maintain utility Pin
Pete O'Hanlon12-Feb-14 2:16
mvePete O'Hanlon12-Feb-14 2:16 
GeneralRe: The file version maintain utility Pin
OriginalGriff14-Feb-14 22:27
mveOriginalGriff14-Feb-14 22:27 
QuestionHelp needed XNA and Window Forms Pin
larsp77712-Feb-14 0:57
larsp77712-Feb-14 0:57 
Hi! I have a XNA Project with a XNA-game contained inside a winform.

My program.cs looks like this:

C#
Form1 form = new Form1();
form.Show();
Game1 game = new Game1(form.getDrawSurface());
form.Game = game;  //The new line
game.Run();


I have a setter and a getter in the winfom like this:

C#
Game1 game = new Game1();

public Game1 Game
        {
            get
            {
                return game;
            }
            set
            {
                game = value;
            }
        }


So now I can send values from my form to my Game1 in XNA but not the other way around.

How can I send values from XNA to the WinForm?

I have used som solutions I have found on the internet so I don't fully understand everything.
AnswerRe: Help needed XNA and Window Forms Pin
DaveyM6912-Feb-14 1:09
professionalDaveyM6912-Feb-14 1:09 
GeneralRe: Help needed XNA and Window Forms Pin
larsp77712-Feb-14 1:13
larsp77712-Feb-14 1:13 
GeneralRe: Help needed XNA and Window Forms Pin
DaveyM6912-Feb-14 1:39
professionalDaveyM6912-Feb-14 1:39 
GeneralRe: Help needed XNA and Window Forms Pin
larsp77712-Feb-14 4:34
larsp77712-Feb-14 4:34 
GeneralRe: Help needed XNA and Window Forms Pin
Pete O'Hanlon12-Feb-14 4:50
mvePete O'Hanlon12-Feb-14 4:50 
AnswerRe: Help needed XNA and Window Forms Pin
Marco Bertschi12-Feb-14 1:40
protectorMarco Bertschi12-Feb-14 1:40 
QuestionRegEx problem with Escape sequences Pin
Marco Bertschi11-Feb-14 23:30
protectorMarco Bertschi11-Feb-14 23:30 
SuggestionRe: RegEx problem with Escape sequences Pin
Kornfeld Eliyahu Peter11-Feb-14 23:39
professionalKornfeld Eliyahu Peter11-Feb-14 23:39 
GeneralRe: RegEx problem with Escape sequences Pin
Marco Bertschi11-Feb-14 23:53
protectorMarco Bertschi11-Feb-14 23:53 
GeneralRe: RegEx problem with Escape sequences Pin
Kornfeld Eliyahu Peter11-Feb-14 23:57
professionalKornfeld Eliyahu Peter11-Feb-14 23:57 
GeneralRe: RegEx problem with Escape sequences Pin
Marco Bertschi12-Feb-14 0:09
protectorMarco Bertschi12-Feb-14 0:09 
GeneralRe: RegEx problem with Escape sequences Pin
Kornfeld Eliyahu Peter12-Feb-14 0:25
professionalKornfeld Eliyahu Peter12-Feb-14 0:25 
GeneralRe: RegEx problem with Escape sequences Pin
Marco Bertschi12-Feb-14 1:06
protectorMarco Bertschi12-Feb-14 1:06 
GeneralRe: RegEx problem with Escape sequences Pin
Kornfeld Eliyahu Peter12-Feb-14 1:11
professionalKornfeld Eliyahu Peter12-Feb-14 1:11 
GeneralRe: RegEx problem with Escape sequences Pin
Marco Bertschi12-Feb-14 1:17
protectorMarco Bertschi12-Feb-14 1:17 
GeneralRe: RegEx problem with Escape sequences Pin
Kornfeld Eliyahu Peter12-Feb-14 1:25
professionalKornfeld Eliyahu Peter12-Feb-14 1:25 
GeneralRe: RegEx problem with Escape sequences Pin
Marco Bertschi12-Feb-14 1:39
protectorMarco Bertschi12-Feb-14 1:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.