473,322 Members | 1,734 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Insert code with add-in

Joh
I'm developing an add-in for Visual Studio in VB.Net. With this add-
in
I'd like to insert source code to the the Visual Studio project that
is hosting my add-in. How can I access
the editor of the hosting project from VB?

Sep 11 '07 #1
3 1310
I'm developing an add-in for Visual Studio in VB.Net. With this add-
in
I'd like to insert source code to the the Visual Studio project that
is hosting my add-in. How can I access
the editor of the hosting project from VB?
I'm afraid I do not know the answer to your question.

However I have something which may prove interesting to you given that you
are creating a VS Addin.

I've not done much VS Studio Addin creation (at least in the official way)
because every time I've looked into it it seems very complex and cryptic
and seems to have lashings of COM all over it.

I found a framework for creating Managed Code plugins for studio which I
find very useful.
This framework is the DXCore by DevExpress (The guys who wrote CodeRush and
RefactorPro. In fact CodeRush and RefactorPro require theDXCore as they are
themeselves managed plugins for the DXCore) (http://www.devexpress.com)

This may of course be overkill for your needs but I thought I'd mention it
in case it might help you.

If you're interested, there is a community forum supporting the DXCore at
http://community.devexpress.com/forums/181.aspx

Did I mention that the DXCore is a free download (Available from http://www.devexpress.com/Downloads/...ETools/DXCore/
)

FWIW.. I am so happy working with the DXCore that my instinct is always to
look for a way to write my plugins in this way rather than using the MS way.

Your milage may of course vary :)

--
Rory
Sep 11 '07 #2
Joh
On 11 Sep, 13:42, Rory Becker <RoryBec...@newsgroup.nospamwrote:
I'm developing an add-in for Visual Studio in VB.Net. With this add-
in
I'd like to insert source code to the the Visual Studio project that
is hosting my add-in. How can I access
the editor of the hosting project from VB?

I'm afraid I do not know the answer to your question.

However I have something which may prove interesting to you given that you
are creating a VS Addin.

I've not done much VS Studio Addin creation (at least in the official way)
because every time I've looked into it it seems very complex and cryptic
and seems to have lashings of COM all over it.

I found a framework for creating Managed Code plugins for studio which I
find very useful.
This framework is the DXCore by DevExpress (The guys who wrote CodeRush and
RefactorPro. In fact CodeRush and RefactorPro require theDXCore as they are
themeselves managed plugins for the DXCore) (http://www.devexpress.com)

This may of course be overkill for your needs but I thought I'd mention it
in case it might help you.

If you're interested, there is a community forum supporting the DXCore athttp://community.devexpress.com/forums/181.aspx

Did I mention that the DXCore is a free download (Available fromhttp://www.devexpress.com/Downloads/NET/IDETools/DXCore/
)

FWIW.. I am so happy working with the DXCore that my instinct is always to
look for a way to write my plugins in this way rather than using the MS way.

Your milage may of course vary :)

--
Rory
Ok Rory, thank you for that. But is there anyone who can answer my
original question?

Sep 11 '07 #3
Take a look at the code in Smart Paster which primary function is to paste
code into the IDE from the context menu. Once you open the project I believe
the file smartpaster.vb shows simple methods to paste as requested.

http://weblogs.asp.net/alex_papadimo...25/141400.aspx

I am not a add-in coder but in several hours learned a great deal from
Alex's code along with modifying the project.

"Joh" <me************@hotmail.comwrote in message
news:11**********************@o80g2000hse.googlegr oups.com...
I'm developing an add-in for Visual Studio in VB.Net. With this add-
in
I'd like to insert source code to the the Visual Studio project that
is hosting my add-in. How can I access
the editor of the hosting project from VB?

Sep 12 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Abareblue | last post by:
I have no clue on how to insert a record into access. here is the whole thing using System; using System.Drawing; using System.Collections; using System.ComponentModel;
0
by: Christopher | last post by:
I AM GETTING A SYSTEM.DATA.SQLCLIENT.SQLEXCEPTION ERROR WHEN ATTEMPTING TO INSERT DATA INTO A SINGLE TABLE THROUGH A GRID //If this is due to a spelling error, i will //inflict a ritual...
3
by: fmarchioni | last post by:
Hi all, I'm trying to do an insert using MySQL OleDb Provider. I'd like to use the prepare() method of OleDbCommand class to precompile the statement. The problem is that when I issue prepare() I...
2
by: nbohana | last post by:
I am trying use the following code to update sql. The problem is it only works once, then I get a message that the '@Param1' can only be used once. I need to know how to reuse these things or...
1
by: NathanV | last post by:
I have created a class and stored procedure to insert records into a table. The insert works but only the first character of the "Title" and "Body" fields are added. I have traced up to the point...
0
by: isaac2004 | last post by:
im trying to make a page that reads simple user information and posts them to a table. the user can edit, delete and add new records, through a form on the page.using SQLs modifications like...
5
by: mabond | last post by:
Hi VB.NET 2005 Express edition Microsoft Access 2000 (SP-3) Having trouble writing an "insert into" command for a Microsoft table I'm accessing through oledb. I've tried to follow the same...
3
by: iKiLL | last post by:
Hi all I am having problems getting my SqlCeDataAdapter to Update the SQL Mobile Data base. i am using C# CF2. I have tried this a number of different ways. Starting with the command builder...
2
by: rsdev | last post by:
Hi, I have a stored procedure which is returning a blank id. Here's my code; SqlConnection con = new SqlConnection(ConfigurationManager.AppSettings); SqlCommand cmd = new...
2
daJunkCollector
by: daJunkCollector | last post by:
Hey, I have a simple web app that requires the user to click a text link to add a section to the form. As you will see from the following code (PHP/mySQL), the link inserts a row into the database...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.