Friday, January 12, 2007

gradient background control

C#.Every time you need gradient background for a particular control to make your windows application look more visual and appelaing. I have written a code that might help you.
Thorugh this you can created gradient button,toolstrip and menustrip or any control that have background .

Following are code in C#.NET 2.0. Here the example is for menustrip but you can use it for any
control.


class GreenMenuStrip: MenuStrip
{
protected override void OnPaintBackground(PaintEventArgs e)
{
base.OnPaintBackground(e);
Graphics g = e.Graphics;
Rectangle bounds = new Rectangle(Point.Empty, this.Size);

if (bounds.Width > 0 && bounds.Height > 0)
{

using (Brush b = new LinearGradientBrush(bounds,Color.FromArgb
(183,214,183) , Color.FromArgb(221,235,221),
inearGradientMode.BackwardDiagonal))
{
g.FillRectangle(b, bounds);
}
}
}
}
Share:
Thursday, January 11, 2007

www.windowsforms.net- The Ultimate resource for windows forms

,I have found the most ultimate resource from Microsoft. The site called windows forms
which have all the information that a windows forms developer and smart client application
developer require.

it has following section

1) Get Started- where basic information is there for new windows forms developer.

2) Learn- Which has some great articles.

3) FAQ- This section contains all the questions that a windows application developer go through
with all the answers.

4) Downloads-This section provide great applications to download.

5) Resources- This section provide the links to resources that a developer might require.

6) Forums- A great forums for windows application developer.

For more details go to the following link:

http://www.windowsforms.net/
Share:

Windows Vista- New Micorsoft Operating System- Vista Feautres

Recently the Micros ft Official launches the It's new generation Operating System called,windows vista. It is one of most advance step of Microsoft towards the new generation operating system.

It has some great features.. Following are the some features of the windows vista.

1) User Interface

It has great and stunning user interfaces. It is eye candy and very easy to operate it.It provides the great visual experience to the user.

2) Security


It is Microsoft's most secure operating system till date.The OS that could match up security level of MAC and Linux.

3) Better Filer Organization and Search
The user can search and manages files much better then the older version of Microsoft operating system.New feature like instant search can perform search anywhere.

4) Internet Explorer 7
Windows vista is now coming with Internet explorer 7.0. It has very great features. You can check my previous post regarding Internet explorer 7.0.

5) Windows Sidebar and Gadgets


Windows Sidebar boosts your personal productivity by providing instant access to gadgets—a wide variety of engaging, easy-to-use, and customizable mini-applications that offer information at a glance and provide easy access to frequently used tools.
6) Performance
It will increase the performance of computer with features like Sleep, Windows Super Fetch, Windows ReadyBoost, and Windows ReadyDrive.
7) Backup
Windows Vista provides valuable new innovations to help ensure you never lose information that is important to you. Windows Vista offers multiple layers of backup and restore protection from hardware failure, user error, or other issues.
8) Networking
windows vista has some great features for networking to manage your network and boost your network performance.Windows vista has some other great features like speech recognition, help and feedback etc.
for more details please visit following link...
Share:
Wednesday, January 10, 2007

.NET Framework Release

The .NET Framework 3.0 has been launched with windows vista and 64 bit support. You can download the .NET Framework 3.0 components here:
.NET Framework 3.0 Runtime Components
Windows SDK for Vista and the .NET Framework 3.0
Visual Studio 2005 Extensions for .NET Framework 3.0 (Windows Workflow Foundation)
Visual Studio 2005 Extensions for .NET Framework 3.0 (WCF & WPF), November 2006 CTP

Note, if you are using Windows Vista the .NET Framework 3.0 Framework is directly installed when you install the operating system.
Share:
Tuesday, January 9, 2007

New AJAX Framework for the ASP.NET 1.1

ASPI have been constantly searching for the Ajax development for ASP.NET 1.1 technology. I want the ajax framework should be as simple as Ajax framework provided by Microsoft for ASP.NET 1.1.

After Searching So Far i have found a framework called Magicajax.net.

MagicAjax.NET is a free open-source framework, designed to make it easier and more intuitive for developers to integrate AJAX technology into their web pages, without replacing the ASP.NET controls and/or writing tons of javascript code. MagicAjax initially appeared as a codeproject article. Now it is hosted on Sourceforge and you can find the latest release at the downloads section.

