Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003
This is the forum to discuss the Wrox book Professional VB.NET 2003 by Bill Evjen, Billy Hollis, Rockford Lhotka, Tim McCarthy, Jonathan Pinnock, Rama Ramachandran, Bill Sheldon; ISBN: 9780764559921
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 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 June 18th, 2003, 03:48 PM
Registered User
 
Join Date: Jun 2003
Location: seattle, WA, USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 13 - Creating Your Own Custom Controls

I cannot successfully add a custom user control to a form when following the instruction in chapter 13 (I get an error message) but I did find an alterative that works every time. Here's what to do:

First, create a "Windows Control Library" project and name it "MyControl"

Next, create a user control and add some objects - follow steps 1 thru 6, beginning on page 505 (or create your own sample if you want)

Next, "build" the control (this creates the DLL file that contains the control) then do a Save All. Close the project as we don't need it open any longer

Next, Create a new "Windows Application" project and call it “Controls”

Next, add a new toolbar tab and name it "User Controls"

Next, right-click on your new tab and select “customize toolbar”. Click on the ".NET components" tab then click on Browse. Traverse to the "Bin" folder containing hte DLL file that contains your user control. Click on "Open" and the DLL will be added to the list of .NET framework components. Your user control will be added to the User Controls tab

Next, double-click on the user control and it will be added to your form. You can now use your custom user control on any project! :)

Note that these steps are for visual studio version 2002. The steps are a bit different for verion 2003 (easier actually)

mark_sjolin@hotmail.com

Mark Sjolin
  #2 (permalink)  
Old June 19th, 2003, 04:44 AM
Authorized User
 
Join Date: Jun 2003
Location: Cowes, IOW, United Kingdom.
Posts: 44
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to JonathanC
Default


Hi Mark

I am glad you found a way to move forward. :)




Jonathan Crossland
http://www.jonathancrossland.com
  #3 (permalink)  
Old February 16th, 2004, 09:01 PM
Registered User
 
Join Date: Jun 2003
Location: seattle, WA, USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

FYI in the latest version of .NET, the menu item name has been changed from "customize toolbar" to "Add/Remove Items...".

Mark Sjolin
 


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
Chapter 13 - Registering a Custom Data Extension MBryga BOOK: Professional SQL Server 2005 Reporting Services ISBN: 0-7645-8497-9 2 January 10th, 2008 11:49 AM
Creating web custom controls problem Lerik ASP.NET 1.0 and 1.1 Professional 0 January 6th, 2006 06:39 AM
Creating Web Custom Controls Lerik C# 2005 0 January 6th, 2006 04:55 AM
Ch. 13/14 creating own custom controls...problem.. Chimlim BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 2 August 10th, 2005 04:21 AM
Chapter 13 - Custom Control does not show up Technobob BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 0 November 23rd, 2004 01:01 PM



All times are GMT -4. The time now is 09:45 PM.


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