# SmartComponentCodeBehind.OnInitialize Method

**URL:** <https://tech-community.robotics.abb.com/t/smartcomponentcodebehind-oninitialize-method/8990>\
**Category:** Developer Tools\
**Created:** [July 23, 2019, 5:07pm UTC](https://tech-community.robotics.abb.com/t/smartcomponentcodebehind-oninitialize-method/8990 "2019-07-23T17:07:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![DenisFR](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@DenisFR](https://tech-community.robotics.abb.com/u/DenisFR)\
**Post date:** [July 23, 2019, 5:07pm UTC](https://tech-community.robotics.abb.com/t/smartcomponentcodebehind-oninitialize-method/8990/1 "2019-07-23T17:07:34Z")

</div>

Hello,  
Could someone explain me this methods?  
[http://developercenter.robotstudio.com/blobproxy/devcenter/RobotStudio/html/8691d93a-4040-d579-0e34-41a269cea904.htm](http://developercenter.robotstudio.com/blobproxy/devcenter/RobotStudio/html/8691d93a-4040-d579-0e34-41a269cea904.htm)

I cannot get it working. Never called.

---

<div class="post-metadata">

**Author:** ![DenisFR](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@DenisFR](https://tech-community.robotics.abb.com/u/DenisFR)\
**Post date:** [January 21, 2020, 5:50pm UTC](https://tech-community.robotics.abb.com/t/smartcomponentcodebehind-oninitialize-method/8990/2 "2020-01-21T17:50:25Z")

</div>

Up

---

<div class="post-metadata">

**Author:** ![Maxim](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/maxim/32/4429_2.png) [@Maxim](https://tech-community.robotics.abb.com/u/Maxim)\
**Post date:** [April 9, 2020, 10:54am UTC](https://tech-community.robotics.abb.com/t/smartcomponentcodebehind-oninitialize-method/8990/3 "2020-04-09T10:54:15Z")

</div>

Hello Denis,

Have you see this reference: [http://developercenter.robotstudio.com/blobproxy/devcenter/RobotStudio/html/34d33a0a-01ab-465d-93ac-cab319cac46e.htm](http://developercenter.robotstudio.com/blobproxy/devcenter/RobotStudio/html/34d33a0a-01ab-465d-93ac-cab319cac46e.htm)

I can’t explain that method, but perhaps you’d want to use the OnLoad method instead?

---

<div class="post-metadata">

**Author:** ![DenisFR](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@DenisFR](https://tech-community.robotics.abb.com/u/DenisFR)\
**Post date:** [April 13, 2020, 9:42am UTC](https://tech-community.robotics.abb.com/t/smartcomponentcodebehind-oninitialize-method/8990/4 "2020-04-13T09:42:28Z")

</div>

Hello @Maxim ,  
Thanks a lot.  
No I haven’t see that. Should be added to ‘See Also’ section.

Could someone review my codes in [https://github.com/DenisFR all RS repos](https://github.com/DenisFR?tab=repositories).  
So they could be added to example.

---

<div class="post-metadata">

**Author:** ![Maxim](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/maxim/32/4429_2.png) [@Maxim](https://tech-community.robotics.abb.com/u/Maxim)\
**Post date:** [April 14, 2020, 10:44am UTC](https://tech-community.robotics.abb.com/t/smartcomponentcodebehind-oninitialize-method/8990/5 "2020-04-14T10:44:39Z")

</div>

Hello Denis,

In regards to SmartComponent examples, have you seen this post: [https://forums.robotstudio.com/discussion/12091/finding-example-code-for-building-smartcomponents](https://forums.robotstudio.com/discussion/12091/finding-example-code-for-building-smartcomponents#latest)

I will have a look at your code when I get some spare time 🙂

---

<div class="post-metadata">

**Author:** ![DenisFR](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@DenisFR](https://tech-community.robotics.abb.com/u/DenisFR)\
**Post date:** [April 14, 2020, 2:44pm UTC](https://tech-community.robotics.abb.com/t/smartcomponentcodebehind-oninitialize-method/8990/6 "2020-04-14T14:44:54Z")

</div>

Hello,  
I didn’t know this software.  
I’ll have a look at this ASAP.  
Thanks  
Maybe I’ve found some guidance for this topic:

> **[ABB Robotics Community - Maintenance](https://forums.robotstudio.com/discussion/12018/objectbrowser-to-wpftreeview-conversion)**
