Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Beginning VB 6
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 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
 
Old November 5th, 2004, 05:48 PM
Registered User
 
Join Date: Sep 2003
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Moving between pages in multipage control

Using VBA/Word 2000. Have a MultiPage control. I want to put a command button on each page so that when clicked, the user goes to the next page.

Apparently, just a Click event doesn't work.

Any suggestions will be greatly appreciated.

Thanks.

Larry Landis

Larry Landis
Technical Writer
 
Old November 24th, 2004, 04:49 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

The pages are numbered, 0-based.
If your control is named MP_1, to go to the 2nd page through cmdPage2’s click:

Private Sub cmdPage2_Click()
    MP_1.value = 1
End Sub





Similar Threads
Thread Thread Starter Forum Replies Last Post
Control IDs in content pages LMIILM BOOK: Professional ASP.NET 2.0 Design: CSS, Themes, and Master Pages ISBN: 978-0-470-12448-2 1 December 8th, 2007 06:30 AM
Moving rows in Datagrid view control in C# Bob337 General .NET 0 June 9th, 2007 10:13 AM
Dynamic control moving Ramacharyulu C# 2005 3 March 9th, 2007 12:11 AM
Referencing Fields within Tab Control Pages -Help TomW Access VBA 1 October 30th, 2006 01:31 PM
TapStrip-MultiPage control mishi ASP.NET 1.x and 2.0 Application Design 2 April 11th, 2005 07:28 AM





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