Results 1 to 7 of 7

Thread: Excel-like Editor 0.6

  1. #1

    Default Excel-like Editor 0.6

    Jeah as posted in the DB-Discussion-Thread I programmed a litte editor too.
    Mainly because I didn't recognised the other two

    Nya whatever. You need .Net Framework in ver.3 (to be sure - 2 may also work)

    What its able to do:
    -read unit_stats_land
    -present in Excel-like table
    -allow modify of all values not marked unknown or which are needed the way they are for sure (name, the ID)
    -saves

    What its not able to do:
    -ensure that you don't make mistakes
    -have an eye on the format (until new version you can make a "3" out of "sword" ... effect unforseeable)

    So: MAKE BACKUPS (okay this is taken from you ) and use at own risk

    Ah and I added the source for those who want to change/modify/what ever. Its written in .Net (Visual) Basic. Only thing I want is to be credited when this program is used elsewhere.

  2. #2
    Senator
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    1,350

    Default Re: [Tool]Excel-like Editor 0.6

    another 1?? sweet. nice work. btw (i know you can alt+f4) wheres the close button?
    Last edited by lesterthenerd; March 12, 2009 at 03:55 PM.


  3. #3

    Default Re: [Tool]Excel-like Editor 0.6

    Cut that off because I don't know how th prevent the program from closing. I'd linked the routine called when pressing the Menu-End to Frame-Close but as foreseeable even when clicking "No" the program ends. Another idea which came into my mind right now is just to ask if the user wants to save the file or not. Thats something I add when I'm at home today in the evening (4pm GMT). Also I want to make the windoe resizeable

  4. #4

    Default Re: [Tool]Excel-like Editor 0.6

    The FormClosing event can be cancelled via its EventArgs.

  5. #5

    Default Re: [Tool]Excel-like Editor 0.6

    Just do:

    Application.Exit();

    That will take care of any garbage collection and close your form down. You can stick this inside a File -> Exit menu.

  6. #6
    up_and_adam's Avatar Civis
    Join Date
    Mar 2009
    Location
    Aussieland
    Posts
    123

    Default Re: [Tool]Excel-like Editor 0.6

    solution:

    PrivateSub shutDownProcess()
    test.Close()
    source.Close()
    r.Close()
    My.Computer.FileSystem.DeleteFile(WorkingDirectory & "\template.txt")
    End
    EndSub

    PrivateSub BeendenToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BeendenToolStripMenuItem.Click

    If MessageBox.Show("Do you wish to quit? Unsaved changes will be lost", "Quit", MessageBoxButtons.OKCancel, MessageBoxIcon.Information) = MsgBoxResult.Ok Then

    shutDownProcess()
    Me.Close()

    EndIf
    EndSub

    Spoiler Alert, click show to read: 

    Dont add Rants || Add Rep

  7. #7

    Default Re: Excel-like Editor 0.6

    Works, nice one.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •