# Trouble with abb namespaces

**URL:** <https://tech-community.robotics.abb.com/t/trouble-with-abb-namespaces/8058>\
**Category:** Developer Tools\
**Tags:** c, flexpendant-sdk, robotstudio-sdk\
**Created:** [January 25, 2018, 8:32am UTC](https://tech-community.robotics.abb.com/t/trouble-with-abb-namespaces/8058 "2018-01-25T08:32:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roman\_Pleshakov](https://avatars.discourse-cdn.com/v4/letter/r/90db22/32.png) [@Roman\_Pleshakov](https://tech-community.robotics.abb.com/u/Roman_Pleshakov)\
**Post date:** [January 25, 2018, 8:32am UTC](https://tech-community.robotics.abb.com/t/trouble-with-abb-namespaces/8058/1 "2018-01-25T08:32:24Z")

</div>

Hello, I have a conflict with abb namespaces and windows standart namespaces in my custom flexpendant app.  
I need to draw figure using a special method (for example: g.DrawRectangle(new Pen(Color.Black), x1 + X\_offset, y1 + Y\_offset, b, h)).  
It works right with the **int** type of variables. However, when I use **float** type I get the following error:

_Error 1 The best overloaded method match for ‘System.Drawing.Graphics.DrawRectangle(System.Drawing.Pen, int, int, int, int)’_  
_Error 2 Argument ‘2’: cannot convert from ‘float’ to ‘int’_

Everything works fine if I create a project in standart WindowsFormApplication.  
I think this is due to the conflict of namespaces, which I declare on the top.

_using System.Collections.Generic;_  
_using System.ComponentModel;_  
_using System.Text;_  
_using System.Drawing.Imaging;_  
_using System.Windows.Forms;_

_using ABB.Robotics.Controllers;_  
_using ABB.Robotics.Tps.Taf;_  
_using ABB.Robotics.Tps.Windows.Forms;_  
_using ABB.Robotics.Tps.Drawing;_  
_using ABB.Robotics.Controllers.FileSystemDomain;_

Please, help me.

---

<div class="post-metadata">

**Author:** ![Johannes\_Weiman](https://avatars.discourse-cdn.com/v4/letter/j/e47c2d/32.png) [@Johannes\_Weiman](https://tech-community.robotics.abb.com/u/Johannes_Weiman)\
**Post date:** [January 25, 2018, 9:27am UTC](https://tech-community.robotics.abb.com/t/trouble-with-abb-namespaces/8058/2 "2018-01-25T09:27:53Z")

</div>

Hi,  
It has nothing to do with namespaces. The overload that uses floats is simply not supported on .Net Compact Framework.

Johannes

---

<div class="post-metadata">

**Author:** ![Roman\_Pleshakov](https://avatars.discourse-cdn.com/v4/letter/r/90db22/32.png) [@Roman\_Pleshakov](https://tech-community.robotics.abb.com/u/Roman_Pleshakov)\
**Post date:** [January 25, 2018, 9:41am UTC](https://tech-community.robotics.abb.com/t/trouble-with-abb-namespaces/8058/3 "2018-01-25T09:41:02Z")

</div>

> [@](#):
>
> It has nothing to do with namespaces. The overload that uses floats is simply not supported on .Net Compact Framework.

Sad news 😕 Thanks!
