We have been working very hard since 2009 to facilitate in your learning Read More. We can't keep up without your support. Donate Now.


+ Link For Assignments, GDBs & Online Quizzes Solution


+ Link For Past Papers, Solved MCQs, Short Notes & More

Visual Programming (CS411) Assignment # 4 (GRADED) Solution & Discussion Due Date Feb 18, 2016

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)

Views: 6105


Replies to This Discussion

1: download it
2: unzip it
3: run the Microsoft Visual Studio Solution (.sln) file
4: make changes in it
5: submit it :)

nai ho rai open

bhai ap just code file upload krn isme pta b nh chlta exact file konsa hy r jisko run krty hyn wo eror dety hy...plzzz hu sky tu ap code file hy just upload kr dyn.....?thanks

Thanks Friend....You made me successful...:-)

koi to solution upload kr do plzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz


Solution FOr Newer to Older Version Compatibility.
Right Click on .SLN file and open with Notepad. now u can find some thing like this.
Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2012
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WPFThreads", "WPFThreads\WPFThreads.csproj", "{6E32CC82-A617-483B-B7D4-5C7541DB11CF}"

Change 2012 to 2010 if u want to use older version. then run it.

its not working

Complete Solution...

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Threading;

namespace WPFThreads
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
private int threadOneSleep = 100;
private int threadTwoSleep = 100;
public MainWindow()

private void threadLoop1()
for (int i = 0; i <= 10000; i++)
ThreadActionOne("T1:Execution Count > " + i);
MessageBox.Show("Thread 1 is Completed");
private void ThreadActionOne(string anStr)
Action anAction = () => { txtThreadDisplayOne.Text += anStr + "\r"; txtThreadDisplayOne.ScrollToEnd(); };


private void threadLoop2()
for (int i = 0; i <= 10000; i++)
ThreadActionTwo("T2:Execution Count > " + i);
MessageBox.Show("Thread 2 is Completed");
private void ThreadActionTwo(string anStr)
Action anAction = () => { txtThreadDisplayTwo.Text += anStr + "\r"; txtThreadDisplayTwo.ScrollToEnd(); };
private void Button_Click_1(object sender, RoutedEventArgs e)
new Thread(threadLoop1).Start();
btn1.IsEnabled = false;


private void Button_Click_2(object sender, RoutedEventArgs e)
new Thread(threadLoop2).Start();
btn2.IsEnabled = false;

private void lbxSpeeds1_SelectionChanged(object sender, SelectionChangedEventArgs e)
ListBoxItem lbxItem = ((sender as ListBox).SelectedItem as ListBoxItem);
threadOneSleep = int.Parse(lbxItem.Content.ToString());

private void lbxSpeeds2_SelectionChanged(object sender, SelectionChangedEventArgs e)
ListBoxItem lbxItem = ((sender as ListBox).SelectedItem as ListBoxItem);
threadTwoSleep = int.Parse(lbxItem.Content.ToString());

dear when i paste this code it gives build errors.... can you explain plz what are build errors

anyone please i am unable to change to 2012 file to 2010. Visual studio opens but it show nothing...Please help

Complete Solution With Code Uploaded Lately 



Looking For Something? Search Here


This is a member-supported website. Your contribution is greatly appreciated!

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

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