Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > Can't Drag Controls onto CustomWizPages
 

Can't Drag Controls onto CustomWizPages

Anytime I try to create a CustomWizPage, I can't seem to drag controls onto my custom wizard page.

Is there any fix for this, or is this known behavior?
KiddKane  Thursday, June 23, 2005 7:13 PM
There is a know bug in the Visual Studio WizardFramework regarding the size of the infoPanel in the WizardPage class.

Set the property ShowInfoPanel to false, you will be able to drag controls into your page.

Oscar Calvo  Friday, June 24, 2005 8:23 PM
Can you post your CustomWiza page source code?
It will help us to reproduce the problem.
Oscar Calvo  Friday, June 24, 2005 5:45 PM

This happens with any page. Even the Custom Wizard pages you guys generate when you create a new Guidance Package, but here is some code from a Bare Bones example that doesn't work for me.

//CustomWizPage.cs


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using Microsoft.Practices.WizardFramework;

namespace MyCompany.Guidance.CustomWizardPages {

   public partial class CustomWizPage : CustomWizardPage{

      public CustomWizPage() {
         InitializeComponent();
      }
   }
}


 


//CustomWizPage.Designer.cs


namespace MyCompany.Guidance.CustomWizardPages {
   partial class CustomWizPage {
      /// <summary> 
      /// Required designer variable.
      /// </summary>
      private System.ComponentModel.IContainer components = null;

   /// <summary> 
   
/// Clean up any resources being used.
   
/// </summary>
   
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>

   protected override void Dispose(bool disposing) {
      
if (disposing && (components != null)) 
         components.Dispose();
      }
      
base.Dispose(disposing);
   }

   
#region Component Designer generated code
   
/// <summary> 
   
/// Required method for Designer support - do not modify 
   
/// the contents of this method with the code editor.
   
/// </summary>
   
private void InitializeComponent() {
      components =
new System.ComponentModel.Container();
      
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
   }
   
#endregion
}

}

 



I can't drag controls onto this control in design mode.

KiddKane  Friday, June 24, 2005 7:47 PM
There is a compile error in the Dispose method, there is a missing { after the if.

After I fix that I was able to open the page in the designer.

the only thing I can say if to make sure that your poroject compiles, if it does, then try to move the code to another project, this may help you isolate what is causing the designer to break.

Hope this helps,

Oscar 
Oscar Calvo  Friday, June 24, 2005 8:13 PM
Sorry, I read your post way to quickly, I was able to reproduce your problem.

I'll keep you posted.
Oscar Calvo  Friday, June 24, 2005 8:16 PM
There is a know bug in the Visual Studio WizardFramework regarding the size of the infoPanel in the WizardPage class.

Set the property ShowInfoPanel to false, you will be able to drag controls into your page.

Oscar Calvo  Friday, June 24, 2005 8:23 PM

You can use google to search for other answers

Custom Search

More Threads

• Problem using Evaluator - Bad RegEx
• How to Extend Tools menu or some toolbar form Guidance Package?
• Has anyone written a MSI bootstrapper for Guidance Automation Toolkit (GAT)?
• Automated Testing
• VSTS - Web Test - FIND TEXT command
• "Add new module" recipe customization
• Can't get Recipe arguments into template - using UnfoldTemplateAction
• Unbound reference to a filetype
• How to generate a template from an existing class file
• Recipe in Context menus