Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.

CS411 Assignment No, 3 Discussion and Solution. Due date is 30 July Spring 2018

You are required to create a WPF C# application using Visual Studio.

Problem Statement:


Create a grid Layout with one Column and two rows

  • Inside first row create another grid with two columns and two rows and then add 4 buttons. Start First ,Stop First, Start Second and Stop Second. Make the border of this layout Green.
  • Inside second row create a DockPanel and add 4 vertical[1] progress bars. Border must be red.


Pressing Start first Button will increment first two progress bars so that second progress bar is incremented faster and upon reaching 100 the first progress bar is incremented by 1.

So the second progress bar will be completed 100 times and first one only 1 time[2]. But the UI should remain responsive[3] in between this process.

Stop button will stop the process and enable the start button to start process again.

Start Second will do the same to third and fourth progress bars but both the process should work in parallel.

Output.gif has been attached with this Assignment file please observe this file carefully your program’s output must be like this output file.

Submission details

Following Files Must be submitted in a single zip or rar file.

·         .C# code file

·         .XAML File (Front End file)

·         A .gif file which shows working of your Application(For Recording .gif a software named Screentogif is uploaded on LMS, or you can use any other gif recording tool as well)

You are not required to submit the complete project, only copy these three files from project folder. Please note if you submit doc file you will be awarded 0 marks.

If you do not submit any of the above mentioned file 25% marks per file will be deducted.

[1] To Make Progress vertical you can use Layout Transform.

[2] You can use nested loops to achieve this.

[3] UI remains responsive when task is being done asynchronously in separate threads.

Views: 8401


Replies to This Discussion

system.threading ko use ko use karo 

wo b add kya hai .. error just t and t1 py a rha hai .. isko kasy solve karu ab

Sami ULLAH theek keh raha hay

Meri file main kuch mistakes hain Sami ULLAh ki pics s bana lo or  Sami ULLAh bro aik pic top code ki b send kr do 

dockpanel ne use kya ap ne progresBar k lye ..

Sami Ullah Bhai Help please.... paste code

Here is my quick solution that i just developed for one of my friend Adnan Bhai. Is sy aap log idea uthaao and quickly modify yours accordingly  - There is a small appearance issue at my side - i couldn't apply the green and red colour at all !!... Please also suggest ur corrections too but this is final from my side. Download the attachment and wishing u all the best!!...

I had to remove the attachment due to privacy concern - yeh na ho khin us bechary ki assingmnet cancel ho jai - wait i will share the modified file.

mere pas ye error aa rha hy plzzz is k bare me guide kr dn is ko kya krna hy 


here are the modified attachments which excludes ID :)


here is another modified attachment the front end XML which excludes ID :)


its working fine


© 2021   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service