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
Sign In
Register
AdSense Revenue
Active Members
Today
Appukuttan
(94)
Abhi
(72)
Babu Akkandi
(63)
Last 7 Days
Appukuttan
(619)
Babu Akkandi
(470)
divya
(321)
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
Sign In
(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
Notify Icon
Drag and Drop in the List View
Drag Drop WinForm Control at RunTime
Cute ActiveX Control
Numeric Text Box (Accept only numbers)
dotNet Slackers
BizTalk Adaptors
Web Design
Contact Us
Privacy Policy
Terms Of Use