Message 1 of 9
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I am trying to add a user control to a palette. I used the below method sucessfully with VB.net but it is not working with C#. the mainPalette.add() method is throwing up : Error 5 The best overloaded method match for 'Autodesk.AutoCAD.Windows.PaletteSet.Add(string, System.Uri)' has some invalid arguments
public static PaletteSet mainPalette = null;
[CommandMethod("POCFind")]
public static void pocfind()
{
try
{
if (mainPalette == null)
{
POCForm mainForm = new POCForm();
mainPalette = new PaletteSet("POC ADD");
mainPalette.Add("TEST", mainForm);
}
mainPalette.Visible = true;
// populateDatabaseFromCSVAsync();
}
Thanks in advance.
Solved! Go to Solution.