Skip to main content

Posts

Showing posts from January, 2007

Custom Gradient Button with hover Effect C#.NET

Any one create a gradient button with this example. Which have hover effect
class CustomButton:Button
{
#region Fields
private Color _StartColor;
private Color _EndColor;
private Color _StartHoverColor;
private Color _EndHoverColor;
private bool bMouseHover;
private Brush _paintBrush;
private PointF _centerPoint;
StringFormat _sf = new StringFormat();
#endregion
#region Properties
public Color StartColor
{
get
{
return _StartColor;
}
set
{
if (value == Color.Empty)
{
_StartColor = Color.FromArgb(251,250,249);
}
else
{
_StartColor = value;
}
}
}
public Color StartHoverColor
{
get
{
return _StartHoverColor;
}
set
{
if (value == Color.Empty)
{
_StartHoverColor =Color.White;
}
else
{
_StartHoverColor = value;
}
}
}
public Color EndHoverColor
{
get
{
return _EndHoverColor;
}
set
{
if (value == Color.Empty )
{
_EndHoverColor = Color.FromArgb(255,255,207) ;
}
else
{
_EndHoverColor = value;
}
}
}
public Color EndColor
{
get
{
return _EndColor;
}
set
{
if (value == Color.Empty)
{
_EndColor = Color.FromArgb(224,220,207);
}
else
{
_EndColor = value;
}
}
}
#endregion
#region Constr…

ASP.NET Search Engine Optimization Keywords

Here are the some keyword for asp.net which can be used for search engine optimization for your site.

ASP Web technology,
Microsoft asp,
asp.net,
vbscript,
.net,
array,
asp.net validation code,
asp.net request.servervariables,
server.mappath,
asp.net xmlhttp,
sql injection,
asp.net datagrid paging,
microsoft.xmlhttp,
sql case,
stored procedure,
asp/asp.net date functions,
asp.net interview questions,
microsoft interview questions,
vbscript date,
.aspx,
.ascx,
web development asp.net,
asp.net cart,
asp.net tutorial,
asp.net hosting,
asp.net Web Services,
Visual Studio .NET,
asp.net Whidbey,
Browse ASP.NET tutorials,
asp.net code snippets,
asp.net syndicated articles,
asp.net blogs, and forums postings,
ASP.NET books,
Latest Blog Postings - ASP.NET,
ASP.NET Weblog Recommendation,
asp.net Online Journals,
RSS Syndication Feed

Have a nice time

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);
}
}
}
}

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/

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 …

.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.

New AJAX Framework for the ASP.NET 1.1

ASPI have been constantly searching for the Ajaxdevelopment 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 integrationJust a few lines in web.config are enough to have MagicAjaxOnly one easy to use control (AjaxPanel) is required to be your page to enable the AJAX functionality UsabilityYou put the part of your page that you want to have AJAX =
functionality inside an Ajax Panel and that's it; the Magic Aja…

Internet Explorer 7

One the most awaiting browser Microsoft Internet explorer 7.0 is launched Recently for both MicrosoftXP 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