It has some great features like following..


Easy integration

  • Just a few lines in web.config are enough to have MagicAjax
  • Only one easy to use control (AjaxPanel) is required to be your page to enable the AJAX functionality

Usability

  • You put the part of your page that you want to have AJAX =
    functionality inside an Ajax Panel and that's it; the Magic Ajax framework takes care all of the intrinsic details for you
  • The Ajax Panel works like the ASP.NET Panel and can display its contents on the Visual Studio Designer, allowing you to add controls to it visually
  • No javascript code is needed to be written

Programming

  • For most cases you can add AJAX functionality to your existing pages by only adding Ajax Panels and without even a single change in the source code
  • Magic Ajax replaces Post Backs with AJAX callbacks (Ajax Calls) that do not cause a refresh .on the client's browser
  • The Post Back and AJAX functionality can co-exist in the same page
    only the controls that are inside an Ajax Panel will perform an Ajax Call
    instead of Post Back
  • The page's View State is shared amongst Post Backs and Ajax call on changes to it by an Ajax Call will be available to a Post Back and vice
    verse
  • You handle an Ajax Call just like a Post Back, using the ASP.NET
    server-side programming model
  • Magic Ajax intuitively spots the changes that occur ed during an Ajax Call and sends the minimum possible required javascript that will reflect the changes on the client's browser
  • There are plenty of helper methods to help you with handling an
    Ajax Call. by code (i.e. if you want to send additional custom javascript to the client)

User experience

  • The user of your page enjoys a faster and richer browser UI, without the annoying Post Backs
  • A 'Loading' label notifies the user that an Ajax Call has been invoked
  • Instead of downloading the whole page for a Post back, the client only
    downloads chunks of javascript code that apply the changes made to the
    page's html
  • Magic Ajax's changes to the page are kept in the browser's cache, so if the
    user navigates to another page and then presses the browser's 'Back'
    button,he will see the same page that he was viewing before

Customization

  • Many configuration options give you total control of the inner workings of Magic Ajax
  • A small set of attributes applied to your ASP.NET controls can customize the way that they will be handled by Magic Ajax
  • You can define that an Ajax Call will be invoked asynchronously or synchronously for all controls of an Ajax Panel or for a single control You can define that certain controls of an Ajax Panel will invoke a plain Post Back
  • If the 'tracing' configuration option is enabled, a pop up window is created that displays information about the data that were sent to and from the server, allowing you to monitor the traffic of Ajax Calls that the page invokes
  • Clean object-oriented design makes it easy to extend the framework and add your own controls

Compatibility

  • Internet Explorer, FireFox, Netscape and Opera browsers are supported
  • If a browser is not supported or the user has disabled javascript,the
    page will revert to plain Post Backs automatically

Share:

Internet Explorer 7

One the most awaiting browser Microsoft Internet explorer 7.0 is launched Recently for both Microsoft XP and Windows Server 2003 Operating Systems.

Internet Explorer 7.0 have great features like....

1) Tab base browsing.
2) Favorites are organized better.
3) In buit Search functionality for various search engine like Google,yahoo,live,wikipedia etc.
4) Quick tabs- A feature that display all tabs in the one window
5) Zoom- A web page can be viewed as 400% then it's original side.
6) Better Security.
7) Automatically detection RSS Feeds.

For more details:

www.microsoft.com/windows/ie/ie7/about/features/default.mspx
Share:
Tuesday, December 26, 2006

Search Engine Keywords for finding Offshore Developement Companies in India.

Following are some Search Engine Keyword through which you can find best Indian Offshore and Outsourcing companies.

Offshore Software Development Company India,
Outsourcing Software Development,
Offshore Application Development India,
Outsourcing Application Development India,
Application Software Development Outsourcing,
Software Development Outsourcing Company India,
Offshore Outsourcing Software Development Company India,
software development company,
software application development India,
outsourcing application development,
offshore development center,
software development outsourcing,
game development,
software product development,
software testing services,
application testing services,
IT outsourcing company,
open source php application development,
java application development,
.NET application development,
oracle application development,
database migration,
database conversion,
outsource, outsourced,
outsourcing software development,
offshore it outsourcing,
.net development,
.net development India,
Microsoft .NET Technology India,
India .NET Development

