Saturday, July 27, 2013

Shortest Job First Non-Preemptive C# Program

I made this Shortest Job First Non-preemptive program in C#

This program has the following functuanility

CPU Status : indicating if there is any process currently being executed by the CPU or not. This can be either busy OR free

Queue Status : List all the process that are in queue, and will be executed by CPU

Gant Chartt   : Display A gant chartt of process

Turn Around Time

Waiting Time

Processes can be added by clicking the Add button, there are no limit of how many processes can be addded.

You will need framework 4.0 for this application to work.

Download the Program from HERE


Thursday, July 25, 2013

How to make a conference call in PTCL

A. Conference calling is simply a phone call in which three parties can converse over the phone at the same time and it doesn't matter where any of the parties are located at the time. It can be anywhere in the world. A Conference Call service provides instant unlimited automated conferencing calls that take place on regular telephone. These conference call services are available 24/7 with no scheduling.

Q2. How do I subscribe to Conference Call?

A. To subscribe just call 1236

Q3. How do I unsubscribe to Conference Call?

A. To un-subscribe just calling 1236

Q4. How do I make a Conference Call?

First dial you desired number, after the call is connected press the flash button as quick as possible the flash button can be seem in the picture below

After you press the flash button the current call will be put on hold, now you can dial second person number, after the call is connected again quickly press the flash button and than press 3

In some newer telephone set the flash button is also provided as a key on keypad that key can also be use.
Q5. Can I make a nationwide Conference Call?

A. Yes you can make nationwide calls

Q6. Can I make a Conference Call to a mobile number?

A. Yes you can make a Conference call to mobile numbers

 Q7. What if I want to make a Conference Call with an international number?

A. You can also make a conference call on any mobile/landing located internationally

Q8. How many people can conference with each other in a single call?

A. Currently maximum three people can be connected to a conference call

Q9. What if I want to conference between more than three people?

A.  Maximum three people can talk with each other in a single call.

Q10. Do I have to pay any monthly charges?

A. Only Rs 25/- per Month

Q11. My friend and I have subscribed for conference call service, can we make a chain conference call of more than 3 people?

A. No. that is not possible using PTCL conference call service.

Q12. What will be tariff for the two calls I made during conference call?

A. The two calls will be charged at normal tariff.

Wednesday, July 24, 2013

How to Control a login ASP C#

On a web page there are 2 text box txtUserName and txtPassword, 1 submit button and a label 

After typing userName and password when the user click on button it will be checked against database, and if they match the label will be updated

When Wrong password is entered
When Correct Password is entered
To Download the Project click HERE

I hope this was informative for you and I would like to Thank you for reading

Monday, July 22, 2013

Tic Tac Toe Game In Visual Studio C# GUI Based


I have developed this Tic Tac Toe in Visual Studio C#

Tic Tac Toe C#

You will need framework v4.0 to run this Application

Download this Application from HERE
(file is password protected, password is taqi)


The World Wide Web Publishing Service (W3SVC) is stopped

Hi There,
              If you are facing problem in starting your web site under IIS like

The World Wide Web Publishing Service (W3SVC) is stopped. Web Sites cannot be started unless the World Wide Web Publishing Service (W3SVC is running).

This error indicate that the World Wide Web Publishing Service which is a required service for IIS is not enabled.

To fix this error follow the steps below.

1. Open up services.msc

2. Now find the service name as World Wide Web Publishing Service

3. Right click on the service and than click on Start

Or you can go to properties of this service and set it's start-up type to Automatic, this way you will not have to repeat this procedure again and again.

I hope this was informative for you and I would like to thank you for reading

Saturday, July 20, 2013

How To Fix Cross Threading Operation not Valid C#

While working on Windows Application in C#, you might have come to a situation where you need to use threading. and you might encounter a error as Cross Threading not valid

Cross-thread operation not valid: Control label2 accessed from a thready other than the thread it was created on
Basically I was trying to access a control which was created in other thread, and I'm on other thread, so that's why I got this error

To fix this error is quite simple

There is a property called CheckForIllegalCrossThreadCalls

This is a boolean property i.e. It can only support either true or false

You just need to set this value to false, and place it in your form load method 

   1:      private void button1_Click(object sender, EventArgs e)
   2:          {
   3:              Thread objthread = new Thread(new ThreadStart(myfunc));
   4:              objthread.Start();
   5:              CheckForIllegalCrossThreadCalls = false;
   6:          }
   8:          void myfunc()
   9:          {
  10:              label2.Text = "Text Changed";
  11:          }