|
-
Nov 16th, 2009, 09:18 AM
#1
Thread Starter
Hyperactive Member
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?
-
Nov 16th, 2009, 12:02 PM
#2
Re: Form won't show
 Originally Posted by gonzalioz
Is this the right way to do it?
Is it working for you?
-
Nov 16th, 2009, 03:07 PM
#3
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|