Search results

  1. D

    Resolved Console vs Debug

    Thanks. It works fine in a console application. Unfortunately tips on the internet are often incomplete as to how some code is supposed to work.
  2. D

    Resolved Console vs Debug

    I am just trying to learn and an article on the internet suggested I try reading a line using Console.Readline in my quest to see how to view the console. Can you advise as to WHY I can't see the console and read a line, independent of why I want to do it!
  3. D

    Resolved Console vs Debug

    I finally got it to write to the Output window. However when I try to read input from the console, lst = Console.ReadLine(), I am not ask for any input.
  4. D

    Resolved Console vs Debug

    I can't see any output to either the Immediate Window or the Output window when I use the Console.Wrteline. I even tried Console.Read with nothing showing. How do I get the Console to show on my screen.
  5. D

    Resolved Console vs Debug

    Thanks. I'll stick with Debug which does write to the Immediate Window. I did show the Output window but nothing was written to it. I would like to know how to redirect all Output Window to the Immediate Window.
  6. D

    Resolved Console vs Debug

    I know this is probably a pretty stupid question but I have never used the Console.Print before and am confused as to where the output of a Console.Write (FileName). I run the code in the code window and see nothing on the screen. Public Class Form1 Private Sub Button1_Click(sender As...
  7. D

    Threading Error

    Thanks again. Yes, your code is shorter but I also do a lot of programming in VBA where your code won't work and some utility routines I plan to use in both VB.Net and Excel VBA. I am sorry that I assumed this forum was the same. as the other forums I see now that there is a "code block"...
  8. D

    Threading Error

    Thanks for feedback. I know the "lst" variable loses scope but this was just a test class to see if the file dialog would open which it did. Finally, using lst="" as opposed to lst=string.empty would seem to me to be a matter of programmer's choice...is there a difference that necessitates the...
  9. D

    Threading Error

    I think you are right in that my code is broken. It is an old project created, I think, in VB.Net 2008 or maybe even an earier version some 10 year+ ago and I'm trying to run it in VB.Net 2010. express To check this, I created a new project with the simple form and a browse button as per the...
  10. D

    Threading Error

    I removed the Main sub and set the Project Properties to: Startup "Form1", Checked Enable Application Frame work, and checked Make Single Instance Application. Still got the same error when I click on the Browse button on Form 1.
  11. D

    Threading Error

    I am a beginner and don't understand what you mean by application framework. I tried eliminating the main and using the Form as my start up but that didn't work either.
  12. D

    Threading Error

    Using Visual Express 2010, I have the following code in a Form Class for the Browse Button (note the Me.OpenFileDialog declaration is in the Class Declaration area. Me.OpenFileDialog1 = New System.Windows.Forms.OpenFileDialog Private Sub but_Browse_Click(ByVal sender As System.Object, ByVal e...
Top Bottom