C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




How to move textbox control at runtime


Posted Date: 04 May 2008    Resource Type: Code Snippets    Category: Winforms Controls
Author: Rekha Member Level: Gold    
Rating: Points: 15



The following code snippet shows how to move textbox control at runtime
put a textbox called textbox1
Declare the constants :

Public Const BUTTONDOWN = &HA1
Public Const CAPTION = 2

Private Sub TextBox1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles TextBox1.MouseDown
If e.Button = Windows.Forms.MouseButtons.Left Then
TextBox1.Capture = False
Dim msg As Message = _
Message.Create(TextBox1.Handle, BUTTONDOWN, _
New IntPtr(CAPTION), IntPtr.Zero)
Me.DefWndProc(msg)
End If
End Sub




Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Number of Items in System.Windows.Forms.ListBox control
Previous Resource: Read Data from an XML File into a Listbox using C#
Return to Discussion Resource Index
Post New Resource
Category: Winforms Controls


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use