CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_studio_2005 Tags:
Item Type: NewsGroup Date Entered: 10/5/2007 3:44:33 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 22 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
korkless
Asp.Net User
add code with code snippets to a specific region10/5/2007 3:44:33 PM

0/0

i, somebody know how to make a code snippets that add code to a specific #region?

fo example i want that Encapsulate fields add the new property code into the region #properties

 

Benson Yu - MSF
Asp.Net User
Re: add code with code snippets to a specific region10/9/2007 8:57:12 AM

0/0

korkless:

i, somebody know how to make a code snippets that add code to a specific #region?

fo example i want that Encapsulate fields add the new property code into the region #properties

 

Hi korkless,

Do you mean how to add properties into a region section, so that we can expand and collapse this region in Visual Studio text editor? For this issue, please refer to the following code. If I have misunderstood your concern, please let me know.

        #region properties
        public int TestProperty1
        {
            get
            {
                return testproperty1;
            }
            set
            {
                testproperty1 = value;
            }
        }

        public double TestProperty2
        {
            get
            {
                return testproperty2;
            }
            set
            {
                testproperty2 = value;
            }
        }
        #endregion

 


Sincerely,
Benson Yu
Microsoft Online Community Support

Please remember to click ?Mark as Answer? on the post that helps you, and to click ?Unmark as Answer? if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
korkless
Asp.Net User
Re: add code with code snippets to a specific region10/9/2007 2:40:39 PM

0/0

.. i want to do so but with a code snippet...


For example in visual studio right click on a private fields, thant click on Encapsulate fields and visual studio add a property for you.

I want know if there's a way to add the new property code to my #region properties. 

 

Benson Yu - MSF
Asp.Net User
Re: add code with code snippets to a specific region10/10/2007 6:39:49 AM

0/0

Hi korkless,

Thanks for your explanation. Now I understand that when you right click the field and select ?Refactor | Encapsulate Field??, besides creating property, you want to move the new created property to a region section automatically. If I have any misunderstanding, please let me know.

As far as I know, Visual Studio 2005 doesn?t have this feature. We have to cut and paste the new created property into a region. However, if you want to create a region section for properties, just select them and right click mouse, then click ?Surround With? | #region?.

If you think this feature is helpful and hope to feedback this to our product group so that they can consider add this feature in future Visual Studio releases, you can submit it via our Connect site:
http://connect.microsoft.com/VisualStudio

 


Sincerely,
Benson Yu
Microsoft Online Community Support

Please remember to click ?Mark as Answer? on the post that helps you, and to click ?Unmark as Answer? if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Macromedia Dreamweaver MX 2004 Web Application Recipes: Web Application Recipes Authors: Joseph W. Lowery, Eric Ott, Pages: 616, Published: 2003
Dreamweaver MX 2004: The Missing Manual Authors: David Sawyer McFarland, David Pogue, Pages: 836, Published: 2004
Beginning DotNetNuke Skinning and Design: Skinning and Desing Authors: Andrew Hay, Nina Meiers, Shaun Walker, Pages: 432, Published: 2007
Professional ASP.NET 2.0 Security, Membership, and Role Management Authors: Stefan Schackow, Pages: 611, Published: 2006
Languages and Compilers for Parallel Computing: 16th International Workshop, LCPC 2003, College Station, TX, USA, October 2-4, 2003 : Revised Papers Authors: Lawrence Rauchwerger, Pages: 556, Published: 2003
Expert VB 2005 Business Objects Authors: Rockford Lhotka, Pages: 670, Published: 2006
Dreamweaver 8: The Missing Manual Authors: David Sawyer McFarland, David Pogue, Pages: 936, Published: 2006
Expert C# 2005 Business Objects Authors: Rockford Lhotka, Pages: 668, Published: 2006
Dreamweaver CS3 Bible: Master Every Aspect of Dreamweaver - Work with CSS, Text, Images, And Links - Incorporate Flash Movies and Other Media Authors: Joseph W. Lowery, Pages: 1112, Published: 2007
Pro ADO.NET with VB .NET 1.1: From Professional to Expert Authors: Sahil Malik, Paul Dickinson, Fabio Claudio Ferracchiati, Fabio Ferrachiati, Kevin Hoffman, Bipin Joshi, Donny Mack, John McTainsh, Matt Milner, Jan Narkiewicz, Doug Seven, Pages: 601, Published: 2004

Web:
Investigating Code Snippet Technology First, select the code statements to be wrapped within the region and ..... The other approach is to create a specific folder for your code snippets (for ...
GotCodeSnippets.NET: THE online source for Visual Studio code snippets enter some search text and choose a language to search for a specific snippet .... NET version of Mike Palermo's Property with Region code snippet. ...
Dave Sexton's Blog : Custom C# Code Snippets Dec 14, 2006 ... I invented the layout region snippets to keep my code really neat. ... When I'm developing custom controls I sometimes also add nested ...
Code Snippets | jens-schaller.de The question was how you can add a Code Snippets path which is located on a network ... When creating your own Snippets, you normally do this for a specific ...
Coding Horror: Code Snippets in VS.NET 2005 NET supports code snippets that automatically add any necessary Import statements. ... a ".snippet" extension that live in these language specific folders: ...
Sandcastle Help File Builder - Discussions The tag is used to format code snippets in the API documentation. ... 50+ code samples in a Word document, that need to be added to specific pages in ...
Le Café Central de DeVa Please find the VBScript code-snippet to get or extract the messages that are ... 5 : How to build an Outlook 2007 Form Region with a Managed Add-In? ...
Overview of Code Snippets Using Visual Studio 2005 Tools for Office Now that the snippets contain the specific values the solution requires, ... Inserting the Add Bookmark control to document at range code snippet ...
A First Look at Visual Studio 2005 Code Snippets A big time saver for me is when I have to add Region tags to my code. Using snippets I select the block of code that I want inside my Region and Insert ...
FrontPage and Dreamweaver Code Snippets Type Ctrl-Enter while in the Code Pane to open the Code Snippet window. Select the first option for customizing the list. Click Add. Type a Keyword and ...




Search This Site:










blog front page empty?

treeview

adding a header on every content page

dnn hosted by godaddy. i'm lost!

dnn 2.1.2 - menu tabs linking to a specified url

profile.isanonymous doesn't work

multiple controls with clientapicallbackevent

commerce starter kit error

godaddy & forums

security error when using an exterior dll.

missing datatable visualizer

passing data from one page to another

need subscription module

using datagrids in custom modules

how do i stop a web part from caching its data?

web developmment in visual c# 2005 express edition

digest authentication doesn't work but basic does

dnn4: child portal administrators get logged off

reference menuitems in javascript

help with regular expression

where is asp:history control?

case sensitive

can't connect to or create a database

adding a module

securing non aspx files?

personal website starter kit mailing list

configuration error

system.componentmodel.component organizing

how to display image after changing portalalias from localhost to computer name?

membership/profile inserting twice problem.

 
All Times Are GMT