| Fancy Progressbar - Ver 2 | ||||||
| . | ||||||
| (Demo for Progressbar, Prime numbers, Dynamic Form.) | ||||||
| (Written by me in c#) | ||||||
| Version: 170411Tu | ||||||
| . | ||||||
|
||||||
| . | ||||||
| I found a Project in working folder of C# 2010 with name 'FancyProgressbar' which was written by me a few years ago. I opened it ran it and went through it's code. That project was collection of some fancy looking Progressbars. After running that project for some time I made another project for sharing here and named it 'FancyProgressbar-02'. | ||||||
| . | ||||||
| This project is a demo project. First it demonstrates a fancy looking Progressbar. Second it demonstrates how to find prime numbers between 2 numbers with a gap of 100000000. Third it demonstrates how to create a form programmatically and use it to show Help information. | ||||||
| . | ||||||
| A simple fancy looking progressbar: | ||||||
| Fancy looking progressbar is actually made of one TableLayoutPanel and two Progressbars. First Progressbar with it's Style set to ProgressBarStyle.Continuous and second Progressbar with it's Style set to ProgressBarStyle.Marquee. Resultant Progressbar is made to look fancier by playing with some Properties of these 3 controls. It's use is demonstrated during finding of prime numbers. | ||||||
| . | ||||||
| Finding Prime numbers: | ||||||
| Application runs a long process for finding prime numbers between 2 randomly generated numbers with a gap of 100000000 and updates fancy progressbar based on calculated percentage of work done by that process for each number it processes. Method for finding prime number is not optimized for speed or space. It is used here for having a long process for Fancy progressbar demo. | ||||||
| . | ||||||
| Creating Form programmatically: | ||||||
| Help information is displayed through a form created dynamically / programmatically on the fly. First Form is created second a control is added, Label in this case, third some properties of Form and Label are set according to needs (like Help info to Text property of Label) and fourth form with Help information is displayed. | ||||||
| . | ||||||
| Following are the screen shots of 'Fancy Progressbar - Ver 02' application with explanation. | ||||||
| . | ||||||
|
||||||
| Application looks like this when it is loaded. | ||||||
| . | ||||||
| . | ||||||
|
||||||
| Application's Help form looks like this and it is displayed when 'Show Help' button is clicked. It displays some basic information about application. Working of main Form is not blocked by display of Help form. Help window uses different color on each load which it randomly selects from "Black, Blue, Green, Purple, DarkOrange, Red and DarkCyan". I used creation date of the original project in Help info. | ||||||
| . | ||||||
| . | ||||||
|
||||||
| Application looks like this when 'Start' button is clicked and application starts finding prime numbers between 2 randomly generated numbers. 'Start' button becomes disabled and 'Stop' button becomes enabled. In status line application shows that it is 'Busy...' and percentage of job done by progressbar and percentage number. It also shows number of Primes found and Primes found percentage in form. | ||||||
| . | ||||||
| . | ||||||
|
||||||
| Application looks like this when Job is completed. 'Start' button becomes enabled again and 'Stop' button becomes disabled. In status line it shows 'Done.' and Progressbar and percentage label shows that 100% job is completed. Total Primes found and Primes found percentage are shown in different fields of form. | ||||||
| . | ||||||
| . | ||||||
|
||||||
| Application looks like this when 'Stop' button is clicked. On doing so application stops doing it's job and shows 'Stopped.' in status line. 'Start' button gets enabled and 'Stop' button gets disabled. | ||||||
| . | ||||||
| . | ||||||
| [Update-2017Apr12Wed]: | ||||||
| Today I removed some typing mistakes from this post and user-interface of application. I also made improvement to logic of application today. | ||||||
| . | ||||||
| . | ||||||
| Enjoy Complete Source code of application written and compiled in visual studio 2010 Ultimate by me. Download it. Extract it. Read 'ReadMeFirst.txt' file and do as is explained in it. | ||||||
Tuesday, April 11, 2017
Fancy Progressbar - Ver 2 - C Sharp - 170411Tu
Friday, April 7, 2017
Happy 4000 PageViews - (2017 Apr 07 Fri)
|
Thursday, April 6, 2017
Menu Generator Ver 3 - C Sharp - 170406Th
| Menu Generator Ver 3 |
| . |
| (Generates Menu of my Dreams. Written by me in c#) |
| Version: 170406Th |
| . |
| Once upon a time I wanted to have a menu under and/or above every page of threads in Forums, I was visiting in those days, to make navigation in between pages of thread easier. |
| . |
| My idea then was and still is that, that menu and it's sub-menus will show all page numbers of respective thread in a hierarchy to let user go directly to required page. This type of menu will be specially very useful in any situation where one needs to go to some information through a number in a very long list of numbers eg page number of a thread or record number of a database table etc, in a very long list. |
| . |
| So I made an application in C# to test it's 'look and feel' myself. And it is looking good to me. |
| . |
| . |
| Following are the screen shots of 'MenuGenerator - 03' application with explanation. |
| . |
| . |
|
| Application looks like this when it is loaded. |
| . |
| . |
|
| Menu with 'Menu' text gives two options "Help" and "Exit". 'Help' menu gives three options 'About', 'Purpose' and 'How to Use'. |
| . |
| . |
|
| Application looks like this when 'About' option of 'Help' menu of 'Menu' menu is selected. It displays some basic information about application. |
| . |
| . |
|
| Application looks like this when 'Purpose' option of 'Help' menu of 'Menu' menu is selected. It displays text describing purpose of this application. |
| . |
| . |
|
| Application looks like this when 'How to Use' option of 'Help' menu of 'Menu' menu is selected. It displays information about how one can use this application. |
| . |
| . |
|
| Application looks like this when 'Generate Indexed Menu' button is clicked and application starts generating 'Indexed' menu. In status line application shows name of count of menuItem generated and time consumed so far. |
| . |
| . |
|
| Application looks like this when 'Indexed' menu generation completes. In status line it shows how many menus and menuItems were generated and how much time was consumed in doing so. |
| . |
| . |
|
| Application looks like this when 'Generate Pagination Menu' button is clicked and application starts generating 'Pagination' menu. In status line application shows name and count of menuItem generated and time consumed so far. |
| . |
| . |
|
| Application looks like this when 'Pagination' menu generation completes. In status line it shows how many menus and menuItems were generated and how much time was consumed in doing so. |
| . |
| . |
|
| Application looks like this when both 'Indexed' and 'Pagination' menu generation completes. In status lines or both it shows how many menus and menuItems were generated and how much time was consumed in doing so. |
| . |
| . |
|
| Application looks like this when some menuItems are selected from generated 'Indexed' menu. |
| . |
| . |
|
| Application looks like this when some menuItems are selected from generated 'Pagination' menu. It clearly shows how easy it is to navigate to any number. And that number can be 'Page number of a thread' or a 'Record number of a database table' or any thing else similar. |
| . |
| . |
| Menu generated by clicking 'Generate Pagination Menu' is the menu I was talking about at start of this blog post and this menu can be seen by clicking 'Pagination' menu. One can reach to any required number between 1 and 100000 by clicking 6 times only or by clicking 2 times, once for opening 'Pagination' menu and once for selecting required number, and hovering 4 times for expanding in between menus. |
| . |
| . |
| Similarly for upper limit of 1000000 (one million) only 7 clicks will take to required number. For upper limit of 1000000000 (one billion) only 10 clicks will take to required number. For upper limit of 1000000000000 (one trillion) only 13 clicks will take to required number. For upper limit of |
| 100000000000000000000000000000000000000000000000000 |
| 00000000000000000000000000000000000000000000000000 |
| only 101 clicks will take to required number. And so and so on. |
| . |
| . |
| Menu generated by clicking 'Generate Indexed Menu' is added as a bonus in this application and this menu can be seen by clicking 'Indexed' menu. |
| . |
| . |
| Enjoy Complete Source code of application written and compiled in visual studio 2010 Ultimate by me. Download it. Extract it. Read 'ReadMeFirst.txt' file and do as is explained in it. |
Friday, March 10, 2017
My Concept Motorcycle # 1 - 170310Fr
| My Concept Motorcycle # 1 |
| . |
| (Motorcycle of my ongoing thought process.) |
| Version: 170310Fr |
| . |
| Once upon a time a few decads ago I watched a punjabi film maybe on PTV or maybe in some Cinema. I do not remember that film's name now neither I remember it's story or any song or any dialoge etc. But I still remember one scene of that film in some detail. According to what I still remember hero of that film was a tanga (carriage) driver or maybe owner of tonga. Horse of hero's tonga was pure white. |
| . |
| Now about that scene, which somehow I still remember, before I forget it also. Hero of that film was going somewhere on his tanga drawn by white horse. Somewhere on his way villain party blocks hero's way and then hero and villain & co. starts fighting with each other. Because hero was alone and villain party were more in number, villain party was having an upper hand in that fighting. |
| . |
| Watching all this with great anxiety and anticipating something bad for hero of the film and his master, white horse of hero's tonga made a quick rescue plan. After standing on his rear feet again and again and trying to do boxing with villain party and making sounds he, the white horse, ran back to hero's house in his village. |
| . |
| On watching tanga back at home without his master, hero's family got upset. Meanwhile horse kept rising on his rear legs, moving his front legs in air, and making different sounds. At last hero's family, with the help of background music, were able to decipher horse's help call. And almost entire family of hero, male and female, young and old, stepped on to tanga and tanga pulled by white horse raced back to the place where hero of the film was trapped by villain party. |
| . |
| After that what happened I do not remember. I do not remember any thing before that scene either. |
| . |
| Maybe this scene and some good looking heavy bikes were in my mind that I thought why not I try to make a motorcycle which drives on it's own. |
| . |
| . |
| Since then I kept adding and subtracting features to my concept motorcycle which nowadays looks like following:- |
| Electric powered: Motorcycle will be powered by chargeable batteries fitted in place of engine area. Which will power two electric motors fitted in front and back wheels. |
| All wheel drive: Motors fitted in wheels will drive them directly. Because of this motorcycle will drive better on the road and off the road. |
| All wheel steering: This will give better control over motorcycle's movement. |
| Reverse gear: Motorcycle will have one reverse gear in addition of normal front gears. |
| Self driving: Motorcycle will be able to drive totally by itself. |
| Self balancing: Motorcycle will be able to balance itself on it's own as long as it's engine remain on. |
| . |
| . |
| This type of motorcycle will be very useful in situations where motorcycle rider gets enjured or gets unconcious etc during ride. Because motorcycle will be able to take it's rider to nearest 'human service center' like hospital or home etc automatically on its own without requiring any human help. |
| . |
| Let's see what happens next. |
| . |
Saturday, March 4, 2017
Converter emulator Ver 5 - C Sharp
| Converter emulator Ver 5 |
| (My mobile's Converter emulator written by me in c#) |
| . |
| After making emulators for stopwatch found in my mobile I searched my mobile further to select a few more apps to make their emulators. 'Converter' was one of app I short listed for making myself in C Sharp Windows Forms Application. |
| My mobile's 'Converter' app's purpose is to convert values from one unit to another so it is a simple app. Making of it's emulator was also simple. In my version of 'Converter' I reduced or removed features and categories of units for keeping things simple. |
| It's UI(User Interface) is also simple and easy to understand. It loads with a 'Category' and 'Subcategory' value set and 'Precision' selected. On entering value for a row it calculates and displays value for other row. From 'Menu' either 'Help' can be viewed or 'Category/Subcategory' can be selected. Press 'Enter' in any row under 'Value' column to get value of other row updated. Use mouse, 'TAB', 'UP-Arrow' and 'DOWN-Arrow' for navigating between form fields. Precision from 1 to 10 can be selected. |
| . |
| Following are the screen shots of 'Converter' application with explanation. |
| . |
|
|
| Application looks like this when it is loaded |
| . |
|
|
| Application looks like this when 1st it is loaded and 2nd from it's 'Menu' 'Help' option is selected. |
| . |
|
|
| Application looks like this when 1st it is loaded and 2nd some of it's menus are expended. |
| . |
|
|
| Application looks like this when 1st it is loaded and 2nd it's 'Menu -> Category/Subcategory' -> Temperature -> Fahrenheit <-> Celsius' is selected and 3rd '32' is entered under value column for 'Fahrenheit' row and 4th result for 'Celsius' row under value column is displayed. |
| . |
| I will soon upload this 'Converter' application's entire project to some site and put project's download link from there here. And may be before that I will post important parts of this 'Converter' application's source code here. |
| Until then download and extract and run and enjoy DEMO of this 'Converter' application written and compiled in visual studio 2010 Ultimate by me. |
| . |
| . |
| [Update 2017 May 25 Tue] |
| Enjoy Complete Source code of application written and compiled in visual studio 2010 Ultimate by me. Download it. Extract it. Read 'ReadMeFirst.txt' file and do as is explained in it. |
| . |
Monday, February 20, 2017
A beautiful video of Snow drive
| A Beautiful video of Snow drive |
| (A video of long drive on snow landscape) |
| . |
| I do not remember exactly, may be in middle of 2011, when I reached on this video while searching and watching and liking travel videos. But I remember that I liked it very much the moment I watched it for the first time. Speciallyl I liked it's snow covered landscape around roads. Snow covered trees, snow covered buildings and snow covered roads itself are looking so good in this video. |
| . |
| Title: A State of Trance 704 with Armin van Buuren |
| link to video |
| . |
| . |
| . |
| . |
| I wish some day I also make a video myself of long drive in a beautiful area full of beautiful sceenery all around. This video reminds me of some other video of same situation but unfortunatly now I do not remember that video's link or name or anything. |
| . |
Wednesday, February 15, 2017
My Art Work - cc2013
Subscribe to:
Posts (Atom)