Search results for query: *

  • Users: mattkw80
  • Content: Threads
  • Order by date
  1. 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?
  2. 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...
  3. 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
  4. M

    Question about talking with multiple Objects

    Hi Everybody! Hoping someone can clear up a great mystery for me…. I'm trying to learn Object Oriented programming, and to do so, I am writing a small Role Playing Game. I understand why we break Players, Items, and Monsters into Classes… what I don’t “get” is how does the program know...
  5. M

    resolved thread?

    Is there a feature on this forum to mark your answer as correct, or to make this thread as "resolved" ?
  6. M

    Remove Duplicate lines in a text File

    Hey Everyone, Having trouble removing Duplicate lines in a text file. (Exact Duplicate lines). If I have a text file called animals.txt, how can I use the StreamWriter to loop through a text file, and erase and duplicate lines? For example: If the text files says this... cat cat cat dog...
  7. M

    Can Controls refer to themselves?

    Hi guys, I know forms can refer to themselves using ME. Can buttons do the same? I want to be able to click on a button, and set a string variable to be whatever the current button's text says. For example.... if you have 2 buttons, one that says "Dog", and one that says "Cat", for...
  8. M

    Question Removing 1 line from a text file

    Hi Guys, I'm really stuck on something, which, is probably easy, but I've blown hours trying to figure this out. I need to be able to remove 1 line from a textfile. I will always know exactly what line it is, as, it's the same "string" as a variable. So if my variable is called "removeThis"...
  9. M

    Problem creating Slideshow... Help!

    Hey guys, putting together a simple training program in which I need to show the user text and pictures. I want them to be able to hit a "next button" which will step through the text and pictures, like a slide show. All the "data" is hard coded in the program, so I'm not using a database, or...
  10. M

    Copying an Object

    Sorry, still pretty new bear with me... I have a Class called People. I have an object called Roger, another called Sally. How can I copy my 'Roger' object over top of 'Sally' so they are identical?
  11. M

    Save all Global Variables

    Hey Everybody, I've got a RPG style game I am putting together - mostly to teach myself vb.net. I am using alot of global variables to hold game values. ie: Health Money Attack Defence Monster1_Health Monster2_Type monster2_XP_Points The reason these are global variables, is because I...
  12. M

    Save Game / Load Game Help

    I am writing a Pokemon style RPG game in Visual Basic. There are hundreds of variables, that represent the character's stats, and as well, things that have been "unlocked" during game play, world events, etc. Does anyone know a really simple way of "freezing" all the variables in place so that...
  13. M

    Help with Classes and Objects

    I think I'm still a little confused about Classes and Objects. I am creating a small game, to teach myself programming. It's kind of like a Pokemon card game, with different characters, monsters etc. I want to use a HERO Class to store all the info on the players and a MONSTER class to store...
  14. M

    Modules talking to Forms

    Is there a spot on this forum for newbies? Like an "ask anything, no matter how stupid" area, like some forums have? If so, I can re ask this in that area, but my question is.... Why can't my code within a module talk to controls on a form ? I've got SUB's in modules, that I want to call...
Back
Top