yeasir007

Tuesday, December 24, 2013

How to set background image in Tizen native application

How to set background image in Tizen native application
Add a folder named "screen-density-xhigh" to the resource folder and store image to this folder that you want to set as application background. Now declare result type onDraw() function into the application header.Now implement the code bellow to the .cpp file of this form.
 result TizenForm::OnDraw()
  {

    result r = E_UNKNOWN;
    AppResource *pAppResource = Application::GetInstance()->GetAppResource();
    Bitmap* pBitmap1 = pAppResource->GetBitmapN(L"backgroundImage.jpg");
    Canvas* pCanvas = GetCanvasN();
    if (pCanvas != null)
    {
      pCanvas->DrawBitmap(Rectangle(0, 0,720,1280), *pBitmap1);
    }

    return r;

 }

Monday, November 04, 2013

Implement full row selection in C# asp.net GridView without select button

Implement full row selection in C# asp.net GridView without select button


Implement full row selection in C# asp.net GridView without select button:


This feature will be used to Select Full row of grid view instead of select button when user press on any point of this row.

protected void GridView1_RowCreated(object sender, System.Web.UI.WebControls.GridViewRowEventArgs e)
{
    if (e.Row.RowType == DataControlRowType.DataRow) {
        e.Row.Attributes["onmouseover"] = "this.style.cursor='pointer';this.style.textDecoration='underline';";
        e.Row.Attributes["onmouseout"] = "this.style.textDecoration='none';";
        e.Row.ToolTip = "Click to select row";
        e.Row.Attributes["onclick"] = this.Page.ClientScript.GetPostBackClientHyperlink(this.GridView1, "Select$" + e.Row.RowIndex);
    }
}

Monday, April 29, 2013

How to install google chrome on ubuntu

How to install google chrome on ubuntu
It's a common problem for Linux users who use it at first time. I have also faced this problem but actually it's so easy. Just follow this steps that's are given bellow:


Process 1 #

Step 1 : sudo apt-get install libnspr4-0d libnss3-1d libxss1 libcurl3 Step 2 : Download chrome from here Step 3: sudo dpkg -i './Downloads/google-chrome-stable_current_amd64.deb'

Process 2 #

Step 1 : sudo apt-get install libcurl3 libnspr4-0d libxss1 Step 2 : i. For 32 bit wget https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb ii. For 64 bit wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb Step 3 : sudo dpkg -i google-chrome* Step 4 : sudo rm google-chrome*