Skip to content

Instantly share code, notes, and snippets.

//http://prntscr.com/8w13bc
//**What I want**
//I'd like it to show a messagebox when for example
//the textboxes have a certain value in it (such as name : tim , fname: dams, etc ..)
//and the right textboxes are checked (for example A, B, Banaan, 3)
//how do i go about this?
namespace Labo6Extra
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;
<Window x:Class="Labo6Extra.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:Labo6Extra"
mc:Ignorable="d"
Title="Spy file.TimDams" Height="350" Width="525">
<Grid>
<TextBox x:Name="txbName" HorizontalAlignment="Left" Height="23" Margin="24,25,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="200" TextChanged="txbName_TextChanged"/>
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;
<Window x:Class="Labo6Extra.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:Labo6Extra"
mc:Ignorable="d"
Title="Spy file.TimDams" Height="350" Width="525" DataContextChanged="Window_DataContextChanged">
<Grid Loaded="Grid_Loaded">
<TextBox x:Name="txbName" HorizontalAlignment="Left" Height="23" Margin="24,101,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="200" TextChanged="txbName_TextChanged"/>
# Import some necessary libraries.
import socket
# Some basic variables used to configure the bot
server = "irc.freenode.net" # Server
channel = "##apelektronica" # Channel
botnick = "FailBot" # Your bots nick
ping = "PONG :pingis\n"
def ping(): # This is our first function! It will respond to server Pings.
@localdevm
localdevm / Stackoverflow
Created October 29, 2015 14:32
A hard excercise
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;
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;
@localdevm
localdevm / stack
Last active November 19, 2015 15:55
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;
<Window x:Class="WiskundigeBewerkingenGetransponeerde.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WiskundigeBewerkingenGetransponeerde"
mc:Ignorable="d"
Title="MainWindow" Height="350" Width="525">
<Grid>
<Grid.RowDefinitions>