Click here to Skip to main content
15,911,531 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello;
I use GlassButtons instead of the vb ones, and I have a .dll called EnhancedGlassButton provided in this link
https://onedrive.live.com/redir?resid=455D5176ECDB5D16%21120[^]

My problem is that when I debug an exception is thrown ('Parameter is not Valid').
This is what I do in code:
add EnhancedGlassButton.dll to the references
change

VB
Friend WithEvents Button3 As System.Windows.Forms.Button
Me.Button3 = New System.Windows.Forms.Button()


to

VB
Friend WithEvents Button3 As EnhancedGlassButton.GlassButton
Me.Button3 = New EnhancedGlassButton.GlassButton()   '(line where exception is thrown)

so why I'm seeing this exception ? And how can I solve it?
Posted

1 solution

How would we know? :laugh:

You need to talk to whoever created your GlassButtons - they will know the code and have a much better idea than we would. So start with where you got the link from, and work from there.
If it was an article here, then there is a message facility at the bottom of the article which lets you talk directly to the author.
 
Share this answer
 
Comments
Member 9451601 26-Aug-14 12:03pm    
I was able to obtain its code if this can help
OriginalGriff 26-Aug-14 14:01pm    
The best person to deal with problems like this is the person who wrote it!
Member 9451601 27-Aug-14 11:11am    
I commented on his article but he's not replying

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900