0

Weird issue: I have application that I fire some code in the Form_Paint event for the main form, it works fine on my machine, but on other machines is not working at all.

I tried to debug the code on the other machine, and Form_Paint event is not triggered at all!

Simon MᶜKenzie
  • 8,344
  • 13
  • 50
  • 77

2 Answers2

0

the other machine may not have the .net framework installed. I ran into this problem when I made a great screen capture program and wanted to try it out on my laptop with windows xp installed. Debug will not work but if you were to build the file and have the other machine install the .exe with the framework packaged with it then you'll be fine.

  • It appears that the code _is_ running on the other machine - "Form_Paint event is not triggered at all", so a missing framework can't be the problem... – Simon MᶜKenzie Jun 04 '12 at 06:22
  • I've had this happen twice and once it was definitely the lack of the .NET framework. The other time I created a new vb project on my machine that was giving me problems and just copied the code over. It took some time but in the end it worked on both machines. – SecurityForces Jun 05 '12 at 17:19
  • Certainly, if the framework is missing, the code won't run, but if so, the OP would have seen the "this program requires the .NET framework to continue" message, or, on framework 1.x, the program would have crashed out with a 0x... error. No crash was mentioned in the question, however. – Simon MᶜKenzie Jun 05 '12 at 23:34
0

if it's working on your machine so it should work on others, try to put messagebox that show message and check if it fires on others machine or not, because maybe debug mode is not activated.

Wael Dalloul
  • 22,172
  • 11
  • 48
  • 57