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. vb6 and C#

vb6 and C#

Scheduled Pinned Locked Moved C#
csharphelpquestion
4 Posts 3 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.
  • S Offline
    S Offline
    sharon_s
    wrote on last edited by
    #1

    :confused:I'm trying to use an ocx written in VB6 in my C# app and when i try to show a form ("click a button") i get an error message "run-time error 406 Non Modal Forms cannot be displayed ... " what can be done if i need these forms Non Modal? thanks sharon thanks sharon

    A A 2 Replies Last reply
    0
    • S sharon_s

      :confused:I'm trying to use an ocx written in VB6 in my C# app and when i try to show a form ("click a button") i get an error message "run-time error 406 Non Modal Forms cannot be displayed ... " what can be done if i need these forms Non Modal? thanks sharon thanks sharon

      A Offline
      A Offline
      Alex Korchemniy
      wrote on last edited by
      #2

      Personally I haven't worked much with this stuff, but from what I read I think that it might be a problem with how .net works with the ocx. Take a look at this article: http://support.microsoft.com/default.aspx?kbid=176468[^] This posting is provided "AS IS" with no warranties, and confers no rights. Alex Korchemniy

      1 Reply Last reply
      0
      • S sharon_s

        :confused:I'm trying to use an ocx written in VB6 in my C# app and when i try to show a form ("click a button") i get an error message "run-time error 406 Non Modal Forms cannot be displayed ... " what can be done if i need these forms Non Modal? thanks sharon thanks sharon

        A Offline
        A Offline
        Alexander Kent
        wrote on last edited by
        #3

        Are you talking about a ASP.NET app ??. For example in ASP.NET you are executing the application in the context of a web application and you can only show WebForms.. Try compiling as exe ~Alexander Kent

        S 1 Reply Last reply
        0
        • A Alexander Kent

          Are you talking about a ASP.NET app ??. For example in ASP.NET you are executing the application in the context of a web application and you can only show WebForms.. Try compiling as exe ~Alexander Kent

          S Offline
          S Offline
          sharon_s
          wrote on last edited by
          #4

          No i'm talking about a windows app in c# have any ideas ? 10x sharon thanks sharon

          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