Click here to Skip to main content
15,919,340 members
Home / Discussions / C#
   

C#

 
GeneralRe: Change font inside a string Pin
WetRivrRat26-Jul-05 8:41
WetRivrRat26-Jul-05 8:41 
GeneralRe: Change font inside a string Pin
Dario Solera26-Jul-05 8:49
Dario Solera26-Jul-05 8:49 
GeneralRe: Change font inside a string Pin
WetRivrRat26-Jul-05 8:55
WetRivrRat26-Jul-05 8:55 
GeneralIEnumerator for selecting only controls of a given type Pin
JakeHolt26-Jul-05 7:23
JakeHolt26-Jul-05 7:23 
GeneralRe: IEnumerator for selecting only controls of a given type Pin
Luis Alonso Ramos26-Jul-05 8:15
Luis Alonso Ramos26-Jul-05 8:15 
GeneralRe: IEnumerator for selecting only controls of a given type Pin
JakeHolt27-Jul-05 5:11
JakeHolt27-Jul-05 5:11 
GeneralRe: IEnumerator for selecting only controls of a given type Pin
Luis Alonso Ramos27-Jul-05 5:26
Luis Alonso Ramos27-Jul-05 5:26 
GeneralRe: IEnumerator for selecting only controls of a given type Pin
JakeHolt27-Jul-05 6:27
JakeHolt27-Jul-05 6:27 
Ok, I was really suprised at how fast this was processing using the collection versus the way I was doing it before, so naturally I decided to chop out more lines of code and put all my panels inside another panel and went about processing only the panel controls (the panels that contained the check boxes). Oddly though it only seems to find/process the last panel of three. Any ideas what would cause this?

<br />
foreach(Control ctrl in mainPanel.Controls)<br />
{<br />
  Panel p = ctrl as Panel;<br />
  if(p == null) continue;<br />
  else<br />
  {<br />
      foreach(Control ctl in p.Controls)<br />
      {<br />
          CheckBox chk = ctl as CheckBox;<br />
	  if(chk == null) continue;<br />
	  else<br />
	  {<br />
            if(chk.Text == "Check All" || chk.Text == "Uncheck All") continue;<br />
else<br />
{<br />
	     if(chk.Checked)<br />
	     {<br />
	        sql += " " + chk.Text + "=1,";<br />
	     }<br />
	     else<br />
             {<br />
		sql += " " + chk.Text + "=0,";<br />
	     }<br />
}<br />
          }<br />
   }<br />
}<br />
}


Thanks again, Jake
GeneralRe: IEnumerator for selecting only controls of a given type Pin
Luis Alonso Ramos27-Jul-05 6:50
Luis Alonso Ramos27-Jul-05 6:50 
GeneralRe: IEnumerator for selecting only controls of a given type Pin
JakeHolt27-Jul-05 7:03
JakeHolt27-Jul-05 7:03 
GeneralRe: IEnumerator for selecting only controls of a given type Pin
Luis Alonso Ramos27-Jul-05 7:22
Luis Alonso Ramos27-Jul-05 7:22 
GeneralTabControl Pin
zaboboa26-Jul-05 6:39
zaboboa26-Jul-05 6:39 
GeneralRe: TabControl Pin
Alomgir Miah26-Jul-05 7:08
Alomgir Miah26-Jul-05 7:08 
GeneralRe: TabControl Pin
zaboboa26-Jul-05 7:22
zaboboa26-Jul-05 7:22 
GeneralRe: TabControl Pin
Alomgir Miah26-Jul-05 7:31
Alomgir Miah26-Jul-05 7:31 
GeneralRe: TabControl Pin
zaboboa26-Jul-05 7:37
zaboboa26-Jul-05 7:37 
GeneralRe: TabControl Pin
Alomgir Miah26-Jul-05 8:07
Alomgir Miah26-Jul-05 8:07 
GeneralRe: TabControl Pin
Luis Alonso Ramos26-Jul-05 8:34
Luis Alonso Ramos26-Jul-05 8:34 
GeneralRe: TabControl Pin
zaboboa27-Jul-05 3:20
zaboboa27-Jul-05 3:20 
GeneralRe: TabControl Pin
Luis Alonso Ramos27-Jul-05 4:37
Luis Alonso Ramos27-Jul-05 4:37 
GeneralRe: TabControl Pin
Luis Alonso Ramos26-Jul-05 13:50
Luis Alonso Ramos26-Jul-05 13:50 
GeneralRe: TabControl Pin
zaboboa27-Jul-05 6:51
zaboboa27-Jul-05 6:51 
GeneralRe: TabControl Pin
Luis Alonso Ramos27-Jul-05 7:01
Luis Alonso Ramos27-Jul-05 7:01 
GeneralRe: TabControl Pin
zaboboa27-Jul-05 7:34
zaboboa27-Jul-05 7:34 
GeneralRe: TabControl Pin
Luis Alonso Ramos27-Jul-05 7:40
Luis Alonso Ramos27-Jul-05 7:40 

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.