Subscribe to The Madman Scribblings        RSS Feed
- - - - -

Adding Percentage to a ProgressBar

Icon Leave Comment
The Secret to adding a percentage to a progress bar is to create your own, inheriting from ProgressBar.

Override the New
Public Class pb Inherits ProgressBar Public Sub New()  Me.SetStyle(ControlStyles.AllPaintingInWmPaint Or ControlStyles.UserPaint Or ControlStyles.OptimizedDoubleBuffer Or ControlStyles.ResizeRedraw, True) End Sub
...
- - - - -

Solving the Numbers Game

Icon Leave Comment
Rules of the Countdown Numbers Games

1. Six numbers are chosen at a random from a selection of {100,75,50,25,10,10,9,9,8,8,7,7,6,6,5,5,4,4,3,3,2,2,1,1}
2. Random number between 100 and 999 inclusive is selected to be the Target
3. By using any of the 6 numbers and the standard arithmetic operations + * - /, attempt to reach the target number.
4....
- - - - -

Developing a Generic Radix Sort

Icon Leave Comment
The .net framework has a sorting method (I think either QuickSort or MergeSort) that can be made to work for any type.
So want to see if it was possible to create a general RadixSort that could work for any type.

This is what I've come up with.

The Interface: IRadixSort(Of T)
...
- - - - -

Is it time for a new different take on memory architecture?

Icon 1 Comments
The future trend in CPUs is multiple cores but to me the doesn't remove one the main bottlenecks which is Memory Access Latency.
So is it time for new a different take on memory architecture?

The problem is multiple threads accessing the same resource particularly memory locations.
Reading is OK
Writing is an Issue.

My thoughts on the...
* * * * *

Textboxes and Numbers (Are these Numbers?)

Icon 1 Comments
What does the two textboxes contain?
Image reduced in size

Answers
a. they contain the numbers 123 and 456 respectively.
b. they contain strings that can be interpreted as the numbers 123 and 456.

If you answered a...
  • (11 Pages)
  • +
  • « First
  • 9
  • 10
  • 11

Search My Blog

Recent Entries

Recent Comments