Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. leprogrammer

    (Part 2) Retriving data from a irc server

    Hello. Well since my last topic (http://www.tek-tips.com/viewthread.cfm?qid=1501867&page=1) I have read quite a bit about threads, and I feel like I know it know, but I still have one question regarding data from a irc server. I dont feel like running a while in my thread since it doesnt seem...
  2. leprogrammer

    Retriving data from a irc server

    Hello. I have been creating a simple irc client that connects to a server and sends some simple commands to it I have also figured out how to retrive data from the server by using streams The problem is I have to run a never-ending while to keep retriving all the data from the server I do it...
  3. leprogrammer

    StreamWriter & xml reading problem

    Hello. I have this wierd problem when im writing to a text file with data from a array I have this method: private void writeData() { // Open file StreamWriter writeData = new StreamWriter(saveMonsterSetBase.FileName, false); // Write all data from array to file for (int x =...
  4. leprogrammer

    Auto update of program (Downloading from web)

    Hello. I have been creating a application that checks the application version and sees if it fits with the version from http://msbeditor.dumpen.dk/versioninfo.html If it doesnt I use a webBrowser component to open a download link to http://msbeditor.dumpen.dk/msbEditor.rar But this is not...
  5. leprogrammer

    Enable/disable buttons according to txt file

    // Current lines left in the array // Adding + 1 so it wont take the current line linesLeft = currentLineNumber + 1; // Looping through the rest of the lines from my array.Count for (int i = linesLeft; i < MonsterSetBaseDataArray.Count; i++)...
  6. leprogrammer

    Enable/disable buttons according to txt file

    So you would suggest using the length of the lines in the array? One thing I must do is save ALL data in the array since I write to my file later on, so the lines have to fit to the array
  7. leprogrammer

    Enable/disable buttons according to txt file

    Im using forms with visual C# I know how to do a if where it checks if the array/text file is in the end, but the problem is that there can be some unvalid data and I dont know how to enable/disable if the data is unvalid The text file is not the same all the time. The user can change it So...
  8. leprogrammer

    Enable/disable buttons according to txt file

    Hello. I this txt file: // Comment 2 0 0 20 177 185 4 // comment 0 0 20 75 65 4 // hi!! 0 0 20 85 65 4 // asd 0 0 20 95 65 4 // (bbb end Where I divide the data into valid and unvalid lines All the data is saved into an array The valid data is: 0 0 20 177 185 4 // comment 0 0 20 75 65 4 //...
  9. leprogrammer

    Line changment in streamWriter and sensitive replace method

    Hello. I have 2 questions for you Question 1: I got this method: private void writeData() { StreamWriter writer = new StreamWriter(saveMonsterSetBase.FileName, false); for (int i = 0; i < MonsterSetBaseDataArray.Count; i++) {...
  10. leprogrammer

    Saving text manipulated data

    Ok now I got the saving text working by nor removing any data from the text file so my array looks like this: // Test 0 0 0 0 15 15 7 // 0 end 1 1 1 30 25 25 240 240 -1 5 // 1 end But now I ran into another problem I have a image where I draw...
  11. leprogrammer

    Saving text manipulated data

    Well its not an assigment, but just a sparetime project I have been working on to develop my C# skills As for using text files I cant rellay do anything about it, because I didn develop the game. Im just making software for it :) I would personally prefer a sql database, but I cant rellay do...
  12. leprogrammer

    Saving text manipulated data

    All right.. I will try to explain again I have the array MonsterDataArray which contains the data from the text file The array looks like this: 0 0 0 15 15 7 // 0 1 1 30 25 25 240 240 -1 5 // 1 And both of the lines above has a line number in the array which is 0 and 1 Now I changed...
  13. leprogrammer

    Saving text manipulated data

    Hello. I have a small question/problem. I have this text file: // Test 0 0 0 0 15 15 7 // 0 end 1 1 1 30 25 25 240 240 -1 5 // 1 end I read it into an array in C#, but in my array I read it in as 0 0 0 15 15 7 // 0 1 1...
  14. leprogrammer

    Invalidate picturebox with rectangle on

    Hello. I have a simple picturebox where there is a image loaded in Im drawing a rectangle on the picturebox and when I press a button I want to invalidate it (remove the rectangle), but it doesnt seem to work The rectangle is drawn fine and the image loads up to, but when I press my button...
  15. leprogrammer

    Reading txt file to textbox

    It all works now :P
  16. leprogrammer

    Creatig ellipse on a picturebox and making ellipse a link

    Thank you for the answear(s) Now I got it writing on the picturebox and when clicking on ellipse it shows a messagebox But it only works for the last ellipse because the variable gp changes <.< Any idea? Here is the code: public void readFileToPaint() { string line; string data; string...
  17. leprogrammer

    Creatig ellipse on a picturebox and making ellipse a link

    Hey im back with a new questions / problems ;) Question 1: I have a image that is in a picturebox which is called pictureBox1 I want to read monstersetbase.txt and add small ellipses to my image. The position of the ellipse comes from my monstersetbase.txt. The image is 256x256 and the...
  18. leprogrammer

    Reading a specific line from txt file

    Yes, but right now I cant rellay cope with classes. For my next program I use classes ;)
  19. leprogrammer

    Reading a specific line from txt file

    Thanks but I just used private void findMonster(int monsterId) { StreamReader sr = new StreamReader(@monsterLocation); int searchId = monsterId; int actualId = 0; string name = "(Not found)"; string[] details = null...

Part and Inventory Search

Back
Top