Advertisements

Thursday, October 31, 2013

// // Leave a Comment

Got Google+ Custom URL

Hi,

Today morning, I was checking my mailbox. There was a mail in Junk Folder which is from Google+ Team.

I checked the sender of mail and it was really from Google+ team. Then what, I moved mail to Inbox and clicked the Get URL button. The mail preview is attached.

Now my profile is at https://plus.google.com/+JohnBhatt


Thank you very much to Google Plus Custom URL team for such a wonderful Diwali Gift. 

By the way, you can also apply for Custom URL for your Google+ profile and if passed, may get one.

Keep visiting, You can write your Feedback to me or drop a comment here. 



Read More

Monday, October 28, 2013

// // Leave a Comment

Change Login Screen Background in Windows 7

Hi,

Most of you are working with your computer and must have Windows 7 as main operating system. Windows 7 is the most stable and complete Operating system from Microsoft after Windows XP. There are many themes and background images available for Windows 7 in Microsoft personalization page.

As you have seen many Users using Windows 8 and their custom Lock Screen backgrounds. Means when they start windows they have a nice and custom background to Windows Login screen. However, Login Screen is same for all but the Background Image can be changed as per users choice.

But we have Windows 7 and I think this to do with Windows 7 also. In this post, we are going to change the background image of Login Screen of Windows 7 from default to any of your desired one. You can simply edit the same wallpaper and write some text there.

Lets start. Here we have two methods to do. One is simple and done with graphical method. Less chances of Damage to your OS. I will discuss the Manual method to change the Registry in another post sometime later.

Be-ware, you are doing this entirely on your own risk. In case anything wrong value changed or in case of misshapen, you will face entire loss and there will not be any fault of mine. I am providing tested and checked procedure and codes with screenshots.

Here is your normal Lock Screen (Login Screen in windows 7).

Download this Registry File: Custom background in Windows 7

Now extract the Zip file and open Registry file. You will see the screen like below.


Click Yes on User Account Control prompt. Next prompt will be like this.


Click Yes. This will modify value of a key in Registry of your Windows. You will see confirmation like below screen.


Now we can start working on our task. Lets get back to Windows Explorer and navigate to this address.


  • %windir%\system32\oobe
  • Create a New folder and rename to info.
  • Open info (newly created folder), Create a New Folder and rename to backgrounds.
  • Now paste/move your favourite image to newly created folder backgrounds.
  • Rename the wallpaper file to backgroundDefault.jpg.
Folder structure and names as same in above or in Screenshot.


Remember, Background image must be in JPEG format. Other formats will not work. 
Now have a look at your newly changed Background of Login Screen.

Lock your screen or Reboot your computer to see the changes. You might not see the background if you have single user account in Operating system without password and fast hardware resources. Press Windows+L key to go to Lock screen and see the changes. Below is mine.

Enjoy. 

Don't forget to subscribe to our posts and write comments. Bitter, funny or sweet, we will love them all.
+John Bhatt 
Read More
// // Leave a Comment

GridView with Scrollbars

Hi,

Today I am here to share something to you. This is simpler as never but I bet, you are searching for this since long.

If you have developed any web application using ASP.NET, you must have used GridView, if you are beginner and learning ASP.NET, this will tell you how to make GridView scrollable. As we know, we can Paginate data in GridView, but putting a Scrollbar is really confusing as it is not in default properties of GridView control.

Lets design a web form and insert a GridView. I am using no designs and just a form and dragged and auto formatted GridView control in this tutorial.

Lets see the code for this web form.
 <div align="center">
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4" DataKeyNames="DistID" DataSourceID="SqlDataSource1" ForeColor="#333333" GridLines="None" Height="240px" Width="667px">
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            <Columns>
                <asp:BoundField DataField="DistID" HeaderText="DistID" InsertVisible="False" ReadOnly="True" SortExpression="DistID" />
                <asp:BoundField DataField="StateID" HeaderText="StateID" SortExpression="StateID" />
                <asp:BoundField DataField="DistName" HeaderText="DistName" SortExpression="DistName" />
                <asp:BoundField DataField="DistDesc" HeaderText="DistDesc" SortExpression="DistDesc" />
            </Columns>
            <EditRowStyle BackColor="#999999" />
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#E9E7E2" />
            <SortedAscendingHeaderStyle BackColor="#506C8C" />
            <SortedDescendingCellStyle BackColor="#FFFDF8" />
            <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString1 %>" SelectCommand="SELECT * FROM [Districts]"></asp:SqlDataSource>
    </div>

I have bind data from one of my projects, this is schema of Address and table is District List. Lets run the Web form, our output is:

This is how it will list record and entire page will have GridView data. To fix this, I have added just a style tag to Div and some code inside that tag. Below is code.
..style="height:400px; overflow:auto"..
//You can change overflow:auto to overflow:scroll but that will show both Scrollbar and always. Above will show Vertical Scrollbar only when the Height of GridView exceeds than assigned height.

After adding above code, I refreshed the browser, Now this is the new and required layout of GridView.

You can download the source code from JohnBhatt.com for free.
Enjoy. Till then subscribe our feeds and get updated. You can also drop a comment below to suggest us improving. 
Read More