We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

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


Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

How to Add New Discussion in Study Group ? Step By Step Guide Click Here.

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

+ How to Follow the New Added Discussions at Your Mail Address?

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?


See Your Saved Posts Timeline

Views: 6022

.

+ 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)

Attachments:

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

LGTA EXPIRE E HO GI YEH ASSIGNMNET

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}"
EndProject
Global

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()
{
InitializeComponent();
}

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

}

private void threadLoop2()
{
for (int i = 0; i <= 10000; i++)
{
Thread.Sleep(threadTwoSleep);
ThreadActionTwo("T2:Execution Count > " + i);
}
MessageBox.Show("Thread 2 is Completed");
}
private void ThreadActionTwo(string anStr)
{
Action anAction = () => { txtThreadDisplayTwo.Text += anStr + "\r"; txtThreadDisplayTwo.ScrollToEnd(); };
Dispatcher.BeginInvoke(anAction);
}
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 

Attachments:

RSS

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

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

.