Search results for query: *

  1. M

    Remove Carriage Return Character from Combobox

    Figured out but thanks anyway guys.
  2. M

    Remove Carriage Return Character from Combobox

    I've done some reading - someone has suggested I feed the reader into a TextBox first (a hidden textbox) and then into the Comobobox, but this doesn't seem necessary. Is there a way I can simply knock off the last character displayed of every item in the Combobox, when it lists them in the drop...
  3. M

    Remove Carriage Return Character from Combobox

    'Read Textfile into Combobox Dim FILE_NAME As String = "C:\Data\shippers.txt" Dim TextLine As String If System.IO.File.Exists(FILE_NAME) = True Then Dim objReader As New System.IO.StreamReader(FILE_NAME) Do While objReader.Peek() <> -1...
  4. M

    Remove Carriage Return Character from Combobox

    I am populating a Combox by reading lines into it from a text file. After every item in the Combobox - there are 2 small squares, which I would guess would be a Carriage Return. Is there anyway I can filter the squares off, so the user does not see them in the drop down?
  5. M

    Making a 3d video game

    Wow! That's impressive!
  6. M

    Question about talking with multiple Objects

    I have learned so much from these examples in the last few months. You really filled in some blanks for me. Thanks again.
  7. M

    Create User Input function

    So far so good - but I can only get the dialog box to ask Yes, No, Cancel, etc. using MessageBoxButtons.YesNoCancel. Is there anyway I can pass string variables, so I'm asking other questions? ie: What is your favorite color? (buttons appear) Blue, Yellow, Red
  8. M

    Create User Input function

    Thanks guys - I will check this out in detail.
  9. M

    Create User Input function

    Thanks John. I've read the example, but I'm not getting it.
  10. M

    Create User Input function

    Hey Guys and Girls, Trying to imitate a Messagebox - in that, a sub will not continue until the user "deals with" the pop up. For example, in a sub, I want a Form to pop up, and ask a user a question, and give them 3 options. I want to make it so the user must click an option, and then the...
  11. M

    Question about talking with multiple Objects

    Thanks again 'Flipped'. You've really gone above and beyond. I think - instead of copying the object "in focus" into a temporary object, looks like I need to learn to add all objects I may be working with into a collection, and then learn to use loops to work with the objects based on...
  12. M

    Select Case with Multiple Variables?

    I like the SELECT CASE method, as it's nice and easy to read. Thanks for your input.
  13. M

    Select Case with Multiple Variables?

    hmm... I think I can make that work. Thanks!
  14. M

    Select Case with Multiple Variables?

    Is there any way to use a Select statement to Test multiple variables? ie: Dim x as integer = 1 Dim x as integer = 2 Dim z as integer = 3 Select Case x, y, z case is 1, 2, 3 End Select
  15. M

    Question about talking with multiple Objects

    Basically, if we look at this code: For Each thisMonster As Monster In monsters 'renamed for clarification If thisMonster.name = "zombie" Then thisMonster.doDamage() Else Console.WriteLine("The unknown monster is named: {0}", thisMonster.name) End If This works...
  16. M

    Question about talking with multiple Objects

    Is there anyway I can 'alias' an object's name as a string? For example.... If a monster was called 'wolf'. Dim targetmonster as string targetmonster = "wolf" 'Then try to talk to the object with a string variable as it's name targetmonster.doSomething
  17. M

    Question about talking with multiple Objects

    Again, thanks for your help, I've learned so much about classes in the last few posts. If we load the instances in that manner, I take it I will not be able to program each one later on using the monster.doSomething() method, as ALL of my monsters will be an instance called "monster". Will...
  18. M

    Question about talking with multiple Objects

    That answered it! Thanks!!!
  19. M

    Question about talking with multiple Objects

    I'm trying to understand this, but still having some difficulty. If 'wolfmonster' is loaded from a text file that contains hundreds of other monsters, while the Streamreader is looping, how do I 'name' the 'wolfmonster' object. For example if my text file is a simple flat file like this...
Back
Top