Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

SOLVED: WPF application get crashed on pressing right mouse button

Ashutosh stark:

I am actually trying to making an Jarvis AI program in c# wpf but i am getting exception in the codes. Actually the problem is when ever in press the right Mouse button on my running Application, the application gets stuck and crashed can any one can help me in solving this.

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;

namespace jarvis
/// Interaction logic for MainWindow.xaml

public partial class MainWindow : Window
public MainWindow()

private void Grid_MouseDown(object sender, MouseButtonEventArgs e)


Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots
This Question have been answered

This post first appeared on Stack Solved, please read the originial post: here

Share the post

SOLVED: WPF application get crashed on pressing right mouse button


Subscribe to Stack Solved

Get updates delivered right to your inbox!

Thank you for your subscription