Results 1 to 6 of 6

Thread: All I want is a Userform to show..

  1. #1
    All AUGI, all the time
    Join Date
    2003-10
    Posts
    706
    Login to Give a bone
    0

    Default All I want is a Userform to show..

    I've searched this forum for "showing userforms", "showing windows forms", etc. and no matches come up. The tutorial I downloaded is great but it only shows how to add a paletteset and palette to AutoCAD. I'm simply trying to add the old-school VBA Userform to my dot net app now. I know how to actually add the userform to my project and load it up with buttons and such but how do I get it to launch in AutoCAD? I'm already missing the days of "Userform1.Show ()". Can someone clue me in as to how to do this and where this new code needs to go (i.e. class, module, etc.)? Or point me directly to another tutorial that shows me step by step. Thanks for any help. Are forms commonly used in AutoCAD or does everyone else use something different for their graphical interface?

    Oh yeah, when I created the palette from the tutorial it launched perfectly and docked to the side of AutoCAD. However, when I simply tried to undock the palette and drag it to center screen of AutoCAD, the whole thing flipped out and started blanking out the screen and hanging up and all kinds of stuff. I assume this is because there's a lot more to it than just creating a simple palette and lauching it? Do you have to tell it what to do when it's undocked?

  2. #2
    Administrator Ed Jobe's Avatar
    Join Date
    2000-11
    Location
    Turlock, CA
    Posts
    6,396
    Login to Give a bone
    0

    Default Re: All I want is a Userform to show..

    See the sticky thread I posted a few days ago on training. Fenton Webb had a video on WPF (Windows Presentation Foundation), aka forms.
    C:> ED WORKING....

  3. #3
    All AUGI, all the time
    Join Date
    2003-10
    Posts
    706
    Login to Give a bone
    0

    Default Re: All I want is a Userform to show..

    I just downloaded that and 3 other video "how-tos" on how to do this and they confused me even more. Is this not a simple thing? Most videos step right into code but don't show you what they're stepping into, where it came from and what the code is refering to. I've seen simple code where Form1.Show() does work and others complaining that it doesn't work and the code Form1.Showdialog() is the one you want to use. Other videos and how to pages start out with

    Public class Form1

    and go from there where others don't show this at all...

    I'm sure there's a VB.NET for AutoCAD book out there somewhere. Is this my best route? It's amazing how powerful and visual my VBA programs that I wrote for AutoCAD are and now I feel like I'm banging two rocks together over here. The best program I have so far is the "Hello World" command line DLL

  4. #4
    Administrator Ed Jobe's Avatar
    Join Date
    2000-11
    Location
    Turlock, CA
    Posts
    6,396
    Login to Give a bone
    0

    Default Re: All I want is a Userform to show..

    Did you download the ObjectArx sdk? In the \Samples\dotNet\HelloWorld project, see the HelloFormCommand() sub.
    C:> ED WORKING....

  5. #5
    All AUGI, all the time
    Join Date
    2003-10
    Posts
    706
    Login to Give a bone
    0

    Default Re: All I want is a Userform to show..

    Download from where? I did a text search in the Training link(s) you told me to look in and couldn't find anything to download. ObjectARX text search came up with a bunch of lines but there was no download button available.

    I really do appreciate your patience with my ignorance on this

  6. #6
    All AUGI, all the time
    Join Date
    2003-10
    Posts
    706
    Login to Give a bone
    0

    Default Re: All I want is a Userform to show..

    Now I know what you're talking about. The ObjectARX sdk from Autodesk.com. I got it now. Thanks for your help. I'll dive in tonight.

Similar Threads

  1. Parameters from Userform
    By CADfunk MC in forum VBA/COM Interop
    Replies: 2
    Last Post: 2010-04-26, 06:25 PM
  2. VBA userform in excel
    By Streng in forum VBA/COM Interop
    Replies: 3
    Last Post: 2009-02-17, 07:02 PM
  3. Userform limit
    By Coolmo in forum VBA/COM Interop
    Replies: 8
    Last Post: 2007-06-22, 06:29 PM
  4. UserForm Hide/Show Problem
    By bweir in forum Dot Net API
    Replies: 6
    Last Post: 2006-12-06, 04:00 PM
  5. Userform sizing
    By Coolmo in forum VBA/COM Interop
    Replies: 7
    Last Post: 2006-05-30, 11:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •