Go Back   TX Text Control Community > TX Text Control Discussion and Support Forums > TX Text Control .NET

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.

Reply
 
Thread Tools Display Modes
  #1  
Old March 8, 2010
sjngoal sjngoal is offline
Registered User
 
Join Date: Sep 2009
Posts: 10
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
Reply With Quote
  #2  
Old March 18, 2010
Gunnar Giffey's Avatar
Gunnar Giffey Gunnar Giffey is offline
TX Support Engineer
TX Text Control
 
Join Date: Sep 2004
Location: Bremen, Germany
Posts: 4,083
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]
Reply With Quote
Reply

Bookmarks

Tags
image

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


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


All times are GMT +1. The time now is 20:30:17.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© 1991 - 2010 The Imaging Source Europe GmbH