Click here to Skip to main content
15,913,685 members
Home / Discussions / Windows Forms
   

Windows Forms

 
AnswerRe: Can WPF Controls used in windows application Pin
Eddy Vluggen8-Oct-09 21:19
professionalEddy Vluggen8-Oct-09 21:19 
GeneralRe: Can WPF Controls used in windows application Pin
saurabhmohal8-Oct-09 21:56
saurabhmohal8-Oct-09 21:56 
GeneralRe: Can WPF Controls used in windows application Pin
Mycroft Holmes8-Oct-09 22:21
professionalMycroft Holmes8-Oct-09 22:21 
QuestionHow to Access/run my windows exe file in network Pin
ashikale8-Oct-09 0:11
ashikale8-Oct-09 0:11 
AnswerRe: How to Access/run my windows exe file in network Pin
Richard MacCutchan8-Oct-09 1:01
mveRichard MacCutchan8-Oct-09 1:01 
AnswerRe: How to Access/run my windows exe file in network Pin
Dave Kreskowiak9-Oct-09 1:56
mveDave Kreskowiak9-Oct-09 1:56 
AnswerRe: How to Access/run my windows exe file in network Pin
AhmedMasum28-Oct-09 2:26
AhmedMasum28-Oct-09 2:26 
QuestionMouseClick Event that only works once! Why? Pin
Fenix27-Oct-09 18:16
Fenix27-Oct-09 18:16 
I try to create a form game.
I got up to 30 tiles (images) on that second form and I want to change the tile-image each time you click on it.
But it does it only once.

The possible errors are few.
First, here's part of the form code.
private: System::Void TS11_MCli(System::Object^  sender, System::Windows::Forms::MouseEventArgs^  e) {
			 				Tsn11 = Tsn11 + 1 ;
				if (Tsn11 = 0) {  this->TS11->Image = Image::FromFile("C:/GamePics/NOTILE.png");}
					else {
				if (Tsn11 = 1){  this->TS11->Image = Image::FromFile("C:/GamePics/GREEN.png");}
					else {
				if (Tsn11 = 2){  this->TS11->Image = Image::FromFile("C:/GamePics/GRTRE.png");}
					else {
				if (Tsn11 = 3){  this->TS11->Image = Image::FromFile("C:/GamePics/ROAD.png");}
					else {
				if (Tsn11 = 4){  this->TS11->Image = Image::FromFile("C:/GamePics/WALL.png");}
										};
									};
								};
						};
							 
			 };

That is the mouse event click.

Now up in the begining of the form, i get to declare the TS variables (one for each tile).
As it is : Tsn11 = 0;

As for the error facts : The form either reinitialise the variables each time you click, either always...
either the imageclick will operate only once.
Either there is a problem in the If Else statements.
So what is it exactly?
And how do I correct it?
AnswerRe: MouseClick Event that only works once! Why? - Repost Pin
Richard MacCutchan7-Oct-09 22:59
mveRichard MacCutchan7-Oct-09 22:59 
Questioncopy functionality does not work in CrystalReportViewer Pin
maryam.saboor6-Oct-09 1:12
professionalmaryam.saboor6-Oct-09 1:12 
AnswerRe: copy functionality does not work in CrystalReportViewer [Cross Post - Do not Respond] Pin
Henry Minute6-Oct-09 2:23
Henry Minute6-Oct-09 2:23 
AnswerRe: copy functionality does not work in CrystalReportViewer Pin
εїзεїзεїз7-Oct-09 22:25
εїзεїзεїз7-Oct-09 22:25 
GeneralRe: copy functionality does not work in CrystalReportViewer Pin
maryam.saboor9-Oct-09 0:19
professionalmaryam.saboor9-Oct-09 0:19 
GeneralRe: copy functionality does not work in CrystalReportViewer Pin
RossMcLoughlin8-Mar-10 12:43
RossMcLoughlin8-Mar-10 12:43 
GeneralRe: copy functionality does not work in CrystalReportViewer Pin
maryam.saboor8-Mar-10 18:07
professionalmaryam.saboor8-Mar-10 18:07 
QuestionNetAdvantage and Infragistics tools [modified] Pin
mikobi5-Oct-09 20:44
mikobi5-Oct-09 20:44 
AnswerRe: NetAdvantage and Infragistics tools Pin
Ashfield7-Oct-09 1:47
Ashfield7-Oct-09 1:47 
QuestionRichTextBox Scroll Problem Pin
NET/C++Developer5-Oct-09 2:56
NET/C++Developer5-Oct-09 2:56 
QuestionHow to Display DataSet.xsd Table in Report.rdlc Table Pin
Francis K Antony4-Oct-09 20:55
Francis K Antony4-Oct-09 20:55 
QuestionGetting Change Event of All controls on a WinForm Pin
εїзεїзεїз3-Oct-09 21:49
εїзεїзεїз3-Oct-09 21:49 
AnswerRe: Getting Change Event of All controls on a WinForm Pin
Eddy Vluggen3-Oct-09 22:02
professionalEddy Vluggen3-Oct-09 22:02 
QuestionUserControl properties don't match in designer and InitializeComponent Pin
dybs1-Oct-09 17:44
dybs1-Oct-09 17:44 
AnswerRe: UserControl properties don't match in designer and InitializeComponent Pin
mp3141512-Oct-09 5:59
mp3141512-Oct-09 5:59 
QuestionWindows Forms: TreeView in SplitContainer flickers on Resizing the screen at runtime Pin
Poornima Naik1-Oct-09 3:24
Poornima Naik1-Oct-09 3:24 
QuestionWindows Forms, data, filter Pin
Ajay Fresher30-Sep-09 23:57
Ajay Fresher30-Sep-09 23:57 

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.