Why does the ToolStrip show up in the component tray

dotnet framework

    Next

  • 1. Skip LinkLabel in TAB order
    I have designed a custom control derived from UserControl which contains a LinkLabel and a TextBox. If the user uses the TAB key to move the focus to my custom control I want the TextBox to get the focus and not the LinkLabel. Therefore I set the TabStop property of the LinkLabel control to False (in the constructor of my custom control, after InitializeComponent()). However, the TabStop property of the LinkLabel is ignored and it still gets the focus. As a workaround I tried to override OnEnter of my custom control: Protected Overrides Sub OnEnter(ByVal e As System.EventArgs) myTextBox.Focus() End Sub Unfortunately this doesn't work either. The TextBox gets the focus but immediately afterwards the focus moves to the LinkLabel. Overriding OnGotfocus results in the same behaviour. How could I prevent the LinkLabel to get the focus if the user uses the TAB key to move the focus to my custom control? Thanks for any ideas, Guido
  • 2. How can I drop the backcolor of the toolbar's images ?
    I use the ImageList controls save the images (.png), but those images 's bgcolor is Lime, And How can I drop the image's bgcolor, and show the normal control's bgcolor ?
  • 3. ListView Large Images
    Hi, I'm developing an app and I'm trying to create the LargeIcon images for the treeview control, but I cannot do it so easy because I cannot find the correct size for the image. The problem is that every size I try, the image gets resized and not so good, does anyone knows the dimensions for the large icons view? Thanks a lot, Regards, Victor
  • 4. Tell a new control that the mouse is already down
    I have a popup slider control. At popup (when the slider instance is created), how can I tell it that the mouse is already down, so it captures MouseMove events, even if the mouse is outside the slider control. When creating the slider, I select it programmticaly to get it in focus. Thank you very much! Teis

Why does the ToolStrip show up in the component tray

Postby QmlsbCBSdXN0 » Fri, 23 Jun 2006 00:28:03 GMT

I was under the impression that components that do not have a visual presence 
on a form show up in the component tray of the designer but controls do not.  
However, the ToolStrip is a control that does have a visual presence, but it 
also shows up in the component tray.  Why is that, and in general, what 
causes a component to show up in the component tray?

Thanks,
Bill

RE: Why does the ToolStrip show up in the component tray

Postby v-lliu » Fri, 23 Jun 2006 15:59:46 GMT

Hi Bill,

Thank you for posting.

Control is a component with visual representation. Generally speaking, when 
a control is put on a form designer in IDE, it will only show up in the 
form designer. 

The ToolStrip is a control, but it shows up in the form designer and in the 
component tray as well. The reason is that  if you set the Visible property 
of the ToolStrip to false, it becomes invisible on the form designer. So 
IDE show the ToolStrip in the component tray to ensure that it can be 
selected even if it is invisible in the form designer.

This is implemented in the ToolStrip designer. FYI, the MenuStrip and the 
StatusStrip have the same behaviour as the ToolStrip.

If you have anything unclear, please don't hesitate to get in touch.


Sincerely,
Linda Liu
Microsoft Online Community Support

====================================================
When responding to posts,please "Reply to Group" via
your newsreader so that others may learn and benefit
from your issue.
====================================================


Similar Threads:

1.Why does the ToolStrip show up in the component tray

I was under the impression that components that do not have a visual presence 
on a form show up in the component tray of the designer but controls do not.  
However, the ToolStrip is a control that does have a visual presence, but it 
also shows up in the component tray.  Why is that, and in general, what 
causes a component to show up in the component tray?

-- 
Bill

2.Why doesn't component services show my methods?

Hi everyone,
    I have a ServicedComponent containing some public functions.
I notice that these functions doesn't show in Component Services in XP, 
however they work fine.
This behavior is different from old COM+.
Will this cause any problems? Is there anything I need to do?

Thanks in advance,
M.Sameer 


3.findcontrol("PlaceHolderPrice") why why why why why why why why why why why

why why why why why why why why why why why

Can't i get

dim PlaceHolderPrice as placeholder = 
formview1.findcontrol("PlaceHolderPrice")



<asp:FormView ID="FormView1" runat="server" DataKeyNames="AdNum" 
DefaultMode="Edit" DataSourceID="SqlDataSource1">

<EmptyDataTemplate>



</EmptyDataTemplate>

<EditItemTemplate>

<table border="0" cellspacing="0" cellpadding="0" width="550" >

<asp:PlaceHolder ID="PlaceHolderPrice" runat="server" Visible="false">

<tr>

<td style="width: 3px;" valign="top">

</td>

<td valign="top">

Price:

</td>

<td valign="top" width="10">

$</td>

<td valign="top">

<asp:TextBox ID="PriceTextBox" runat="server" Text='<%# Bind("Price") 
%>'></asp:TextBox>

td>

<td width="10">

 </td>

</tr>

</asp:PlaceHolder>


</table>

</editItemTemplate>

</formview>


4.Toolstrip Button doesnt show most images

I have a toolstrip with several buttons on it, but when i changed the
images, most of them doesnt show on runtime. I tried several different
formats .bmp, .png, .ico for these buttons without any success, however
there are 1 to 2 images that display correctly. Does anybody know what
might be causing this and the fix for this problem.?

5.Create control in VS2005 that goes in component tray

VS2005:

I want to create a control which stays in the tray so I created it 
inheriting Component but even though it compiles it does not show up in the 
toolbox.

If I inherit from System.Windows.Forms.Control, it shows up with properties 
correctly in property window.

How can I create a control in the Component Tray (like the timer)?

Evan


6. tray icon not show in pocket pc 2002 emulator

7. Querying component tray and attaching them to a property to select

8. Component Tray



Return to dotnet framework

 

Who is online

Users browsing this forum: No registered users and 55 guest