Click here to Skip to main content
15,868,016 members
Home / Discussions / C#
   

C#

 
AnswerRe: how i can auto searching devices and sending file with bluetooth using 32feet ,C#,WPf Pin
Kornfeld Eliyahu Peter4-Jan-14 22:29
professionalKornfeld Eliyahu Peter4-Jan-14 22:29 
QuestionCreating C# TCP listener windows Service Pin
Tobben_4-Jan-14 11:47
Tobben_4-Jan-14 11:47 
AnswerRe: Creating C# TCP listener windows Service PinPopular
Ron Beyer4-Jan-14 12:00
professionalRon Beyer4-Jan-14 12:00 
QuestionGetting Thread Exception: while using System.Timer Class Pin
Member 99612394-Jan-14 7:16
Member 99612394-Jan-14 7:16 
AnswerRe: Getting Thread Exception: while using System.Timer Class Pin
Pete O'Hanlon4-Jan-14 8:15
subeditorPete O'Hanlon4-Jan-14 8:15 
AnswerRe: Getting Thread Exception: while using System.Timer Class Pin
Dave Kreskowiak4-Jan-14 10:20
mveDave Kreskowiak4-Jan-14 10:20 
AnswerRe: Getting Thread Exception: while using System.Timer Class Pin
Brite Varghese9-Jan-14 6:22
Brite Varghese9-Jan-14 6:22 
AnswerRe: Getting Thread Exception: while using System.Timer Class Pin
Member 99612399-Jan-14 17:47
Member 99612399-Jan-14 17:47 
Thanks Guys for your quick help.
The problem is solved using DispatcherTimer.
Below is the code: of MainWindow.xaml.cs class

public partial class MainWindow : Window
{
private DispatcherTimer timer;


public MainWindow()
{
InitializeComponent();
Loaded += new RoutedEventHandler(Window1_Loaded);
}
void Window1_Loaded(object sender, RoutedEventArgs e)
{
timer = new DispatcherTimer();
timer.Interval = TimeSpan.FromSeconds(3);
timer.Tick += new EventHandler(timer_Tick);
timer.Start();
}

void timer_Tick(object sender, EventArgs e)
{
DeviceObjectVM deviceObjectVM = new DeviceObjectVM();
dgDeviceValue3.ItemsSource = deviceObjectVM.DeviceObjectCollection;
}
}
Where DeviceObjectVM is my viewmodel class and dgDeviceValue3 is my datagrid. which is bound to the vm's observablecollection.

Using DispatcherTimer i was able to update my UI Control dgDeviceValue3.
QuestionC# datagridview navigator Pin
Member 78188924-Jan-14 3:58
Member 78188924-Jan-14 3:58 
AnswerRe: C# datagridview navigator Pin
Alan N4-Jan-14 4:20
Alan N4-Jan-14 4:20 
Questionabout Sign unsigned drivers Pin
delphix53-Jan-14 8:43
delphix53-Jan-14 8:43 
AnswerRe: about Sign unsigned drivers Pin
Dave Kreskowiak3-Jan-14 9:05
mveDave Kreskowiak3-Jan-14 9:05 
GeneralRe: about Sign unsigned drivers Pin
delphix53-Jan-14 9:37
delphix53-Jan-14 9:37 
GeneralRe: about Sign unsigned drivers Pin
Dave Kreskowiak3-Jan-14 10:29
mveDave Kreskowiak3-Jan-14 10:29 
GeneralRe: about Sign unsigned drivers Pin
delphix53-Jan-14 10:50
delphix53-Jan-14 10:50 
GeneralRe: about Sign unsigned drivers Pin
Dave Kreskowiak3-Jan-14 14:11
mveDave Kreskowiak3-Jan-14 14:11 
GeneralRe: about Sign unsigned drivers Pin
delphix54-Jan-14 2:48
delphix54-Jan-14 2:48 
Questionget the property name of custom folder Pin
Member 102635192-Jan-14 19:54
Member 102635192-Jan-14 19:54 
AnswerRe: get the property name of custom folder Pin
Eddy Vluggen3-Jan-14 6:23
professionalEddy Vluggen3-Jan-14 6:23 
QuestionDeserialize Pin
shers2-Jan-14 18:52
shers2-Jan-14 18:52 
AnswerRe: Deserialize Pin
dan!sh 2-Jan-14 21:02
professional dan!sh 2-Jan-14 21:02 
QuestionHow to save data in c# Pin
gaurav23252-Jan-14 18:24
gaurav23252-Jan-14 18:24 
QuestionRe: How to save data in c# Pin
Richard MacCutchan2-Jan-14 21:31
mveRichard MacCutchan2-Jan-14 21:31 
AnswerRe: How to save data in c# Pin
OriginalGriff2-Jan-14 21:35
mveOriginalGriff2-Jan-14 21:35 
AnswerRe: How to save data in c# Pin
Eddy Vluggen3-Jan-14 6:24
professionalEddy Vluggen3-Jan-14 6:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.