Click here to Skip to main content
15,921,697 members
Home / Discussions / C#
   

C#

 
GeneralRe: Eye that follow cursor of the mouse Pin
AspDotNetDev4-Nov-10 10:13
protectorAspDotNetDev4-Nov-10 10:13 
GeneralRe: Eye that follow cursor of the mouse Pin
VisualLive4-Nov-10 10:41
VisualLive4-Nov-10 10:41 
GeneralRe: Eye that follow cursor of the mouse Pin
AspDotNetDev4-Nov-10 12:18
protectorAspDotNetDev4-Nov-10 12:18 
GeneralRe: Eye that follow cursor of the mouse Pin
Chris Maunder4-Nov-10 19:21
cofounderChris Maunder4-Nov-10 19:21 
GeneralRe: Eye that follow cursor of the mouse Pin
VisualLive4-Nov-10 21:06
VisualLive4-Nov-10 21:06 
AnswerRe: Eye that follow cursor of the mouse Pin
Richard MacCutchan4-Nov-10 23:27
mveRichard MacCutchan4-Nov-10 23:27 
GeneralRe: Eye that follow cursor of the mouse Pin
VisualLive5-Nov-10 0:01
VisualLive5-Nov-10 0:01 
QuestionCustomize VS2010 Start Page Pin
Kevin Marois4-Nov-10 8:48
professionalKevin Marois4-Nov-10 8:48 
AnswerRe: Customize VS2010 Start Page Pin
Nish Nishant4-Nov-10 9:45
sitebuilderNish Nishant4-Nov-10 9:45 
GeneralRe: Customize VS2010 Start Page Pin
RaviRanjanKr16-Nov-10 2:40
professionalRaviRanjanKr16-Nov-10 2:40 
Questionfull text search Pin
annie_bel4-Nov-10 3:31
annie_bel4-Nov-10 3:31 
AnswerRe: full text search Pin
JohnLBevan4-Nov-10 3:53
professionalJohnLBevan4-Nov-10 3:53 
AnswerRe: full text search Pin
Adam R Harris4-Nov-10 4:53
Adam R Harris4-Nov-10 4:53 
QuestionImpersonation using C# Pin
JohnLBevan4-Nov-10 1:45
professionalJohnLBevan4-Nov-10 1:45 
AnswerRe: Impersonation using C# Pin
Adam R Harris4-Nov-10 4:49
Adam R Harris4-Nov-10 4:49 
AnswerRe: Impersonation using C# Pin
Manfred Rudolf Bihy4-Nov-10 5:06
professionalManfred Rudolf Bihy4-Nov-10 5:06 
GeneralRe: Impersonation using C# Pin
JohnLBevan9-Nov-10 5:43
professionalJohnLBevan9-Nov-10 5:43 
GeneralRe: Impersonation using C# Pin
Manfred Rudolf Bihy12-Nov-10 2:07
professionalManfred Rudolf Bihy12-Nov-10 2:07 
QuestionServer based on AsyncCallback not running as expected Pin
Tichaona J4-Nov-10 1:08
Tichaona J4-Nov-10 1:08 
AnswerRe: Server based on AsyncCallback not running as expected Pin
jschell4-Nov-10 8:32
jschell4-Nov-10 8:32 
QuestionGot a working ICMP listener; but how does it work? Pin
nebbukadnezzar4-Nov-10 0:28
nebbukadnezzar4-Nov-10 0:28 
QuestionRetrieve Value from TextBox Which is created in the code behind Pin
HatakeKaKaShi3-Nov-10 22:54
HatakeKaKaShi3-Nov-10 22:54 
AnswerRe: Retrieve Value from TextBox Which is created in the code behind Pin
John Gathogo4-Nov-10 1:00
John Gathogo4-Nov-10 1:00 
AnswerRe: Retrieve Value from TextBox Which is created in the code behind Pin
alrosan4-Nov-10 8:05
alrosan4-Nov-10 8:05 
Questionhow to find toolstrip button on a form by name Pin
Tridip Bhattacharjee3-Nov-10 21:27
professionalTridip Bhattacharjee3-Nov-10 21:27 
suppose i have form where toolstrip is there and that toolstrip contain many toolstrip button and other control. how can i find is there any toolstrip button exist or not on the form just by name. can i write any function like findcontrol where i pass the control name means toolstrip button name as string to that function and that function will iterate in all the controls on the form and check any toolstrip button exist having that name which i pass to that function. please help me with sample code.

i have written a code snippet which is not able to find out the toolstrip button. my code as follows


<br />
public static System.Windows.Forms.Control FindControl(string id, System.Windows.Forms.Form.ControlCollection col)<br />
      {<br />
        System.Windows.Forms.Control child = null;<br />
        child = FindControlRecursive(c, id);<br />
          if (child != null)<br />
            return child;<br />
        <br />
        return null;<br />
      }<br />
<br />
      private static System.Windows.Forms.Control FindControlRecursive(System.Windows.Forms.Control root, string id)<br />
      {<br />
        if (root.Name != null &amp;&amp; root.Name == id)<br />
          return root;<br />
<br />
        foreach (System.Windows.Forms.Control c in root.Controls)<br />
        {<br />
          System.Windows.Forms.Control rc = FindControlRecursive(c, id);<br />
          if (rc != null)<br />
            return rc;<br />
        }<br />
        return null;<br />
      }<br />


plzzzz help
tbhattacharjee

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.