Hello-
I have written a plugin for an application. My plugin adds menuItems to the host apps menuItems, and I want to check for updates from one of these menuItems.
I have automaticUpdater working just fine from my menuItem, but I can't seem to get the animation to show on the host app's form.
Is this possible?
Here is what I have done so far:
namespace Anesthesia{public class FormOpenDentalA : Control{public static FormOpenDentalA formOpenDentalA;public System.ComponentModel.IContainer components;public wyDay.Controls.AutomaticUpdater automaticUpdater1;
public FormOpenDentalA(){InitializeComponent();
}public void InitializeComponent(){ this.automaticUpdater1 = new wyDay.Controls.AutomaticUpdater(); ((System.ComponentModel.ISupportInitialize)(this.automaticUpdater1)).BeginInit(); this.SuspendLayout(); // // automaticUpdater1// this.automaticUpdater1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.automaticUpdater1.ContainerForm = System.Windows.Forms.Form.ActiveForm; this.automaticUpdater1.GUID = "49d5d16a-fa8c-4bc6-b59e-ab67622abddc"; this.automaticUpdater1.Location = new System.Drawing.Point(640,20); this.automaticUpdater1.Name = "automaticUpdater1"; this.automaticUpdater1.RightToLeft = System.Windows.Forms.RightToLeft.Yes; this.automaticUpdater1.Size = new System.Drawing.Size(16, 16); this.automaticUpdater1.TabIndex = 152; this.automaticUpdater1.MenuItem = this.menuItemUpdates; this.automaticUpdater1.wyUpdateCommandline = ""; this.automaticUpdater1.UpdateSuccessful += new wyDay.Controls.SuccessHandler(automaticUpdater1_UpdateSuccessful); // // menuItemUpdates // this.menuItemUpdates.Index = 6; this.menuItemUpdates.Text = "Check for updates..."; this.menuItemUpdates.Click += new System.EventHandler(this.menuItemUpdates_Click); ((System.ComponentModel.ISupportInitialize)(automaticUpdater1)).EndInit(); this.ResumeLayout(false); this.PerformLayout();
public void Load_end(OpenDental.FormOpenDental sender, long patNum) {
// Add the menu items to the main menu. formOpenDentalA = new FormOpenDentalA();
etc...