So Search with this keywords and you can find India's best software companies
Share:
Monday, December 4, 2006

Online RSS Reader.-PageFlakes

I have gone thoguh the page flakes it is a very good site which provide rss and feeds reading with the help of ajax.

The site has cool user interface and very easy navigation system. You can do lots of things on this site. You search the things using gooogle,ask,msn or yahoo. You have todo list. You have page layout editor which will create page layout very easily.

It also using webparts which is a great feature of Microsoft.NET 2.0 framework.

http://www.pageflakes.com/
Share:
Thursday, November 30, 2006

Redirecting to new window in ASP 3.0

Hi,

Any one can very easily redirect the page in new windows with the help of java script.
Following are syntax for redirecting to a new page.


<%if request("submit")<>"" then
%>

<script language="javascript">

window.open('http://localhost/content/login.asp?mstMsg=logged"%>','login');

</script>



<%
end if %>
Share:
Tuesday, October 17, 2006

Thanks for visiting my blog

Hello Visitors,

Thanks For visiting my blogs. I got 250 visitors in just one month. Thanks for giving time to my blogs. I promise you that i will keep posting new technology blogs. I will post all the new things related to ASP.NET 2.0,C#.NET,VB.NET related things.

I want your suggestions so please put your comments and do visit my guestbooks.

Regards,

Jalpesh
Share:
Saturday, September 30, 2006

Page Counter in ASP 3.0

Lots of guys had done programming for page counter for a site.

I found a interesting example on IIS 5.1 documentation. It is

very easy and very cool. You can developer your page counter

with 2 or 3 line of code in asp 3.0.

Following are the code:


<%

Set MyPageCounter = Server.CreateObject("MSWC.PageCounter")

HitMe = MyPageCounter.Hits

Response.Write("Total Count:" & HitMe)

%>


Thats it your counter is ready.


Happy Programming...

Share:
Saturday, August 26, 2006

code for date picker combobox control in asp.net:

ASP.NET provides calendar control to select date
but some time it not feasible due to the size of
it. It takes more spaces. So we are required
to create a new web control which is used less
space and also provides date selection mechanism
here are the code for that control in C#

HTML CODE:
================================================
<asp:dropdownlist id="cmbDay" AutoPostBack="True"

runat="server"></asp:dropdownlist>



<asp:dropdownlist id="cmbMonth" AutoPostBack="True"

runat="server"></asp:dropdownlist>



<asp:dropdownlist id="cmbYear" AutoPostBack="True"

