TechSangraha

…………………..Site for my technical reference

Flash: Fading In and Fading Out

Posted by urshiva on August 24, 2011

Make sure that you already have Created Motion Tween for the Symbol that you want to have fade in and fade out effect.

So, Select the key frame(along with symbol selected) where you want to start the fade in and go the properties window.

In properties window, under COLOR EFFECT catergory,  Set the Alpha from Style drop-down list and also set Alpha slider to 0% (zeor).  after setting Alpha slider to 0(zero), symbol will disappear.

Select the keyframe(along with symbol’s selected – as the symbol is not visible, you can select middle of the green transition) where you want to display full symbol,  and set the Alpha slider to 100%.

Color Effect Setting For FadeIn and FadeOut

Color Effect Setting

select the keyframe(last keyframe along with symbol selected) where you want the symbol to fadeout and set the Alpha slider to 0%

Posted in Adobe Flash | Leave a Comment »

Changing the Default Database in Sql using query

Posted by urshiva on October 28, 2010

USE [master]
GO
ALTER LOGIN [LoginUserName] WITH DEFAULT_DATABASE=[YourDbName]
GO

Posted in SQL Server 2005, Uncategorized | Leave a Comment »

Date Regular Expression MM/DD/YYYY

Posted by urshiva on September 13, 2010

var dateRegExp = “/^(1|01|2|02|3|03|4|04|5|05|6|06|7|07|8|08|9|09|10|11|12)\[/](([0-9])|([0-2][0-9])|([3][0-1]))\[/]\[0-9]{4}$/”

i devided reqular expression into some parts below to understand it easily.

“/^

(1|01|2|02|3|03|4|04|5|05|6|06|7|07|8|08|9|09|10|11|12)\

[/]

(([0-9])|([0-2][0-9])|([3][0-1]))\

[/]

\[0-9]{4}

$/”

I Hope, it Helps :)

Posted in RegExp | Leave a Comment »

asp:Menu in IE8

Posted by urshiva on September 7, 2010

In IE8, i was not be able to see the dynamic menu items when hovering over the menu created with <asp:menu>.

after googling, we found solution to this problem.

add the css class 

.adjustedZIndex {
    z-index: 1;
}

and refer to the above cssclass in  <DynamicMenuStyle> of <asp:Menu> like below.

<asp:Menu ID=”Menu1″ runat=”server”>
    <DynamicMenuStyle CssClass=”adjustedZIndex” />
</asp:Menu>

courtesy: http://weblogs.asp.net/mhildreth/archive/2009/01/26/testing.aspx

============

We can also have hotfix for this issue to view the web sites in compatabality view by installing the hotfix.

Check out this link for more information:  http://code.msdn.microsoft.com/KB962351

Posted in asp.net | Leave a Comment »

Preventing Users From Copying Text From and Pasting It Into TextBoxes

Posted by urshiva on June 11, 2010

We can do this by using jQuery.

Check out the following link:

http://www.4guysfromrolla.com/articles/060910-1.aspx#postadlink

Posted in jQuery | Leave a Comment »

Visual Studio Shortcuts

Posted by urshiva on June 3, 2010

Auto indent code : press Ctrl+K and then press Ctrl+F

Comment Code :  press Ctrl+K and then press Ctrl+C

Uncomment Code :  press Ctrl+K and then press Ctrl+U



Posted in Visual Studio | Leave a Comment »

VB.NET 9.0: Object and Array Initializers

Posted by urshiva on February 8, 2010

check out :

http://blogs.msdn.com/wriju/archive/2008/02/05/vb-net-9-0-object-and-array-initializers.aspx

Posted in vb.net | Leave a Comment »

FolderBrowserDialog

Posted by urshiva on February 3, 2010

FolderBrowserDialog allows to create, browse and select the folder from the file system.

the SelectedPath will be a string containing the path to the selected folder.

ShowNewFolderButton property to control if the user is able to create new folders with the New Folder button.

FolderBrowserDialog is a modal dialog box; therefore, when shown, it blocks the rest of the application until the user has chosen a folder.

Ex:

Dim _pathDestination As String = “”

Dim fbd As New FolderBrowserDialog
If fbd.ShowDialog() = DialogResult.OK Then

_pathDestination = fbd.SelectedPath

End If

courtesy:  http://msdn.microsoft.com/en-us/library/system.windows.forms.folderbrowserdialog.aspx

Posted in vb.net | Leave a Comment »

Visual Studio – Expand and Collapse Regions

Posted by urshiva on January 21, 2010

CTRL+M CTRL+M (that’s two key presses!) – collapse/open the current parent region

CTRL+M CTRL+L – Collapse/Open all regions in document recursively (meaning you might get only one line in the document – one big namespace region which is collapsed or you’ll see the entire page code uncollapsed

CTRL+M CTRL+O – Collapse all regions not recursively

Courtesy : http://www.charlesrcook.com/archive/2008/08/22/visual-studio–expand-all-regions-and-rockscroll.aspx

Posted in Visual Studio | Leave a Comment »

Insert Null value in Access db

Posted by urshiva on November 25, 2009

strSql = “INSERT INTO tbl (clmn1,clmn2) Values(1,null)”

 

Posted in General | 2 Comments »

 
Follow

Get every new post delivered to your Inbox.