Component Tray

dotnet framework

    Next

  • 1. license.licx file deleted
    This might sound like an earlier question that was posted but it's NOT. We need to find out if there is a way to create a new license.licx file if someone accidently deleted it from the project and disk. If someone does the following 1. create a blank windows forms project 2. Drop our control onto the form surface (note, this creates the license.licx file). 3. Delete the license.licx file from the project and the disk. 4. Rebuild and run. After the file is deleted, rebuilding doesnt create a new license.licx file until a property on the form is changed or you redrop the control. Now if those two things easily re-create the license.licx file, surely there is a way to force this to happen manually when someone simple does a rebuild. Anyone know how to make this happen?
  • 2. Licx File Regeneration
    for the 95% of the people who seem to have the inane ability of carrying out computer tasks that we know operate a specific way and mysteriously they get wierd results (namely because they usually do not under stand how to follow instructions) I need to know if there is a way to dump the old licx file and force a regneration/recompilation. Normally this is mandatorily forced by removing the bin/obj files, reopening the project, making a change to the form (namely readding a control that uses lics - although some state that all you have todo is set a property) and then rebuilding the solution.
  • 3. DataGrid size
    Hi, I set a DataGrid's size, but when it is displayed it's not of that size.. how can I set its exact size? Thanks, Beppe
  • 4. How to display a windows form as a control ?
    {System.Windows.Forms} I have a Form (form1) with a panel on it (panel1). I also have a Form (form2) with some controls. Now I want to display form2 in the panel of form1 (in a way "reducing" the form to a control programmatically). The following code does this: Form2 form2 = new Form2(); form2.TopLevel = false; form2.FormBorderStyle = FormBorderStyle.None; panel1.Controls.Add(form2); // After all, a Form inherits indirectly from System.Windows.Forms.Control form2.Show(); Is there any flaws here ? some method calls missing ? Anyone knows a better way of doing this (perhaps more efficient re. memory and cpu) ? I cannot make a user control instead of a form, because in some cases it should be displayed as a normal form with all Forms properties kept as designed.

Component Tray

Postby Don Munroe » Fri, 18 Jun 2004 22:29:22 GMT

Hello all,

    I've searched around and can't seem to find a solution to this.  I have
a component that builds a tree of controls / components that are placed on a
form.  The walking the controls was easy and is working great.  The problem
is the components in the ComponentTray.  I've added multiple Save File
Dialogs, Open File Dialogs, Font Dialogs, etc...

    When I create an instance of the component tray, the only component
listed is my custom component because I added a constructor that takes
IContainer as a parameter.

    Does anyone have any idea how I can get the list of components in the
ComponentTray regardless of whether or not it has a IContainer constructor.

    I've also found out that the components name property isn't available at
run time, this could lead to other problems, so if any one has an idea for
that it would be greatly appreciated.

Don Munroe



Similar Threads:

1.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


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

Hi

I want my custom textboxes to show all the available
error providers (if any have been added to the component tray)

So far,
1) I was able to query the component tray and identify
the error providers if there are any. By implementing
public override System.ComponentModel.ISite Site{}
in my textboxes

2) Implement a type converter that would list hard coded
string values in the property grid for text boxes.

What I don't know how todo is;

1) Query all available error providers (which I already have)
and pass them to the type converter.

2) Attach the TypeConverter to a property So that users will be
able to select one of the error providers from a list via
this property

3) Able to refresh if any change has happened,such as
new ErrorProvider added or removed etc...

4) Obtain a reference to the error provider object which
the user have selected.

Any help would be greatly appreciated

rgds
KK



3.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?

Thanks,
Bill

4.Component Tray

Hello all,

    I've searched around and can't seem to find a solution to this.  I have
a component that builds a tree of controls / components that are placed on a
form.  The walking the controls was easy and is working great.  The problem
is the components in the ComponentTray.  I've added multiple Save File
Dialogs, Open File Dialogs, Font Dialogs, etc...

    When I create an instance of the component tray, the only component
listed is my custom component because I added a constructor that takes
IContainer as a parameter.

    Does anyone have any idea how I can get the list of components in the
ComponentTray regardless of whether or not it has a IContainer constructor.

    I've also found out that the components name property isn't available at
run time, this could lead to other problems, so if any one has an idea for
that it would be greatly appreciated.

Don Munroe


5.How to make visible control appear in component tray

Someone please help.

I have a control that I would also like to make appear in the component 
tray.  A good example of this is the ToolStrip control.

I've searched all over the place and cannot find the answer to this.

Any suggestions from newsgroup land?

Thanks.



6. Adding a UserControl to the Component Tray

7. Adding a custom Context Menu to a Component Tray

8. Suppress Display of Specific Items in Component Tray?



Return to dotnet framework

 

Who is online

Users browsing this forum: No registered users and 68 guest