You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Error: Object reference not set to an instance of an object

Accepted answer
9
Views
3
Comments
edited Feb 12, 2017 6:33PM in UI Extensibility 3 comments

Content

Hi Folks,

Requirement: For Tasks under Incident record in Incident workspace, if I click on Add New button (I have created a custom user control for this) then a task workspace should open with Task Name pre-populated with Incident Subject. Incident reference number should be auto-populated in Incident field on Task workspace (like it works in out of the box).

Approach: Workspace add-in, but getting below error. Not sure what needs to be added to get rid of this error. No error while building the project.

If anyone can suggest about the resolution.

~Shreyas

Version

Aug 2016

Code Snippet

                  public System.Windows.Forms.Control GetControl()
        {
            uc1 = new UserControl1();
            uc1.buttonClick += Uc1_buttonClick;
            return uc1;
        }

        private void Uc1_buttonClick()
        {
   

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!