Featured Articles
All Stories

Friday, November 18, 2016

Order of Executio of SQL Queries

Order in which SQL server process the queries.

1. FROM
2. ON
3. OUTER
4. WHERE
5. GROUP BY
6. CUBE | ROLLUP
7. HAVING
8. SELECT
9. DISTINCT
10 TOP
11.ORDER BY




11:28 AM - By azeheruddin khan 0

Monday, November 14, 2016

Best examples of design pattern using c#

This is my habit to browse different programming websites in my free time,bookmark it and share with other people so that they can also learn. Here I am sharing working examples for all the design pattern in c# with complete source code.



You can download all the source code from here



7:56 AM - By azeheruddin khan 0

Saturday, November 12, 2016

How to activate WhatsApp video calling feature on Android phone

Watch the video to activate video feature in your whatsApp application on android phone.





10:14 AM - By azeheruddin khan 0

Thursday, November 10, 2016

WrapPanel and ListBox in WPF application using C#

Explanation: - WrapPanel is a control which is used to wrap a group of elements horizontally. ListBox is used to wrap a group of elements serially in the form of a list. A TextBlock is used to write some content. All these controls are classes of System.Windows.Controls namespace.

Program to show WrapPanel and ListBox

MainWindow.xaml

<Window x:Class="Wrappanel.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <WrapPanel>
            <Image Source="c:\AJAY DESAI JPAL PHOTO.jpg"></Image>
            <ListBox>
            <TextBlock FontFamily="Times New Roman" FontSize="18">NAME: AJAY DESAI</TextBlock>
             <Line></Line>
            <TextBlock FontSize="16" FontFamily="Times New Roman">QUALIFICATION: M.Tech</TextBlock>
            <Line></Line>
            <TextBlock FontSize="16" FontFamily="Times New Roman">DESIGNATION: ASSISTANT PROFESSOR</TextBlock>
            <Line></Line>
             <TextBlock FontSize="16" FontFamily="Times New Roman">EMPLOYED IN SNIST</TextBlock>    
            </ListBox>
        </WrapPanel>
    </Grid>
</Window>



OutPut:




7:52 AM - By azeheruddin khan 0

Content control in WPF application using C#

Explanation: - Content control is a content model used for providing within a control like button. For ex: - providing some text and an image in a button as shown in the above given program. StackPanel is a control used for arranging a group of elements in the form of a stack; it also belongs to System.Windows.Controls namespace. <Button.Content> </ Button.Content> is the tag used for specifying content for a button. Image control is used to specify an image.

Program to show Content Control

MainWindow.xaml

<Window x:Class="ContentControl.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <Button Margin="135,110,199,28" Name="mybutton" Click="mybutton_Click">
            <Button.Content>
                <StackPanel Width="166" Height="116">
                    <Image Source="c:\AJAY DESAI JPAL PHOTO.jpg" Width="139" Height="114"></Image>
                </StackPanel>
            </Button.Content>
        </Button>
        <TextBlock FontFamily="Baskerville Old Face" FontSize="18" FontStyle="Italic" Margin="178,258,240,32">INFOSYS</TextBlock>
    </Grid>
</Window>

MainWindow.xaml.cs (code behind MainWindow.xaml)

using System.Windows;

namespace ContentControl
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        private void mybutton_Click(object sender, RoutedEventArgs e)
        {
            MessageBox.Show("Hi Ajay, Welcome to INFOSYS");
        }
    }
}





7:51 AM - By azeheruddin khan 0

adsense

© 2014 Fresher2Programmer. WP Theme-junkie converted by Bloggertheme9
Powered by Blogger.
back to top