Solved File Comparsion Program

x BlueRobot

Closed by request
Local time
12:13 AM
Messages
6,784
Purpose of File Comparison:

I've created a small Windows Application which allows the user to open two files within the same program, I've filtered the file types to text files, batch files and HTML files.

I wrote the program, since usually if I'm writing up a batch file, I will add or remove certain elements, and see if the batch file will work any better, although usually I would have to constantly copy and paste the original program, save the batch file, and then run the batch file. This program will allow you to create one batch file, and then change elements in a entirely different file without affecting the first file.

I also had an idea, that if someone was teaching another user, how to write in HTML or Batch, then they could compare the learner's file to their file, and quickly find any bugs or errors within the code for the learner.

Here's a fee screenshots of the program:

1.JPG

The UI consists of two simple text boxes, and a menu strip with a few options similar to those found within Notepad.

2.jpg

The program has the ability to open two files independently of each other.

3.JPG

Clicking the Exit button, will warn you before exiting the application, so you don't accidentally delete your own work.

4.jpg

The program will allow you to open HTML files, Batch Files and Text Files.

5.JPG

Change the font size and font colour in both files, to allow you to highlight any changes or bugs you may find when writing or reading batch files. I've included larger font sizes to enable users to read the text better (I can add bigger sizes if needed).

Font Colour.jpg

Hope this program is useful to anyone, please PM me if you have problems or questions with the program.

Version 1.1 Release [Beta]:

I've made a small addition to the program, when you press the X, you will receive a prompt to confirm you want to close the program. See below:

Save.JPG

Close 2.JPG

At the moment, the program doesn't detect if you have made any changes, I'm learning on how to implement that into my program.

If you don't save any files, then the program loops back to the message box, I think I'm going to have another form created when the X is pressed, which will prompt you to save the file or not save the file instead.

Version 1.1 Release:

When clicking X, a message box will appear giving you two options: Yes and No. Yes will create a Save dialog box, the first box will be for File 1 and the second box will be for File 2. The No option will simply exit the application without saving any files.

Version 1.2 Release:

The program now detects changes to the text box, for example if you type anything into either text box, then you will receive the message box. If you haven't, have any changes to a text box, then the program will close normally without a message box appearing. Please note, even if you open a file into the text box, and don't make any modifications to the file, then the message box will still appear asking you if you would like to save the changes. I'm going to work and trying to detect modifications to opened files.

Version 1.3 Release:

The program will detect any changes made to opened files, and ask if would like to save these changes upon exiting the program. I would like to thank AceInfinity for helping me with the final version of the program.

Version 1.4 Release:

I've cleared up some code in the program, and added Combo Boxes as the option selection for the colours and font sizes. I've also added a few more colours to the program.

Version 1.5 Release:

Added Colour Dialog box (supports all colours), and added support for multi-colour text in both text boxes.

 

Attachments

Last edited:

My Computer

Computer type
Laptop
Nice. Is there a limitation of file size?
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Golden Mk. I.4
OS
Windows 10 Pro x64 ; Xubuntu x64
CPU
Intel i7 860 @ 2.80 GHz O/C'ed to 4.0GHz
Motherboard
Gigabyte P55A-UD3R Rev.1. Award BIOS F13
Memory
16GB Corsair Vengance DDR3 @ 661 MHz Dual Channel (9-9-9-24)
Graphics Card(s)
EVGA NVidia GTX 560 1024MB
Sound Card
Realtek Integrated
Monitor(s) Displays
Dual Samsung SyncMaster 2494HS
Screen Resolution
1920*1080 and 1920*1080
Hard Drives
1*Samsung 840 EVO 120GB SSD;
1*OCZ Vertex 2 60GB SSD;
2*Samsung F3 SpinPoint 1TB in RAID0;
1*Samsung F1 SpinPoint 1TB;
2*Western Digital 1TB External USB 3.0
1*Western Digital 500GB External USB 3.0
1*Seagate 500GB External USB 2.0
PSU
Thermaltake ToughPower QFan 750W
Case
Thermaltake Element S VK60001W2Z
Cooling
Corsair H60 Water Cooling, 2*230mm and 2*80mm case fans
Keyboard
Logitech G110
Mouse
Logitech MX518
Testing it out does it work on Windows 8
 

My Computer

Computer Manufacturer/Model Number
W530-3630QM1
OS
windows 7 home 64bit
CPU
INTEL-CORE I7
Memory
16GB
Hard Drives
750GB
Browser
Chrome
Testing it out does it work on Windows 8

It's written with the .NET Framework, so should just be limited to that, and C# (what the program is written in) is portable across all editions.
 

My Computer

Computer type
Laptop
Version 1.1 is now released.
 

My Computer

Computer type
Laptop
Version 1.2 is now released.
 

My Computer

Computer type
Laptop
Version 1.3 has been released. The functionality of the program is fully complete.
 

My Computer

Computer type
Laptop
Version 1.5 has been released.
 

My Computer

Computer type
Laptop
Nice work mate!
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dude Build
OS
Windows 10 Pro X64
CPU
Intel(R) Core(TM) i5-3570K CPU OC@ 4.5GHZ Turbo
Motherboard
MSI Z77A-G45 Gaming
Memory
8.00 GB DDR3 1600Mhz
Graphics Card(s)
MSI Gaming X GTX 1070
Sound Card
Realtek High Definition
Monitor(s) Displays
Dell S23O9W, HP L1710
Screen Resolution
DELL-1920 x 1080 HP-1280 x1024
Hard Drives
Crucial m4 256 SSD, WD 7200RPM 500GB WD 1TB
PSU
Seasonic X650 GOLD
Case
Zalman Z12
Cooling
Antec Kuhler 920
Keyboard
Logitech
Mouse
MSI DS100 Interceptor
Internet Speed
50 down and 5 up
Antivirus
MSE
Browser
Chrome, IE 11
Other Info
Logitech X-620 Speakers
Back
Top