Click here to Skip to main content
15,886,110 members
Home / Discussions / C#
   

C#

 
AnswerRe: Installer logo Pin
The Man from U.N.C.L.E.11-Jan-10 23:03
The Man from U.N.C.L.E.11-Jan-10 23:03 
GeneralRe: Installer logo Pin
Alex Manolescu11-Jan-10 23:26
Alex Manolescu11-Jan-10 23:26 
GeneralRe: Installer logo Pin
The Man from U.N.C.L.E.12-Jan-10 1:17
The Man from U.N.C.L.E.12-Jan-10 1:17 
GeneralRe: Installer logo Pin
Mirko198012-Jan-10 1:54
Mirko198012-Jan-10 1:54 
GeneralRe: Installer logo [modified] Pin
Priya Prk12-Jan-10 1:38
Priya Prk12-Jan-10 1:38 
QuestionHow to test a webapp (c#) where is the executable for "gui runner" Pin
gerrybrennan11-Jan-10 22:23
gerrybrennan11-Jan-10 22:23 
QuestionHow to convert a Control into a ToolStripButton Pin
ArjenGroeneveld11-Jan-10 22:07
ArjenGroeneveld11-Jan-10 22:07 
AnswerRe: How to convert a Control into a ToolStripButton Pin
Martin#11-Jan-10 23:47
Martin#11-Jan-10 23:47 
Hello,

The ToolStripButton class doesn't Inherit from Control.

Inheritance Hierarchy:
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
System.Windows.Forms.ToolStripItem
System.Windows.Forms.ToolStripButton


So you have to look for the ToolStrip class (which inherits from Control) an than iterate over the Items property.
Like this:
foreach (Control c in this.Controls)
{
   if (c is ToolStrip)
   {
       ToolStrip ts = c as ToolStrip;
       foreach (ToolStripItem tsi in ts.Items)
       {
           ToolStripButton tsb = tsi as ToolStripButton;
            if(tsb != null)
            {
                ...
            }
       }
   }
}


Hope it helps!

All the best,

Martin

GeneralRe: How to convert a Control into a ToolStripButton Pin
ArjenGroeneveld12-Jan-10 21:02
ArjenGroeneveld12-Jan-10 21:02 
GeneralRe: How to convert a Control into a ToolStripButton Pin
Martin#12-Jan-10 21:51
Martin#12-Jan-10 21:51 
QuestionHow to code the click event of a control created at runtime in tablelayoutpanel - C# Pin
rainamaneesh11-Jan-10 20:22
rainamaneesh11-Jan-10 20:22 
AnswerRe: How to code the click event of a control created at runtime in tablelayoutpanel - C# Pin
Dave Kreskowiak12-Jan-10 3:54
mveDave Kreskowiak12-Jan-10 3:54 
QuestionMessage Removed Pin
11-Jan-10 20:02
SajjadZare11-Jan-10 20:02 
AnswerRe: Text to speech Pin
Harvey Saayman11-Jan-10 20:15
Harvey Saayman11-Jan-10 20:15 
GeneralRe: Text to speech Pin
SajjadZare11-Jan-10 21:30
SajjadZare11-Jan-10 21:30 
GeneralRe: Text to speech Pin
J4amieC12-Jan-10 1:43
J4amieC12-Jan-10 1:43 
GeneralRe: Text to speech Pin
SajjadZare12-Jan-10 2:38
SajjadZare12-Jan-10 2:38 
GeneralRe: Text to speech Pin
Dave Kreskowiak12-Jan-10 3:53
mveDave Kreskowiak12-Jan-10 3:53 
AnswerRe: Text to speech Pin
April Fans12-Jan-10 19:21
April Fans12-Jan-10 19:21 
AnswerRe: Text to speech Pin
carlecomm12-Jan-10 19:28
carlecomm12-Jan-10 19:28 
QuestionWindows 7 x64 Pin
AlucardCode11-Jan-10 19:16
AlucardCode11-Jan-10 19:16 
AnswerRe: Windows 7 x64 PinPopular
Dave Kreskowiak12-Jan-10 3:47
mveDave Kreskowiak12-Jan-10 3:47 
AnswerRe: Windows 7 x64 Pin
April Fans12-Jan-10 19:16
April Fans12-Jan-10 19:16 
QuestionHow to invoke function from a dll? Pin
城市浪子11-Jan-10 19:01
城市浪子11-Jan-10 19:01 
AnswerRe: How to invoke function from a dll? Pin
Rick Shaub12-Jan-10 4:06
Rick Shaub12-Jan-10 4:06 

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.