Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toolbar still does not open #56

Closed
obelixA opened this issue Jan 19, 2021 · 0 comments
Closed

Toolbar still does not open #56

obelixA opened this issue Jan 19, 2021 · 0 comments

Comments

@obelixA
Copy link

obelixA commented Jan 19, 2021

Hi
I finished programming the toolbar tools itself and now I made my first stop onto getting the tools in the taskbar.
But unfortunately the new toolbar is not visible (or available in the toolbars selection menru).
Neither my new one nor the sample toolbar :-(

Any clever advices?

my control is an UserControl
the following is my "bandcontrol" the handle the band visibility for the UserControl
`
using System;
using System.Drawing;
using System.Runtime.InteropServices;
using System.Windows.Forms;
using CSDeskBand;

namespace acsMetersControl {
[ComVisible( true )]
[Guid( "BE39FC0E-C019-49D0-BEE2-384747456526" )]
[CSDeskBandRegistration( Name = "acsMetersDeskBand", ShowDeskBand = true )]
public class acsDeskBandControl : CSDeskBandWin {
private static Control ctrl;
protected override Control Control => ctrl; // Returns your main control

    public acsDeskBandControl() {
        Options.MinHorizontalSize = new Size( 100, 30 );
        ctrl = new acsMeterControl();
        ctrl.SizeChanged += Control_SizeChanged;
        
    }

    private void Control_SizeChanged( object sender, EventArgs e ) {
        Options.HorizontalSize = new DeskBandSize( Control.Width, Options.VerticalSize.Height );
    }
}

}
`

registering seems ok
RegAsm : warning RA0000 : Registering an unsigned assembly with /codebase can cause your assembly to interfere with other applications that may be installed on the same computer. The /codebase switch is intended to be used only with signed assemblies. Please give your assembly a strong name and re-register it. Succesfully registered deskbandacsMetersDeskBand- GUID: {be39fc0e-c019-49d0-bee2-384747456526} Request to show deskband. Types registered successfully

2021-01-22 : Just tried a release version and a strong signed version. Both seem to be registered, but none of them appears in the taskbar :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant