|
|||||||
| TX Text Control .NET Please use this forum for TX Text Control .NET support only. If you need support for a different product, please use the appropriate forum. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
#1
|
|||
|
|||
|
move an image
is it possible to move an image in code? I would like to allow the user to move the image using the arrow keys. I read an old post from 2005 (version 11 and 12 were discussed) and the reply was this cannot be done. Has this changed now?
On version 15.0 |
|
#2
|
||||
|
||||
|
Re: move an image
Hello there,
Moving an image with the arrow keys is possible with version 15.1. Here is a code snippet that features the arrow down key to move the image: Code:
private void textControl1_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Down)
{
TXTextControl.Image moveMe = textControl1.Images.GetItem(100);
if (moveMe != null)
{
moveMe.Location = new Point(moveMe.Location.X, moveMe.Location.Y + 100);
}
}
}
__________________
Regards, Gunnar Giffey, TX Text Control [Forum Administrator] |
![]() |
| Bookmarks |
| Tags |
| image |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Directly saving image from webpage | SpeeDEV | TX Text Control ActiveX | 10 | April 1, 2008 17:01:38 |
| how to retrieve an image? | blau | TX Text Control .NET | 5 | June 18, 2007 10:48:05 |
| Possible to use .NET Image type with TX Text Control Image type? | MatthewTheRaven | TX Text Control .NET | 1 | March 9, 2007 07:23:41 |
| How to move an image in HTML document | hagenson | TX Text Control .NET | 1 | April 18, 2005 14:37:07 |
| Missinjg Image Behavior changed in TX10, | Unregistered | TX Text Control ActiveX | 0 | July 8, 2003 21:51:00 |