How To Make a Website Responsive

mobile of UP
Being a blogger or a webmaster everyone want's to make their website compatible with any device. Not everyone know this small one line code that makes your website fit with mobile/tablet etc devices size.

All you need to do is just add this one line code under your head.

<meta content='width=device-width, initial-scale=1, maximum-scale=1' name='viewport'/>

head
After adding it, save your template and let's check if it works, go to http://www.studiopress.com/responsive/ and enter your website URL & hit enter, within seconds you would be able to see how your website looks like and if it fits for other devices.

Theres another way to check it, just resize your webbrowser
resize,sizse
As you can see it works, Thanks for reading I hope this helps you.

How To Make A Round Button In C#

round button for c#
Someone has asked me how to make a round button in c#, if I am right it's really easy to make round button with, I didn't have time to do something really advanced, I made something really simple. All you have to do is just create a new class and add all these codes into your class.
using System;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Windows.Forms;

class Round : Button
{
    protected override void OnCreateControl()
    {
        using (var path = new GraphicsPath())
        {
            path.AddEllipse(new Rectangle(2, 2, this.Width - 5, this.Height - 5));
            this.Region = new Region(path);
        }
        base.OnCreateControl();
    }
}
Just build the project or debug and look for a new tool in your toolbox
toolbox new tool rectangle button
You can add it to your form and use it, by the way I recommend you to use this button  http://dotnetrix.co.uk/button.htm also please change the width and other sizes for your needs. 

The Most Awesome Indian Public Marriage Proposal Ever

I know, this is not something about programming or programmers, but I just want to share it with you. I saw this video on facebook someone has shared it via youtube so I was watching it, it was really great, by the way I am not from india but I love india, watch and enjoy..

I hope you really liked the video.

How To Make A Simple Login System In C#

login form
Everyone knows what a login system is ! so i don't think any explanations are needed . i will come to the main thing , Today we are going to make a simple login system in c# .

You need two text boxes,two labels and two buttons.

Now make the controls look like this on form.form login
Now let's go for login button codes
   //if textbox1 text is admin and textbox2 text is 1234567
            if ((textBox1.Text == "admin") && (textBox2.Text == "1234567"))
            {
                //then show form2
                Form2 nextform = new Form2();
                nextform.ShowDialog();
            }
            else
            {
                //if username and password is incorrect show this message box
                MessageBox.Show("Username or Password Invalid");
            }
This is the code for button 2 which is a exit button
            Application.Exit();
Alright we are done ! I hope this is helpful !

How To Hide Internet Explorer Script Errors In VB.NET & C#

internet explorer
I think most of the people hate web browser control script errors in vb.net and c# . if you don't know what i mean , look at the picture below i hope you know it.
Internet error script
Okay i will straightly come to the main point ! you just need to add this line of code in form_load 
   Me.WebBrowser1.ScriptErrorsSuppressed = True
'change WebBrowser1 to your webbrowser name' , here is the code for c#
            this.webBrowser1.ScriptErrorsSuppressed = true;
that's a snippet , thanks.

How To Add A Skype Call,Chat Widget To Your Website Or Blog

skype logo impressive
Skype is one of the best VOIP service used worldwide ; Today we will see how to create a Skype Call,Chat Widget for your website(blogger,wordpress,etc) .


2 - Enter your skype ID
name









3 - Choose what you would like your widget to do
types












4 - Choose a theme for your widget(button) and size
theme








You can always see a preview of your widget from your right side
preview of widget


















5 - Get your widget code
codes

















Now put the code in your template where you want to display it.

How To Add A Top Bar To Blogger

logo
We are going to use a service a popular one it's called AddThis . AddThis provide many services such as sharing widgets and recommended posts widget etc and we are going to use Welcome Bar . Go to addthis.com and create a new account or if you already have an account log on to your account.

Now go to https://www.addthis.com/get/welcome#.UemQQ9JgdeY and create your Welcome Bar . Design the bar as well
Design Welcome Bar AddThis
Finally get the code right after that designing place , this is my code(don't use this code)




Place that javascript below head or between body tags then as you have settled your Welcome Bar , it will appear. Thanks For Reading .

Syntax Highlighter For Blogger

Syntax
I have been using Alex Gorbatchev Syntax Highlighter for a long while now . someone requested me to write an article about using this syntax highlighter in blogger so here i go .

Select a theme for the syntax highlighter , those links have previews of the theme.
Now add these codes under your head in your html .



After adding those codes now it's time to set your theme to the syntax highlighter , in the third line of code that i gave before . this parameter is what i meant

code
now after styles/ add the theme style , you can see the theme style right after the theme preview link . for example i have selected shThemeRDark.css then my parameter would look like this

line


Now you have successfully added the syntax highlighter now save your template and now we will test the syntax highlighter . you cannot just add the code and let it define the language , you should define the language in the tag . you can see what language we can highlight from here  . coming to the point i will show you how to syntax highlight a java hello world program .

go to the HTML tab in your post and find where you want the syntax highlighter to be and here we go
replace ____ with your language name and replace codes with your codes and that's how it works . here is a sample of the syntax highlighter.
public class HelloWorld {

    public static void main(String[] args) {
        System.out.println("Hello World");
    }

}
Thanks For Reading , Have A Great day .

How To : Change Drive Name Or Label In C#

driv
Changing Drive things are pretty easy with kernel32 so what we are going to do is just change the name or label , okay okay i know it's called label and not name most of the times :D . first of all let's design the Form .

Add two text boxes and two labels and a button and make your look like this(if you believe in my UI design)
ui des
Now coming to the coding , hmm we need to add kernel32 to the project so add the namespace using System.Runtime.InteropServices;  , Now import the kernel32.dll to your project by adding these codes under or on top of 
public Form1()
        {
            InitializeComponent();
        }
The codes(kernel32)
        [DllImport("kernel32")]
        static extern long SetVolumeLabelA(string lpRootName, string lpVolumeName);
After that go to your button(rename) click codes and add these
            long lab;
            lab = SetVolumeLabelA(textBox1.Text, textBox2.Text);
Now test your project , if it didn't work for you please let me know by commenting on this post or else contact me via the contact page I hope explanations are not needed for this simple codes , Thank you.