View Single Post
  #2 (permalink)  
Old July 20th, 2008, 05:46 PM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi there,

Simply create a copy of the existing method in the same class, add the keyword Overloads and one or more extra parameters (like ByVal overwrite As Boolean) and you're good to go. From then, you can call the new method by supplying additional parameters.

For more info:

http://www.xtremevbtalk.com/showthread.php?t=156549
http://www.google.com/search?hl=en&q=vb.net+overloads

Hope this helps,

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.