Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 2012 > Visual Basic 2012 General Discussion
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Visual Basic 2012 General Discussion For any discussions about Visual Basic 2012topics which aren't related to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Basic 2012 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 22nd, 2014, 04:08 PM
Posts: n/a
Question changing coordinates for a label in VB

I am using VB 2012. I am trying to write the code that changes the location of a label in a container. In other words, I am trying to set the X and Y coordinates of the Label within the container. It is simple to do it by changing the properties in the The Designer, bu I need to do it with code. Below is the code that I am trying to use, but it fails:


Can anyone explain to me how this is done? I have tried everything.
The part following the X (=100) and the part following the Y (=80) apparently are not correct.

Thank you,
Mike Smith
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
changing coordinates for a label in VB MikeSmith88 Visual Basic 2012 General Discussion 0 February 22nd, 2014 04:07 PM
Excel VB : How to change Label Caption papanchal Excel VBA 1 September 22nd, 2008 04:46 PM
Changing table field types in VB scubasteve Access VBA 1 June 12th, 2006 12:24 PM
Create dynamic label in vb.net snowydust VB How-To 1 July 24th, 2004 05:32 AM
Changing Crystal Report Title from VB Code Niaz Pro VB Databases 4 June 9th, 2004 09:51 PM

All times are GMT -4. The time now is 04:15 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.