Author Topic: Ex: Show Thumbnail in PictureBox VB.NET  (Read 21360 times)

0 Members and 1 Guest are viewing this topic.

Jeff H

  • Needs a day job
  • Posts: 6150
Re: Ex: Show Thumbnail in PictureBox VB.NET
« Reply #30 on: September 21, 2010, 06:43:07 AM »
It was not your code

There is something wrong with my system

I have contacted ADN about it
And they sent some code to try and it crashed
I need to get back with them on it
Thanks again that will become very useful just not on this computer

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 8691
  • AKA Daniel
Re: Ex: Show Thumbnail in PictureBox VB.NET
« Reply #31 on: September 21, 2010, 07:57:17 AM »
I get this when I call dispose...

Code: [Select]
private void ViewFrm_FormClosed(object sender, FormClosedEventArgs e)
    {
      view.EraseAll();
      device.EraseAll();
      manager.Dispose();
      view.Dispose();
      device.Dispose();
      line.Dispose();
    }

Jeff H

  • Needs a day job
  • Posts: 6150
Re: Ex: Show Thumbnail in PictureBox VB.NET
« Reply #32 on: September 21, 2010, 08:45:27 AM »
I tried manager.Dispose(); and same thing
Writing to Vitural Address error

To show your form are you using either
Application.ShowModelessDialog() or  Application.ShowModalDialog();

Also what Command.Flags are you using for the command to open the form
In your command method what 

thanks


It's Alive!

  • Retired
  • Needs a day job
  • Posts: 8691
  • AKA Daniel
Re: Ex: Show Thumbnail in PictureBox VB.NET
« Reply #33 on: September 21, 2010, 08:49:10 AM »
just the default

Code: [Select]
[CommandMethod("doit")]
    static public void test()
    {
      Editor ed = AcAp.Application.DocumentManager.MdiActiveDocument.Editor;
      AcDb.Database database = HostApplicationServices.WorkingDatabase;
      try
      {
        ViewFrm frm = new ViewFrm();
        AcAp.Application.ShowModalDialog(frm);
      }
      catch (System.Exception ex)
      {
        ed.WriteMessage(ex.Message);
      }
    }

the C++ stuff works like a charm of course it's a bit harder to code