This is a migrated thread and some comments may be shown as answers.

Hi I have a problem when adding the radChat1 tool

5 Answers 76 Views
Conversational UI, Chat
This is a migrated thread and some comments may be shown as answers.
Haider
Top achievements
Rank 1
Haider asked on 30 Sep 2018, 02:30 AM

Hi I have a problem when adding the radChat1 tool

 

Pressing the Send Message button shows this 
An unhandled exception of type 'System.ArgumentNullException' occurred in Telerik.WinControls.UI.dll

Additional information: The Author property has to be set to a valid instance when AutoAddUserMessages is set to true.

5 Answers, 1 is accepted

Sort by
0
Accepted
Dimitar
Telerik team
answered on 01 Oct 2018, 09:15 AM
Hello Haider,

You need to assign a valid Author. Here is an example:
radChat1.Author = new Telerik.WinControls.UI.Author(image1, "Author1");

I hope this will be useful. Let me know if you have additional questions.

Regards,
Dimitar
Progress TelerikRadChat for Winforms
0
Haider
Top achievements
Rank 1
answered on 02 Oct 2018, 01:16 AM

Hello 

https://e.top4top.net/p_1004i8tka1.gif

0
Dimitar
Telerik team
answered on 02 Oct 2018, 10:23 AM
Hi Haider,

This is marked as answered. Do you still have issues with this?

I am looking forward to your reply.
 
Regards,
Dimitar
Progress TelerikRadChat for Winforms
0
Haider
Top achievements
Rank 1
answered on 04 Oct 2018, 02:54 AM
Thank you, the issue has been resolved
I have another question how to change icon the button of toolbar
0
Dimitar
Telerik team
answered on 04 Oct 2018, 07:27 AM
Hi Haider,

The following snippet shows how you ca n set the image (by default the button shows text):
radChat1.ChatElement.ShowToolbarButtonElement.Text = "";
radChat1.ChatElement.ShowToolbarButtonElement.Image = Image.FromFile(@"C:\img\delete.png");

Do not hesitate to contact us if you have other questions.
 
Regards,
Dimitar
Progress TelerikRadChat for Winforms
Tags
Conversational UI, Chat
Asked by
Haider
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Haider
Top achievements
Rank 1
Share this question
or