runat="server"></asp:dropdownlist>
Server Side Code in C#:
====================================================
namespace Jalpesh.Control
{
using System;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using Microsoft.VisualBasic;

public class DatePicker : System.Web.UI.UserControl
{
public System.Web.UI.WebControls.DropDownList cmbDay;
public System.Web.UI.WebControls.DropDownList cmbMonth;
public System.Web.UI.WebControls.DropDownList cmbYear;
private static string _SelectedDate;
public string _SetDate;
public static string SelectedDate
{
get
{
return _SelectedDate;
}
set
{
_SelectedDate=value;

}
}
public string SetDate
{
get
{
return _SetDate;
}
set
{
cmbYear.Items.FindByValue(cmbYear.SelectedValue).Selected=false;
cmbYear.Items.FindByValue(System.Convert.ToDateTime(value).
Year.ToString()).Selected=true;
cmbMonth.Items.FindByValue(cmbMonth.SelectedValue).Selected=false;
cmbMonth.Items.FindByValue(System.Convert.ToDateTime(value).
Month.ToString() ).Selected=true;
cmbDay.Items.FindByValue(cmbDay.SelectedValue).Selected=false;
cmbDay.Items.FindByValue(System.Convert.ToDateTime(value).Day.
ToString() ).Selected=true;
SelectedDate= cmbMonth.SelectedValue.ToString() + "/" +
cmbDay.SelectedValue.ToString() + "/" +
cmbYear.SelectedValue.ToString();

}
}

private void Page_Load(object sender, System.EventArgs e)
{
if (!Page.IsPostBack)
{
FillYear();
FillMonth();
FillDay(int.Parse(cmbMonth.SelectedValue),
int.Parse(cmbYear.SelectedValue));
SelectedDate= cmbMonth.SelectedValue.ToString() + "/"
+cmbDay.SelectedValue.ToString() + "/" + cmbYear.SelectedValue.ToString();
}
}
public void FillDay(int Month,int Year)
{
cmbDay.Items.Clear();
int a;
a=Year%4;
int count;
count=0;
switch(Month)
{
case 1:
case 3:
case 5:
case 7:
case 8:
case 10:
case 12:
count=31;
break;
case 4:
case 6:
case 9:
case 11:
count=30;
break;
case 2:
if(a==0)
{
count=29;
}
else
{
count=28;
}
break;
}

for (int i=1;i<=count;i++) { ListItem lstItem=new ListItem(i.ToString(),i.ToString()); if (i==(int.Parse(System.DateTime.Today.Day.ToString() ))) { lstItem.Selected=true; } cmbDay.Items.Add(lstItem); } } public void FillYear() { int i; cmbYear.Items.Clear(); for (i=1900;i<=3000;i++) { ListItem lstItem=new ListItem(i.ToString(),i.ToString()); if (i==(int.Parse(System.DateTime.Today.Year.ToString() ))) { lstItem.Selected=true; } cmbYear.Items.Add(lstItem); lstItem=null; } } public void FillMonth() { int i; cmbMonth.Items.Clear(); for(i=1;i<=12;i++) { ListItem lstItem=new ListItem(GetMonthName(i,false),i.ToString()); if (i==(int.Parse(System.DateTime.Today.Month.ToString() ))) { lstItem.Selected=true; } cmbMonth.Items.Add(lstItem); lstItem=null; } } static string GetMonthName(int monthNum, bool abbreviate) { if(monthNum <> 12)
throw new ArgumentOutOfRangeException("monthNum");
DateTime date = new DateTime(1,monthNum,1);
if(abbreviate)
return date.ToString("MMM");
else
return date.ToString("MMMM");
}



#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
//
InitializeComponent();
base.OnInit(e);
}


private void InitializeComponent()
{
cmbDay.SelectedIndexChanged += new System.EventHandler(this.cmbDay_SelectedIndexChanged);
cmbMonth.SelectedIndexChanged += new System.EventHandler(this.cmbMonth_SelectedIndexChanged);
cmbYear.SelectedIndexChanged += new System.EventHandler(this.cmbYear_SelectedIndexChanged);
this.Load += new System.EventHandler(this.Page_Load);

}
#endregion

private void cmbYear_SelectedIndexChanged(object sender, System.EventArgs e)
{
FillDay(int.Parse(cmbMonth.SelectedValue),int.Parse(cmbYear.SelectedValue));
SelectedDate= cmbMonth.SelectedValue.ToString() + "/" +cmbDay.SelectedValue.ToString() + "/" + cmbYear.SelectedValue.ToString();
}

private void cmbMonth_SelectedIndexChanged(object sender, System.EventArgs e)
{
FillDay(int.Parse(cmbMonth.SelectedValue),int.Parse(cmbYear.SelectedValue));
SelectedDate= cmbMonth.SelectedValue.ToString() + "/" +cmbDay.SelectedValue.ToString() + "/" + cmbYear.SelectedValue.ToString();
}

private void cmbDay_SelectedIndexChanged(object sender, System.EventArgs e)
{
SelectedDate= cmbMonth.SelectedValue.ToString() + "/" +cmbDay.SelectedValue.ToString() + "/" + cmbYear.SelectedValue.ToString();
}

}
}
Share:
Thursday, August 24, 2006

Thank You For Visiting My Blog

Thank You Very Much for visiting my blog,

There are 155 visitors in last month who visit my blog. It is such
a over whelming experience that you work is recognized in such big way.

I want your valuable comments on my post to make it better. So please put
your comments for the post directly.

You can also put your valuable comments in my guest book:

here are the links:


Post Your Comments
Share:

Support this blog-Buy me a coffee

Buy me a coffeeBuy me a coffee
Search This Blog
Subscribe to my blog

  

My Mvp Profile
Follow us on facebook
Blog Archive
Total Pageviews