Click here to Skip to main content
15,915,869 members
Home / Discussions / C#
   

C#

 
Questionaccess controls in form1 from form2 Pin
Sam 200624-Nov-05 6:52
Sam 200624-Nov-05 6:52 
AnswerRe: access controls in form1 from form2 Pin
Robert Rohde24-Nov-05 7:08
Robert Rohde24-Nov-05 7:08 
GeneralRe: access controls in form1 from form2 Pin
Sam 200624-Nov-05 7:34
Sam 200624-Nov-05 7:34 
AnswerRe: access controls in form1 from form2 Pin
Curtis Schlak.24-Nov-05 14:16
Curtis Schlak.24-Nov-05 14:16 
GeneralRe: access controls in form1 from form2 Pin
Sam 200624-Nov-05 17:36
Sam 200624-Nov-05 17:36 
QuestionReflection, Breakpoints and Debug Mode Assembllies Pin
Tristan Rhodes24-Nov-05 5:58
Tristan Rhodes24-Nov-05 5:58 
AnswerRe: Reflection, Breakpoints and Debug Mode Assembllies Pin
leppie24-Nov-05 11:00
leppie24-Nov-05 11:00 
QuestionProblem with events Pin
sciamachy24-Nov-05 5:48
sciamachy24-Nov-05 5:48 
Hello,

I'm having a problem with events, I did some tutorials and I guess I understand how to use them, but I can't get this piece of code to work...
I get a NullPointReference Exception :

......<br />
<br />
<br />
public delegate void MovementEventHandler();<br />
<br />
/// <summary><br />
/// Summary description for Beagle.<br />
/// </summary><br />
public class Beagle<br />
{<br />
	private int x;<br />
	private int y;<br />
	public bool uptodate;<br />
<br />
	public event MovementEventHandler Movement;<br />
<br />
	public Beagle()<br />
	{<br />
		new Beagle(0,0);<br />
	}<br />
<br />
	public Beagle(int x, int y){<br />
<br />
<br />
		this.x = x;<br />
		this.y = y;<br />
<br />
		// Update world<br />
		Movement();<br />
	}<br />
....<br />
} 


Tnx in advance !

-- modified at 11:49 Thursday 24th November, 2005
AnswerRe: Problem with events Pin
Leslie Sanford24-Nov-05 6:58
Leslie Sanford24-Nov-05 6:58 
QuestionTreeView question. Pin
zaboboa24-Nov-05 4:26
zaboboa24-Nov-05 4:26 
AnswerRe: TreeView question. Pin
Robert Rohde24-Nov-05 4:39
Robert Rohde24-Nov-05 4:39 
QuestionMethod parameters Pin
1nsp1r3d24-Nov-05 3:15
1nsp1r3d24-Nov-05 3:15 
AnswerRe: Method parameters Pin
Leslie Sanford24-Nov-05 3:40
Leslie Sanford24-Nov-05 3:40 
GeneralRe: Method parameters Pin
Colin Angus Mackay24-Nov-05 4:15
Colin Angus Mackay24-Nov-05 4:15 
AnswerRe: Method parameters Pin
Colin Angus Mackay24-Nov-05 4:25
Colin Angus Mackay24-Nov-05 4:25 
GeneralRe: Method parameters Pin
Leslie Sanford24-Nov-05 4:46
Leslie Sanford24-Nov-05 4:46 
GeneralRe: Method parameters Pin
Colin Angus Mackay24-Nov-05 4:58
Colin Angus Mackay24-Nov-05 4:58 
GeneralRe: Method parameters Pin
Leslie Sanford24-Nov-05 5:34
Leslie Sanford24-Nov-05 5:34 
GeneralRe: Method parameters Pin
Colin Angus Mackay24-Nov-05 5:44
Colin Angus Mackay24-Nov-05 5:44 
AnswerRe: Method parameters Pin
Colin Angus Mackay24-Nov-05 5:02
Colin Angus Mackay24-Nov-05 5:02 
QuestionData types in reports (rdls) Pin
doph24-Nov-05 1:50
doph24-Nov-05 1:50 
QuestionConverting decimal to String Pin
Subrahmanyam K24-Nov-05 1:37
Subrahmanyam K24-Nov-05 1:37 
AnswerRe: Converting decimal to String Pin
J4amieC24-Nov-05 2:02
J4amieC24-Nov-05 2:02 
AnswerRe: Converting decimal to String Pin
Craig G Fraser24-Nov-05 2:04
Craig G Fraser24-Nov-05 2:04 
QuestionRegarding Strong name Pin
A.Grover24-Nov-05 1:23
A.Grover24-Nov-05 1:23 

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.