Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old April 22nd, 2004, 09:32 AM
Authorized User
 
Join Date: Apr 2004
Location: , , .
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default moving a button in code

I want to set the location of a button in my code. If I set it in the properties box it is at 48, 200, but I want to move it around once somebody is using the program

btn.location() = ??????
It didn't like btn.location() = (48, 200)


  #2 (permalink)  
Old April 22nd, 2004, 11:20 AM
Authorized User
 
Join Date: Jun 2003
Location: Farmington, NM, USA.
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hola,

You need to use a drawing point like below.

btn.Location = New System.Drawing.Point(48,200)
Hope this helps! -RK

  #3 (permalink)  
Old April 22nd, 2004, 01:40 PM
Authorized User
 
Join Date: Apr 2004
Location: , , .
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

That did it. Thank you!



Similar Threads
Thread Thread Starter Forum Replies Last Post
Add a button with code into Excel hewstone999 Access VBA 0 March 18th, 2008 06:08 AM
Moving the new/insert button on DetailsView jpullam ASP.NET 2.0 Basics 3 September 27th, 2007 05:29 PM
error while moving code from dotnet1.1 to dotnet2. bharatp80 .NET Framework 2.0 1 May 16th, 2006 03:59 PM
Moving code to new server sporkman43 Crystal Reports 0 August 2nd, 2004 02:05 PM





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