Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. dll

dll

Scheduled Pinned Locked Moved C#
csharpcomdesignquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cmarmr
    wrote on last edited by
    #1

    i have a vb 6 activex dll and i am able to run a form inside of the dll is it possible to do the same thing in csharp ( run a form from a dll) or is there no UI in csharps DLLs?

    Thanks, Chad Aiena

    P 1 Reply Last reply
    0
    • C cmarmr

      i have a vb 6 activex dll and i am able to run a form inside of the dll is it possible to do the same thing in csharp ( run a form from a dll) or is there no UI in csharps DLLs?

      Thanks, Chad Aiena

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      You can just wrap up your form inside the DLL. As the form is just another class, you can pretty much do what you want with it (well, within reason).

      the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
      Deja View - the feeling that you've seen this post before.

      C 1 Reply Last reply
      0
      • P Pete OHanlon

        You can just wrap up your form inside the DLL. As the form is just another class, you can pretty much do what you want with it (well, within reason).

        the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
        Deja View - the feeling that you've seen this post before.

        C Offline
        C Offline
        cmarmr
        wrote on last edited by
        #3

        can you give me a quick code snip of how i would put it in the dll (sorry i am still learning csharp) or something like this but how to i show it using System; using System.Collections.Generic; using System.Text; using System.Windows.Forms; namespace dllform { public class Class1 { Form test = new Form() } }

        Thanks, Chad Aiena

        P 1 Reply Last reply
        0
        • C cmarmr

          can you give me a quick code snip of how i would put it in the dll (sorry i am still learning csharp) or something like this but how to i show it using System; using System.Collections.Generic; using System.Text; using System.Windows.Forms; namespace dllform { public class Class1 { Form test = new Form() } }

          Thanks, Chad Aiena

          P Offline
          P Offline
          Pete OHanlon
          wrote on last edited by
          #4

          I'll tell you how to do one for yourself. Start off by developing a form in the designer as an executable. You can then change the application type to DLL in the project properties. Compile it up and you have a form inside a DLL. Next, create a new project and reference the DLL. Then, in your code you just need to call the form. To do this (assuming your form is called MyDllForm in the namespace MyNamespace):

          MyNamespace.MyDllForm form = new MyNamespace.MyDllForm();
          form.Show();
          

          I hope that helps.

          the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
          Deja View - the feeling that you've seen this post before.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups