Results 1 to 3 of 3

Thread: Form won't show

  1. #1

    Thread Starter
    Hyperactive Member gonzalioz's Avatar
    Join Date
    Sep 2009
    Location
    <body></body>
    Posts
    508

    Form won't show

    Hi all,

    I created a windows console application because it needs to do some things at windows start up. However, in very rare cases I need to ask the user for some information, so I need to show a form. I created a form and went to my application properties. There I selected Windows Forms application as the application type. I call my form with the .Show method but it doesn't show up.

    I expected this, but I have no idea how to solve it.

    Any ideas?


    [EDIT]
    Just found out .Show does show it but only for 0.00001 seconds. I use showdialog now. Is this the right way to do it?

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Form won't show

    Quote Originally Posted by gonzalioz View Post
    Is this the right way to do it?
    Is it working for you?

  3. #3
    Addicted Member Dark Anima's Avatar
    Join Date
    Sep 2008
    Posts
    183

    Re: Form won't show

    AFAIK Console and winforms don't really mix up together, but you could always use the InputBox() for your rare instances of user input.

    Code:
    Dim s As String = InputBox("Enter a string", "Inputbox", "DefaultString")
            Console.Write(s)
            Console.ReadKey()

Posting Permissions

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



Click Here to Expand Forum to Full Width