# ScreenMaker compile error after delete a screen

**URL:** <https://tech-community.robotics.abb.com/t/screenmaker-compile-error-after-delete-a-screen/2589>\
**Category:** ScreenMaker\
**Created:** [March 12, 2009, 6:44am UTC](https://tech-community.robotics.abb.com/t/screenmaker-compile-error-after-delete-a-screen/2589 "2009-03-12T06:44:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jing](https://avatars.discourse-cdn.com/v4/letter/j/71e660/32.png) [@Jing](https://tech-community.robotics.abb.com/u/Jing)\
**Post date:** [March 12, 2009, 6:44am UTC](https://tech-community.robotics.abb.com/t/screenmaker-compile-error-after-delete-a-screen/2589/1 "2009-03-12T06:44:55Z")

</div>

Senario:

1. create screen like the following structure:

Mainscreen  
|-- RapidDatas screen  
|-- B screen

1. add a button “OpenSingal” to Mainscreen, add click event to this “OpenSingal” button. the detail of that event is open A screen.

2. Delete RapidDatas screen and OpenSingal button

3. Compile screenmaker project, error "ScreenMaker → Build Error → Screen c:DataMy ScreenMaker ProjectsFlexPalletize mpMainScreen.cs - Line 619 : The type or namespace name ‘RapidDatas’ could not be found (are you missing a using directive or an assembly reference?) 3/12/2009 1:19:57 PM ScreenMaker "

a. I open the MainScreen.view.cs file, I found that the event method bound with “OpenSingal” button is still there although I’ve delete the “OpenSingal” button.

b. I delete that OpenSignal\_Click event, recompile again, error is the same.

c. Open the MainScreen.view.cs file again, modification I done is gone away.

Do you know how to resolve it??

---

<div class="post-metadata">

**Author:** ![carlosmtz2000](https://avatars.discourse-cdn.com/v4/letter/c/e79b87/32.png) [@carlosmtz2000](https://tech-community.robotics.abb.com/u/carlosmtz2000)\
**Post date:** [March 12, 2009, 1:30pm UTC](https://tech-community.robotics.abb.com/t/screenmaker-compile-error-after-delete-a-screen/2589/2 "2009-03-12T13:30:36Z")

</div>

Hi Jing,

Regarding 4a, there have been different ideas if what is the best; currently after deleting any UI control, all the methods that are linked to this control are deleted (unless the method has one instruction, which is this case)

Regarding 4b and 4c, have you try to clean or rebuild your project?. If this does noe help can you send me your c# and view files of the screen?

BR

---

<div class="post-metadata">

**Author:** ![carlosmtz2000](https://avatars.discourse-cdn.com/v4/letter/c/e79b87/32.png) [@carlosmtz2000](https://tech-community.robotics.abb.com/u/carlosmtz2000)\
**Post date:** [March 13, 2009, 2:36pm UTC](https://tech-community.robotics.abb.com/t/screenmaker-compile-error-after-delete-a-screen/2589/3 "2009-03-13T14:36:39Z")

</div>

Hi Jing,

You can open the cs file that ScreenMaker writes when trying to compile. If you look at line 619, you will see the event handler to which this line exists. Then you can go inside the Events Panel dialog and delete that specific event handler.

BR/Carlos

---

<div class="post-metadata">

**Author:** ![Jing](https://avatars.discourse-cdn.com/v4/letter/j/71e660/32.png) [@Jing](https://tech-community.robotics.abb.com/u/Jing)\
**Post date:** [March 16, 2009, 2:01am UTC](https://tech-community.robotics.abb.com/t/screenmaker-compile-error-after-delete-a-screen/2589/4 "2009-03-16T02:01:08Z")

</div>

Works now. Thanks Carlos!
