Click here to Skip to main content
15,899,026 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Problem in VB while trying to execute SQL Code Pin
nhsal6918-Nov-09 23:08
nhsal6918-Nov-09 23:08 
GeneralRe: Problem in VB while trying to execute SQL Code Pin
Ashfield19-Nov-09 1:25
Ashfield19-Nov-09 1:25 
GeneralRe: Problem in VB while trying to execute SQL Code Pin
The Man from U.N.C.L.E.18-Nov-09 22:44
The Man from U.N.C.L.E.18-Nov-09 22:44 
QuestionConsole application Pin
offroaderdan17-Nov-09 23:35
offroaderdan17-Nov-09 23:35 
AnswerRe: Console application Pin
Richard MacCutchan18-Nov-09 0:05
mveRichard MacCutchan18-Nov-09 0:05 
AnswerRe: Console application Pin
Dave Kreskowiak18-Nov-09 8:35
mveDave Kreskowiak18-Nov-09 8:35 
AnswerRe: Console application Pin
Ian Shlasko18-Nov-09 10:27
Ian Shlasko18-Nov-09 10:27 
AnswerRe: Console application [modified] Pin
DaveAuld18-Nov-09 11:02
professionalDaveAuld18-Nov-09 11:02 
It can be done, but probably not a recommended practice.

See the following example;

1) Create a new console application project
2) Add a reference to System.Windows.Forms
3) Add a new Windows Form to the project

Copy the code below;

Module Module1

    Sub Main()

        Dim inputString As String = String.Empty

        Do While inputString.Equals(String.Empty)

            Console.Clear()
            Console.Out.Write("Press the Y key to continue...")

            inputString = Console.ReadLine
            inputString = inputString.ToUpper

            If inputString.StartsWith("Y") Then

                Dim xForm As New Form1
                xForm.ShowDialog()

            End If

            inputString = String.Empty

        Loop

    End Sub

End Module


This example will keep your console application in a loop, and everytime you press Y and enter the windows form will pop up.

Dave
Who am I?:
Web|Facebook|Twitter|LinkedIn|Bebo

modified on Wednesday, November 18, 2009 5:09 PM

QuestionHow to fire the DropDownList.SelectedIndexChanged event Pin
MacIntyre17-Nov-09 18:46
MacIntyre17-Nov-09 18:46 
AnswerRe: How to fire the DropDownList.SelectedIndexChanged event Pin
Dave Kreskowiak19-Nov-09 3:40
mveDave Kreskowiak19-Nov-09 3:40 
QuestionPermission Denied while Deleting Temporary Files Pin
Nash - ThE cOdE sLiZeR17-Nov-09 17:59
Nash - ThE cOdE sLiZeR17-Nov-09 17:59 
AnswerRe: Permission Denied while Deleting Temporary Files Pin
The Man from U.N.C.L.E.17-Nov-09 20:58
The Man from U.N.C.L.E.17-Nov-09 20:58 
GeneralRe: Permission Denied while Deleting Temporary Files Pin
Nash - ThE cOdE sLiZeR17-Nov-09 21:54
Nash - ThE cOdE sLiZeR17-Nov-09 21:54 
GeneralRe: Permission Denied while Deleting Temporary Files Pin
Shameel17-Nov-09 22:18
professionalShameel17-Nov-09 22:18 
GeneralRe: Permission Denied while Deleting Temporary Files Pin
Nash - ThE cOdE sLiZeR17-Nov-09 22:42
Nash - ThE cOdE sLiZeR17-Nov-09 22:42 
GeneralRe: Permission Denied while Deleting Temporary Files Pin
Shameel18-Nov-09 7:01
professionalShameel18-Nov-09 7:01 
AnswerRe: Permission Denied while Deleting Temporary Files Pin
Luc Pattyn17-Nov-09 23:30
sitebuilderLuc Pattyn17-Nov-09 23:30 
GeneralRe: Permission Denied while Deleting Temporary Files Pin
Nash - ThE cOdE sLiZeR17-Nov-09 23:34
Nash - ThE cOdE sLiZeR17-Nov-09 23:34 
QuestionDistingush between OleDate and Double while extract the Contents in Excel. Pin
janaswamy uday17-Nov-09 4:27
janaswamy uday17-Nov-09 4:27 
AnswerRe: Distingush between OleDate and Double while extract the Contents in Excel. Pin
Dave Kreskowiak17-Nov-09 5:39
mveDave Kreskowiak17-Nov-09 5:39 
GeneralRe: Distingush between OleDate and Double while extract the Contents in Excel. [modified] Pin
janaswamy uday17-Nov-09 6:00
janaswamy uday17-Nov-09 6:00 
GeneralRe: Distingush between OleDate and Double while extract the Contents in Excel. Pin
Dave Kreskowiak17-Nov-09 8:31
mveDave Kreskowiak17-Nov-09 8:31 
AnswerRe: Distingush between OleDate and Double while extract the Contents in Excel. Pin
Richard MacCutchan17-Nov-09 6:33
mveRichard MacCutchan17-Nov-09 6:33 
GeneralRe: Distingush between OleDate and Double while extract the Contents in Excel. Pin
janaswamy uday17-Nov-09 15:37
janaswamy uday17-Nov-09 15:37 
GeneralRe: Distingush between OleDate and Double while extract the Contents in Excel. Pin
Dave Kreskowiak17-Nov-09 16:40
mveDave Kreskowiak17-Nov-09 16:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.