Author Topic: Showing Slides in a .NET Form  (Read 9154 times)

0 Members and 1 Guest are viewing this topic.

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 8698
  • AKA Daniel
Showing Slides in a .NET Form
« on: November 19, 2008, 02:21:38 AM »
Step 1, register Slide.ocx on your computer.
Step 2, in VS choose Tools->Choose Toolbox Items and select the slide control ..pic 1
Step 3, add the control to a form .. pic 2
Step 4, add code

Code: [Select]
  public partial class FormSlide : Form
  {
    public FormSlide()
    {
      InitializeComponent();
      this.axSlide1.FileName = "b2d2d.sld"; //<<----------------------
    }

    private void buttonClose_Click(object sender, EventArgs e)
    {
      this.Close();
    }
  }
Step 5, look at pic 3



It's Alive!

  • Retired
  • Needs a day job
  • Posts: 8698
  • AKA Daniel
Re: Showing Slides in a .NET Form
« Reply #1 on: November 19, 2008, 02:34:47 AM »
Some other classes in Slide.ocx


Glenn R

  • Guest
Re: Showing Slides in a .NET Form
« Reply #2 on: November 19, 2008, 04:56:47 AM »
Nice find Daniel.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Showing Slides in a .NET Form
« Reply #3 on: November 19, 2008, 06:11:31 AM »
Thanks Daniel .. that was on my list.
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

MickD

  • King Gator
  • Posts: 3636
  • (x-in)->[process]->(y-out) ... simples!
Re: Showing Slides in a .NET Form
« Reply #4 on: November 19, 2008, 03:40:15 PM »
Thanks Daniel, that was also on my list as well, will put it to good use.
"Programming is really just the mundane aspect of expressing a solution to a problem."
- John Carmack

"Short cuts make long delays,' argued Pippin.”
- J.R.R. Tolkien

cadpro

  • Guest
Re: Showing Slides in a .NET Form
« Reply #5 on: January 13, 2009, 05:41:58 AM »
How do I access the width property of the slide?
Sld.Width and Sld.Height

gile

  • Gator
  • Posts: 2507
  • Marseille, France
Re: Showing Slides in a .NET Form
« Reply #6 on: January 21, 2009, 03:33:35 PM »
Hi,

Thanks Daniel, it seems to be very nice but I have some very newby's questions:
where do I find the slide.ocx file ?
how do I register it ?
have I to load and register it on each computer ?
Speaking English as a French Frog

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 8698
  • AKA Daniel
Re: Showing Slides in a .NET Form
« Reply #7 on: January 21, 2009, 09:44:19 PM »
I found the slide.ocx here
http://discussion.autodesk.com/forums/thread.jspa?messageID=3919905&#3919905
its in the SldMgr.zip, Let me know if you have trouble getting it.

I registered mine like
regsvr32 C:\Program Files\SldMgr\Slide.ocx

I do believe it must be registered on each computer


gile

  • Gator
  • Posts: 2507
  • Marseille, France
Re: Showing Slides in a .NET Form
« Reply #8 on: January 22, 2009, 01:18:52 AM »
Thank you very much Daniel.
Speaking English as a French Frog

jgr

  • Guest
Re: Showing Slides in a .NET Form
« Reply #9 on: August 28, 2010, 10:20:17 AM »



example of how to read and show autocad slides (and slide libraries) with .Net

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 8698
  • AKA Daniel
Re: Showing Slides in a .NET Form
« Reply #10 on: August 28, 2010, 10:44:21 AM »
Nice  8-)

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Re: Showing Slides in a .NET Form
« Reply #11 on: August 28, 2010, 10:18:08 PM »
the ocx is no longer available .. either that or I just can't find it
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

jgr

  • Guest
Re: Showing Slides in a .NET Form
« Reply #12 on: August 29, 2010, 05:23:38 PM »
Keith, if you need the ocx, i can send it.

I tried to convert my code to C# (with a translator: Tangible Instant C# and sharpdevelop). but... Can anyone help me?. Not with private messages.

Thanks.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Showing Slides in a .NET Form
« Reply #13 on: August 29, 2010, 05:56:38 PM »

From an old archive ..
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

jgr

  • Guest
Re: Showing Slides in a .NET Form
« Reply #14 on: August 29, 2010, 06:40:25 PM »
Nice. I do not need it but thanks.  :lol:
I do not speak English and might not have explained well