Script(s)

what I learn is what u c

Archive for the ‘Visual Studio’ Category

Disable .pdb file generation in Release Mode

with 3 comments

Visual Studio 2005 – Compile Options

In Visual Studio 2005, .pdb file gets generated in Debug mode and Release mode.

In debug mode it loads the entire symbol table, in Release mode it loads the key symbols.

In Release mode, the generated .pdb can be deleted very well deleted. (Because framework does not uses it)

To disable .pdb generation in Release mode, goto

Project Properties > Compile Tab > Advanced Compile Options

Compile Options

Goto Generate Debug Info (dropdown list) and select None.

No PDB

Advertisements

Written by gchandra

February 22, 2008 at 9:15 pm

Validation (XHTML 1.0 Transitional): A newer construct is recommended.

with one comment

Validation (XHTML 1.0 Transitional): Attribute ‘name’ is considered outdated. A newer construct is recommended.  

Deprecated Elements & Attributes and Newer Constructs

XHTML 1.0 Transitional

Elements

Newer Constructs

<menu /> Use another list type.
<u /> Use CSS property “text-decoration” and set its value to “underline”.
<s /> Use CSS property “text-decoration” and set its value to “line-through”.
<strike /> Use CSS property “text-decoration” and set its value to “line-through”.
<basefont /> Use CSS styling and set the “font-family” property to desired font.
<font /> Use CSS styling to set the property of the element, such as a DIV or SPAN.The CSS properties include:

  • color
  • font-family
  • font-size
  • text-decoration
  • text-align
  • text-indent
  • text-transform
  • font-weight
<applet /> Use the <object /> tag
<isindex />  Use the <input /> tag
<i /> Use the <em /> tag
<b /> Use the <strong /> tag

Elements / Attributes

Newer Constructs

Iframe
name Use the ID attribute
align Use the CSS property “text-align”
body
background Use the CSS property “background-image” or “background”.
bgcolor Use the CSS property “background-color” or “background”.
text Use the CSS property “color” for the “body” style
link Use the CSS section “a:link” and set the property “color”.
vlink Use the CSS section “a:visited” and set the property “color”.
alink “a:hover” and set the property “color”.
div / p / h1…h6
align Use the CSS property “text-align”.
ul / ol / li
type   Use the CSS property “list-style-type” or “list-style”.
compact       This attribute has been removed from the HTML DOM 1.0
hr
align   Use the CSS property “text-align”.
noshade       Use the CSS property “color”.
size    Use the CSS property “height”.
width  Use the CSS property “width”.
pre
width  Use the CSS property “width”.
name Use the attribute “id”.
br
clear  Use the CSS property “clear”.
object
align Use the CSS property “vertical-align” and “text-align” in the parent tag
border Use the CSS property “border”.
hspace Use the CSS property “padding”.
vspace Use the CSS property “padding”.
img
name Use the attribute “id”.
align Use the CSS property “vertical-align” and “text-align” in the parent tag
border Use the CSS property “border”.
hspace Use the CSS property “padding”.
vspace Use the CSS property “padding”.
map
name Use the attribute “id”.
input
align Use the CSS property “vertical-align” and “text-align”
legend
name Use the attribute “id”.
table
align Set table’s CSS properties left-margin and right-margin at “auto” for centering, or right-margin to 0 for right alignment, or the left-margin to 0 for left alignment.
bgcolor Use the CSS property “background-color”.
tr
bgcolor        Use the CSS property “background-color”.
td, th
nowrap Use the CSS property “word-wrap”.
bgcolor Use the CSS property “background-color”.
width  Use the CSS property “width”.
height Use the CSS property “height”.

PDF copy of the same is attached for download.

Written by gchandra

October 15, 2007 at 12:56 pm

Posted in Visual Studio

How to change news channel of your choice in Visual Studio .Net Start Page

with one comment

Close Visual Studio if its open.

If you are an Advanced User who has priviledges to edit Registry here you go.

Start > Run > RegEdit

(Backup registry before making changes)

GOTO

HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\<version>\StartPage

On the Right Panel right click on  NewsChannel and select modify

Replace this (http://msdn.microsoft.com/sql/rss.xml) RSS feed with any valid RSS feed of your choice.

Close Registry.

Happy Programming  🙂

Written by gchandra

September 19, 2007 at 9:06 am

Posted in Visual Studio

How to Clear Recent Project list or File list from Visual Studio .Net Start Page

with one comment

If you are an Advanced User who has priviledges to edit Registry here you go.

Method 1:

          Close Visual Studio (if its open)

Start > Run > RegEdit

(Backup registry before making changes)

GOTO

HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\<version>\ProjectMRUList

remove unnecessary items from list.

If needed reorder your list.  File1, File2 etc. Otherwise Visual Studio might not read them properly.

Similarly repeat the steps for FileMRuList

Method 2:

If you can’t edit registry or not feeling comfortable here is an alternate method.

http://www.codeproject.com/csharp/VSRecentcleaner.asp

Happy Programming 🙂 

Written by gchandra

September 19, 2007 at 8:58 am

Posted in Visual Studio

Stop the Search (Visual Studio 2003)

leave a comment »

Search on all folders

When using Visual Studio, there are times you need to search entire project or solution.

The short cut for this search is CTRL + Shift + F
Stop the Search

If you are lucky enough, the page you are looking for will appear first. If you want to STOP rest of the search
press CTRL + Shift + F again.

It will show the STOP button instead of SEARCH button.

Click STOP.

Written by gchandra

March 29, 2007 at 5:01 pm