Click here to Skip to main content
15,896,118 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to waiti for specific events that occurs Pin
freakyit1-Dec-09 22:55
freakyit1-Dec-09 22:55 
AnswerRe: how to waiti for specific events that occurs Pin
abiemann2-Dec-09 7:37
abiemann2-Dec-09 7:37 
QuestionHow to check a groupbox for checked radiobuttons dynamicaly Pin
gwithey1-Dec-09 21:16
gwithey1-Dec-09 21:16 
AnswerRe: How to check a groupbox for checked radiobuttons dynamicaly Pin
dan!sh 1-Dec-09 21:49
professional dan!sh 1-Dec-09 21:49 
GeneralRe: How to check a groupbox for checked radiobuttons dynamicaly Pin
gwithey1-Dec-09 21:53
gwithey1-Dec-09 21:53 
GeneralRe: How to check a groupbox for checked radiobuttons dynamicaly Pin
freakyit1-Dec-09 22:06
freakyit1-Dec-09 22:06 
GeneralRe: How to check a groupbox for checked radiobuttons dynamicaly Pin
gwithey1-Dec-09 22:41
gwithey1-Dec-09 22:41 
GeneralRe: How to check a groupbox for checked radiobuttons dynamicaly Pin
gwithey1-Dec-09 22:20
gwithey1-Dec-09 22:20 
I have tried this solution however the following error occurs which i do not understand

Error	1	foreach statement cannot operate on variables of type
'System.Windows.Forms.GroupBox' because 'System.Windows.Forms.GroupBox'
does not contain a public definition for 'GetEnumerator'


The code is as follows:
// In Draw mode
if (rbDraw.Checked == true)
{
   // Ceck each rb in Shape groupBox
   foreach (RadioButton rb in gbShape)
   {
      if (rb.Checked == true)
      {
         // If checked shape selected = the tag (shape enum set in designer) of the button
         imageViewer1.ShapeSelected = (FileScroller.ImageViewer.Shape)rb.Tag;
      }
   }
}

GeneralRe: How to check a groupbox for checked radiobuttons dynamicaly Pin
freakyit1-Dec-09 22:39
freakyit1-Dec-09 22:39 
GeneralRe: How to check a groupbox for checked radiobuttons dynamicaly Pin
gwithey1-Dec-09 22:50
gwithey1-Dec-09 22:50 
GeneralRe: How to check a groupbox for checked radiobuttons dynamicaly Pin
freakyit1-Dec-09 22:57
freakyit1-Dec-09 22:57 
GeneralRe: How to check a groupbox for checked radiobuttons dynamicaly Pin
gwithey1-Dec-09 23:08
gwithey1-Dec-09 23:08 
QuestionOpen a text file in Notepad Pin
Hardus Lombaard1-Dec-09 21:12
Hardus Lombaard1-Dec-09 21:12 
AnswerRe: Open a text file in Notepad Pin
Calla1-Dec-09 21:19
Calla1-Dec-09 21:19 
AnswerRe: Open a text file in Notepad Pin
Luc Pattyn2-Dec-09 1:14
sitebuilderLuc Pattyn2-Dec-09 1:14 
GeneralRe: Open a text file in Notepad Pin
Hardus Lombaard20-Jul-10 22:09
Hardus Lombaard20-Jul-10 22:09 
Questiontruncate all data tables Pin
akram30021-Dec-09 20:33
akram30021-Dec-09 20:33 
AnswerRe: truncate all data tables Pin
dan!sh 1-Dec-09 20:44
professional dan!sh 1-Dec-09 20:44 
GeneralRe: truncate all data tables Pin
akram30021-Dec-09 23:04
akram30021-Dec-09 23:04 
QuestionProxy Classes - Copy/Paste Pre-compiler Pin
Iain Wiseman1-Dec-09 19:09
Iain Wiseman1-Dec-09 19:09 
AnswerRe: Proxy Classes - Copy/Paste Pre-compiler Pin
dan!sh 1-Dec-09 20:04
professional dan!sh 1-Dec-09 20:04 
GeneralRe: Proxy Classes - Copy/Paste Pre-compiler Pin
Iain Wiseman1-Dec-09 20:17
Iain Wiseman1-Dec-09 20:17 
GeneralRe: Proxy Classes - Copy/Paste Pre-compiler Pin
dan!sh 1-Dec-09 20:27
professional dan!sh 1-Dec-09 20:27 
GeneralRe: Proxy Classes - Copy/Paste Pre-compiler Pin
Dave Kreskowiak2-Dec-09 1:09
mveDave Kreskowiak2-Dec-09 1:09 
QuestionSelecting from datatable Pin
myinstincts1-Dec-09 18:17
myinstincts1-Dec-09 18:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.