Click here to Skip to main content
15,913,758 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am writing a code, to call agents character in windows form, I wrote code well, without error, but when I click button, the character start in the corner of Desktop.
I want that the character to start at any toolbox, for ex. textbox or label or anything else.

so the point is that, I dont want the character to load out of my windows form, i want the character to start insade the textbox, or richbox, or group box ect..

What I have tried:

I have button, and I wrote an event code to that button as:
textbox1.text = axAgent.Character["merlin.acs"]

Usually I have a message error, related with type of converting.
Posted
Comments
[no name] 20-Oct-16 8:16am    
If you think that axAgent.Character["merlin.acs"] is somehow a string and can be assigned to the Text property of a textbox, then you seriously need to get a decent book on programming and work through it. You demonstrate lack of fundamental knowledge of programming.
h5h5 20-Oct-16 8:29am    
Yes, you are right!
But, what is any opportunity,that axAgent.Character["merlin.acs"], when application start, not to be displayed in the lef corner up of the desktop, but to be desplayed in windows form application.
Thnx!
[no name] 20-Oct-16 11:32am    
If you are going to use outdated and unsupported components in your application, you need to find the documentation and read through it before it disappears. Did you even try to use the MoveTo method to move your agent to a location? https://msdn.microsoft.com/en-us/library/ms695950(v=vs.85).aspx
h5h5 21-Oct-16 2:47am    
yes, my friend, MoveTo is a method to move character after the character is loaded, my point is, when I push a button, character to load, but not in the same place always, to load in another position when I push button.
Point is: to write code for character, and to say, load near the button, or near inside winform.
Thnx.
h5h5 21-Oct-16 2:59am    
by the way, dear friend.
I download another character, but when I loaded, always is this message: " An application is attempting to load a Microsoft Agent character from an untrusted Web Site. Do you want to allow this character to be loaded? " ...how to avoid this message and to load agents with out it.
I tried to put in the trusted zone the web site where I downloaded this character, but again same?
I am sorry, for a lot of questions, I need to finish it soon

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900