Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 27th, 2012, 11:41 AM
reaper7861 reaper7861 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2006
Posts: 44 reaper7861 Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 17 h 14 m 43 sec
Reputation Power: 0
Making this a public member of the class

I want to make this piece of code a public member of the class but when i do it gives me an exception, the inner exception is:
The method or operation is not implemented

Here is the code i am trying to make public so i do not have to repeat my code over and over again when i want to check my radio buttons to see if any of them have been clicked.

Code:
Dim typeRadioButton As RadioButton = _
        typeGroupBox.Controls _
        .OfType(Of RadioButton)() _
        .Where(Function(r) r.Checked = True) _
        .FirstOrDefault()


Then inside one function is this
Code:
If typeRadioButton Is Nothing Then
            MessageBox.Show("Type needs to be selected.")
End If
If typeRadioButton.Checked.ToString = True Then
blah blah blah
End if


and then i have it inside my checkout button click event as well and would like to not repeat the code everywhere i need it.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > Making this a public member of the class

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap