Problems after program change

HARRY

Active Member
Licensed User
Longtime User
Hi,

I am reorganising a quite large program. To simplify a form I created an additional one with the designer. Then I carefully modified the .sbp file with an editor in order to move quite some controls from a panel on the original form to the new form. The panel creation was removed. Now I get two error messages:

When starting the program the message says: The object reference has not been set to an object ( translation from dutch). No further information on the object reference or the object. This message is given before execution of the first statement of App_Start

When compiling the program ( Device, Autoscale) the message says: Error CS0103 The name __main_GPSForm does not exist in the current context.

I must be overlooking something, but what? In Sub designer the creation of the form with its controls is in the same place as the relevant form in the form list.

Does somebody have any idea?


Harry
 

HARRY

Active Member
Licensed User
Longtime User
Hi Erel,

Attached you will find the Designer code of the relevant program, saved as UNI-8 code. I do hope that I didn't make a stupid error.

Thanks in advance for your help!

Harry
 

Attachments

  • Designer.txt
    9 KB · Views: 167

HARRY

Active Member
Licensed User
Longtime User
Hi Erel,

Problem solved! Adding the first control to the GPSForm I wrote GPSForm i.s.o. gpsform. All other controls were added using the word gpsform. After changing the first control it works well.

Thanks,

Harry
 
Top