Click here to Skip to main content
15,886,734 members
Everything / Extension

Extension

extension

Great Reads

by NavnathKale
Lightweight and simple
by Mykola Tarasyuk
An approach to call built-in Visual Studio commands from within Visual Studio extensions
by Stefan Timovski
Tutorial on how to start developing SSMS extensions
by Just Perfection
In this article, you will learn about the GNOME Shell extension basics, schema, gettext and more.

Latest Articles

by BillWoodruff
Create collections of #n sized elements from arrays, lists, and string
by Sergey Alexandrovich Kryukov
This is just a funny Visual Studio Code extension, but… what can happen if somebody will try to use it seriously?
by HenkAlles
Show Simple Log - see the article by Jochen Scharr - in the browser with a nice layout
by Mykola Tarasyuk
An approach to call built-in Visual Studio commands from within Visual Studio extensions

All Articles

Sort by Score

Extension 

19 Feb 2021 by Mykola Tarasyuk
An approach to call built-in Visual Studio commands from within Visual Studio extensions
9 Jun 2019 by Stefan Timovski
Tutorial on how to start developing SSMS extensions
20 Jun 2020 by Just Perfection
In this article, you will learn about the GNOME Shell extension basics, schema, gettext and more.
12 Oct 2014 by Fredrik Bornander
How crazy do you want to go?If you're up for some un-safe code you can go ~70% faster by using pointers;public unsafe static bool IsStringMadeOf3(this string str, string from) { char[] copy = new char[from.Length]; from.CopyTo(0, copy, 0, copy.Length); fixed (char* s = str)...
21 Feb 2021 by HenkAlles
Show Simple Log - see the article by Jochen Scharr - in the browser with a nice layout
16 Dec 2015 by Dmitry Sikorsky
Using ExtCore framework to create modular and extendable ASP.NET 5 applications
3 Apr 2017 by dan!sh
Extension to block selected hosts from Chrome brower
7 Jun 2012 by AmitGajjar
An efficient extended search API to search from a text file.
14 Jun 2012 by Daniel Gidman
An MVC Razor Helper to generate radio button lists from enums
19 Mar 2014 by Sergey Alexandrovich Kryukov
The idea is simple: you should provide one more parameter (method parameter, not generic parameter): the delegate instance converting the element of the type T1 to the type T2. Your type constraints for T1 and T2 are absolutely redundant and useless. You can work with elements of any types, not...
3 Mar 2016 by Richard Deeming
Extension Methods (Visual Basic)[^]:Extension methods make it possible to write a method that can be called as if it were an instance method of the existing type.Extension methods can only be used as instance methods on the type. You're trying to define a new Shared method on the type, which...
27 Mar 2016 by veen_rp
How to fake an Extension Property...
18 Apr 2011 by Fabio V Silva
A Google Chrome extension that changes the display of time/dates in the CodeProject forums
18 Oct 2011 by Sergey Alexandrovich Kryukov
First, "Managed C++" was superseded by C++/CLI which you tag, so this is hardly an option. Everything else really depends on details of your requirements and even of the level you are familiar with the technologies. In this case, it's not possible to justify any advice of the type "use just...
21 Mar 2012 by Mike Hankey
I have a config.xml file I want to add to the VSIX file and have the file copied to the $(ApplicationData)\[company name] directory.In the manifest editor in vs2010 I am adding a Content with the following parameters; Content Type: Custom Extension Type Source: File...
21 Aug 2012 by OriginalGriff
It's pretty simple: Directory.GetFiles has an overload which accepts a pattern:string[] files = Directory.GetFiles(@"D:\Temp\", "*.jpg");You can then use File.Move as before.But you do realize that changing an extension doesn't magically make it readable as the new extension, don't you?...
17 Oct 2013 by Javier Tirado Pampín
This article talks about how to solve the filter problem in Telerik MVC Extensions control suite
19 Mar 2014 by BillWoodruff
I think Sergey "got there" first, and gave you the key insight you need; I suggest you accept his answer.While I am not familiar with the ObjectModel.Collection class, I have written an extension method to convert a Generic List of one Type to a Generic List of another Type:public static...
4 Sep 2014 by Nathan Minier
When I've had to skin this cat, this is the approach that I took: //returns a memorystream with an OpenXML.SpreadsheetDocument created on it var stream = ExcelUtility.GetExcel(temp); var filename = "MyFile.xlsx" // Usually a concat'd term var cd = new...
28 Sep 2014 by Sergey Alexandrovich Kryukov
You can embed BrowserControl (whatever it is; it will depend on your application type) to implement such behavior. As to the "any browser", the question does not even make sense. Here is why: 1) this is not the behavior of the existing browsers; even if you modify one more of existing products,...
13 Nov 2014 by Emre Ataseven
I have a method which is called thousands time. Because of its complexity, my code is working slow. Is there any better technique? Unsafe methods are allowed.Thank you.It simply checks letters of input string whether it could be made of the letters of other string.My current...
16 Sep 2016 by axuno
Take this ready-to-use VBA module for MS-Outlook, that lets you export all mail messages selected in the current Outlook email browser to the file system.
26 Oct 2020 by Matteo Prosperi
This is the second post in the .NET libraries and the art of backward compatibility series.
18 Oct 2011 by Simon Bang Terkildsen
WCFSeems lake a hassle, to me, to write a host implementation of WCF in unmanaged C++.SocketsThis is an option, however I've never really used them so I don't know how feasible it is. That said if you need to communicate with something like Java where you can't use Named Pipes.Named...
18 Oct 2011 by Espen Harlinn
If you want to get the job done in a hurry - use COM Interop[^].Net has great support for COM, and COM enabling an MFC app is usually a straight forward process.Best regardsEspen Harlinn
1 Nov 2011 by Daniel Lo Nigro
As far as I know, the "UpdateModel" method is designed to do this. Something like this should work, but I haven't tested it:public ActionResult Edit(Entity entity){ var entityInDbSet = _context.Set.SingleOrDefault(x => x.Id == entity.Id); UpdateModel(entityInDbSet); ...
25 Dec 2011 by Kabwla.Phone
Determine visibility in complex (or composite) form
7 Feb 2012 by Jonathan [Darka]
A virus can infect any file which can be executed, the file extension is not important.Each executable file can be identified no matter what extension you give it, if your proposing a whole new executable format then that would be a whole lot of work....Additionally, changing the...
7 Feb 2012 by Manfred Rudolf Bihy
I'm afraid that is not going to happen. A file can be opened and analzed by a virus to discover it's true purpose. Most files contain some headers that betray to the virus what they really are. For example by renaming a dll or an exe file to a file with a txt extension it could still be found...
21 Aug 2012 by Mehdi Gholam
Use FOR in the command prompt: c:\> for /r %1 in (*.pdb) do rename "%1" "%~n1.ppp" The above will search for all files with the PDB extension recursively and rename them to a PPP extension.
26 Sep 2012 by cpquest
Hi all,i have implemented a Extension method for ICollection f in project that bacically i am trying to do some datagrid related operation on ApplicationIdle state. here is the code. public static class CollectionExtension { /// /// Set item Binding to...
26 Sep 2012 by Clifford Nelson
I have used the Dispatcher, and it does not seem to be very reliable. Had much more luck with tasks: First get a TaskScheduler from somewhere that is on the UI thread:TaskScheduler uiScheduler = TaskScheduler.FromCurrentSynchronizationContext();Then in the place you need to make changes...
11 Oct 2012 by fjdiewornncalwe
This[^] page has a nice explanation of the file and what is in it. The easy answwer is that no, you can't modify it unless you want to decompile all the files in there. The question is, why would you want to if you don't have access to the solution?
17 Oct 2012 by Mukesh_Chauhan
u have to use routing to implement this.visit:http://msdn.microsoft.com/en-us/library/cc668201(v=vs.100).aspx[^]
2 Nov 2012 by R. Giskard Reventlov
Do you mean this[^]?Contact the company and ask them or search Google to see if anyone has created an app that can read the files.
2 Nov 2012 by lewax00
You would need to know the structure of the file, but you might not be able to find it if it's proprietary. If you have a converter available you might be able to convert a file into a file type you can read (in this case, maybe something like MP3 would be easier to work with).Beyond that,...
13 Feb 2013 by Ankur\m/
I searched for beforenavigate2 firefox[^] and this[^] was the first result. I guess it's what your are looking for.
14 Feb 2013 by Daroosh
Can someone guide me to a tutorial to build a complete toolbar for both, IE and Firefox? For IE, i already have a running BHO (built completely in C++), I would like to build a new extension that adds a toolbar to my IE. Same goes for Firefox, would like to build an extension that adds a toolbar...
14 Feb 2013 by Daroosh
Found half the solution, A step by step tutorial for creating toolbars for FIREFOX.Hope this helps anyone out there:Step by Step tutorial to building a toolbar in FirefoxNow I still need a tutorial for the IE.Thanks in advance!
19 Nov 2013 by The Manoj Kumar
Take a look at my article, Numbered Bookmarks - Visual Studio Extension VSX 2010[^]. It covers using Images for Menu items and some of that can be helpful.
5 Feb 2014 by CoderPanda
I think this discussion[^] should help. [Please accept/up-vote answers or solutions that work for you to encourage others]
22 Mar 2014 by Member 10691875
I injected contentscript into a page by : //this is in background.js chrome.tabs.executeScript(null, {"file": "contentscript.js"});Then to check if it inserted well or not I modified an element on the page, but no changes made.Did I inject it properly?Here are my files :...
24 Mar 2014 by OriginalGriff
Because Extension methods allow you to "extend" a sealed class by adding methods that look like they are part of the original class.That makes them more readable when you use them in your code: as you show in your example.Except...your example wouldn't work, and wouldn't do anything, or...
23 May 2014 by Jaume González
Easy seralization by adding extension methods to generic class
13 Oct 2014 by BillWoodruff
It would be interesting to time this approach using Linq (requires .NET 3.5 or later):private bool IsCharMatch(string stringToMatch, string stringToTest){ return // implement test for length equality ? //stringToMatch.Length == stringToTest.Length //&& ...
30 Mar 2015 by Richard MacCutchan
It is impossible to answer such a question in a Quick Answers forum, and it is most unlikely that anyone here could provide a better tutorial than those that are already available. See https://docs.python.org/3.3/extending/extending.html?highlight=extension%20module[^].
17 Jun 2015 by Tomas Takac
The easiest you can do is crate another comparer class that will concatenate the two comparers.class MultiComparer : IComparer{ private readonly IEnumerable> comparers; public MultiComparer(IEnumerable>...
18 Jun 2015 by Andreas Gieriet
An alternative to Solution #1 could be a Comparer that can be used like this: IComparer comparer = ChainedComparer.First(d => d.Year).Then(d => d.Month);With the following implementation: // Comparer for a prioritized sequence of comparison attributes.// Implemented as...
5 Aug 2016 by Parveen Siwach
Chrome extension does not allow inline java script. To call the javascript on button click, you need to assign ID to your control (button) and through eventListner bind the click event. Also, separate your javascript method in .js file refer that in your html file.For more detail go through...
23 May 2017 by stivanov
This is the solution: c# - Associated extension doesn't send file name to application on double click - Stack Overflow[^]
23 May 2018 by OriginalGriff
As far as I know, you can't do that for security reasons: that would trap passwords, bank account details and so forth and would probably count as malicious code.
3 Sep 2018 by LucyPage
Instagram officially does not give you such an option to hide your followers from others. Also, there is no such third party app available through which you can hide your followers on Instagram. But still, there are some ways around to hide your followers or following. Let’s see in detail what...
22 Jan 2019 by seventhnight
I have the following code which adds a project to the current solution from a specified template: Solution2 solution = GetSolution(); string templatePath = "..."; string genProjectPath = $"C:\\TestVSIX\\{projectName}\\"; try { ...
21 May 2022 by OriginalGriff
The simple solution is: set your system clock to the current time and let the OS keep it accurate via an internet time server. The only common reason for changing the date and / or time is to fool software licences into thinking they are still...
24 Sep 2022 by L Lemon
Change this to the following and it will work: html: Click me script.js: document.getElementById("myButton").addEventListener("click", myFunction); function myFunction(){ ...
30 Sep 2023 by OriginalGriff
Id suggest that you start by creating a trivial add on, and get that working first. Then gradually build up to what you eventually want to produce as it going to be pretty complicated - which means there are a lot of thing you will need to learn...
6 Feb 2024 by Dave Kreskowiak
The first question is why are you even doing this? VS allows you to add any file type to any folder for good reasons. You cannot modify the behavior of Add Existing Item. In the VS implementation, the items has already been "validated", because,...
10 Oct 2010 by Ali BaderEddin
SharePoint Detector Chrome extension helps you detect sites that are built on top of SharePoint, while you are browsing the web.
3 Apr 2011 by lbwxly
Currently,I have create a namespace extension. And I need to implement the functionality to add file into it from third party application. eg. Step 1.Create a picture with mspaint.exe.Step 2.Click save from file menu.Step 3.Select namespace extension as target folder and input a new name...
3 Apr 2011 by Not Active
Unless the application has specific hooks or an API there is no way to inject your code into its process
12 Apr 2011 by LogicNP
One method is to use a mirror location where all saves are saved. Then use a background process to sync between the mirror and your backend. This approach is advocated by EZNamespaceExtensions.
15 Apr 2011 by lbwxly
I am implementing a namespace extension. When I implement the functionality on drag a file in my namespace extension to local file system, i meet a problem. I can not get where the file is droped on. In other word, I can not get the file system path of the drop target. Anybody know how can I get...
16 May 2011 by smooze
good morning dear people of code project . I hope you are all feeling great. I am developing a google chrome extension that uses a web service in my website but every time I run my extension I get an authentication error so I get that to use the web service I have to be a logged user and...
20 Jul 2011 by jigneshNP
Hi..I m looking for a tutorial to make addons/plugins for IE 8 or 9. Can you provide me with a resource. Please, for the sake of peace and everything else, I Have new for developing addons/plugins so please help me.....Thanks to all in advance...
21 Jul 2011 by Stefan_Lang
Try googling for 'IE plugin SDK' - the top link already looks promising: Creating a Simple Plug-in
12 Sep 2011 by Sanjeet Suhag
So, here is the thing.I have made a very very advanced web browser in Visual Studio 2010(which includes Proxy, Tabs, Security, Pop-Up Blocker etc). So I need a download manager to go with it. I do know the code for a simple download manger now all I need is the code to over-ride the default...
18 Oct 2011 by sundararaman
I'm required to design the bidirectional distributed communication between legacy (MFC based VC++ application) and .NET GUI application (going to be built in C#). I have considered several approaches like Managed C++ (IJW), WCF (as a framework for communciations), Sockets, Named Pipes. Please...
24 Oct 2011 by George Danila
An Extension Method that might help you copy over the values from one object to another, provided they are of the same type.
7 Nov 2011 by Jyothikarthik_N
Here's my requirement:Upon typing a predetermined character, say 'a comment should be auto appended [for change logging] on that line:Like' CHANGE MADE BY XYZ ON 11/NOV/2011 | AAAAAA BB CCCC DD EEEE FFFFFFIs this possible? Are there good resources for writing such extensions...
22 Nov 2011 by Member 7928594
HiI use Microsoft Outlook 2010,mostly use the TextHighlightColorPicker [which marks signed text's background].Unfortunately it contains 15 specific colors,which most of them are too dark and not nice.Does anybody knows a way to extend the optional colors?Thanks a...
25 Dec 2011 by Kabwla.Phone
Set visibility in complex (or composite) form.
10 Dec 2011 by Cool Smith
Hello,I saw an article that featured a plugin/Extension support some months ago, the writer imitated the style of firefox extension manager where you can enable or disable an extension, but can find the article anymore,does anyone know about this, and point me to it?thanks
10 Dec 2011 by Not Active
If you can't find the article by searching by the author or by keywords then it was probably removed. Nothing can be done.
10 Dec 2011 by Abhinav S
Try doing a search[^] for the article.
12 Dec 2011 by SFDU
Hey,I want to ask how i could send data to a specific port (like 1273) with javascript?My project is an extension for google chrome which should be written in javascript and it should be able to send data to a port, like i've mentioned above.
19 Dec 2011 by Ștefan-Mihai MOGA
Does anybody know any C++ tutorial for developing a thunderbird extension with XPCOM?
31 Jan 2012 by LetsMond
I have been experimenting with displaying a popup window when a button is clicked on my Firefox extension's toolbar.My popup is a panel with an iframe inside it that displays the actual content. No matter what attributes I set to my panel and iframe there is always an ugly border between my...
31 Jan 2012 by Sergey Alexandrovich Kryukov
If you fight this problem for Firefox, specifically, it can be a waste of time: what to do with all other Web browsers your users may use?Consider one the the good alternatives, both based on jQuery which I highly recommend....
31 Jan 2012 by LetsMond
Thanks for the links. I'll have a look through those and see if they can help me.To answer your question, the pop up is from a Firefox extension toolbar, and not a web page, so I am not worried about other web browsers in this case.
7 Feb 2012 by MR. AngelMendez
hello, I have an idea for a project and I would like to know a few things before I start. My operating system is windows 7 and my project's language is going to be in C#.One, are viruses able to manipulate, damage or interact with files if they have a custom extension? for example lets say...
21 Mar 2012 by Mike Hankey
OK I found the solution. I found the following snippet private static string RetrieveAssemblyDirectory() { string codeBase = Assembly.GetExecutingAssembly().CodeBase; var uri = new UriBuilder(codeBase); string path = Uri.UnescapeDataString(uri.Path); ...
13 Apr 2012 by saffuraj
Hi,I want to create a text file locally on my system using javascript/jquery.I used this code to create file but not working on my System.chrome :18.0.1025.152 chrome.browserAction.onClicked.addListener(function(tab) { requestFS = window.requestFileSystem ||...
19 May 2012 by saffuraj
Hi i am writing firefox extensions need a way to get the open tab URL and title of the pages[all open pages] How can I do this?Thanks!
29 May 2012 by infowareindia@gmail.com
My extjs store isvar myStore = new Ext.data.JsonStore({autoLoad: true,// Override default http proxy settingsproxy: new Ext.data.proxy.JsonP({ type:'jsonp', url: path+'SelectoccurList', headers: {'Content-type': 'application/json'}, reader: { type:...
2 Jun 2012 by Ben Baron
Java source code to demonstrate Executable Integration which is a concept of integrating several distinct executables to create a single application
5 Jun 2012 by thatraja
Here possible solutionsASP.NET webservice - Uncaught SyntaxError: Unexpected token
18 Jun 2012 by pranavcool
Hi,i am using MVC3. I am not able to get the @Html.datalist extension in my view.What could be the possible reason?Is there any need to include any helper class for the same?If yes please suggest me on how to add the helper class.Regards,Pranav
12 Aug 2012 by fei.qi@ivtcorporation.com
Hi all, I write a shell-extension for Win7. First I crate my-own folder under "MyCompute", then show subfolders in it. But I find a strange thing. My shell extension supports to "rename" the subfolders. I call IShellView::SelectItem(pidl, SVSI_EDIT) to set the folder state to editable....
21 Aug 2012 by MR. AngelMendez
Hi, I know how to change all files in a folder to an extension. But now I'm trying to look for all of the files in a folder with a specific extension and changing them to another. Can anyone show me how? Thanks.For some reason I can't implement OriginalGriff's code to my application. Here...
21 Aug 2012 by Wes Aday
Start by reading the documentation, http://msdn.microsoft.com/en-us/library/system.io.directory.getfiles.aspx[^]
11 Sep 2012 by Kenneth Haugland
Perhaps this solution in C# would help:http://stackoverflow.com/questions/199184/how-do-i-check-if-a-number-is-a-palindrome[^]For any given num: n = num; rev = 0; while (num > 0) { dig = num % 10; rev = rev * 10 + dig; num = num / 10; }If n == rev then...
11 Sep 2012 by Sergey Alexandrovich Kryukov
You need to learn some very basics. Right now, you even fail to show us the line of code responsible for the problem. You even fail to indicate that this is a compilation error. Do you really know what a compiler does? What is the method, property, class, etc.? It looks you go to far to quickly,...
11 Oct 2012 by Nuha IT
Hi,I have a file with .xap extension, I am looking for a way to open the source code of this file to edit the source code of silverlight.Is there any way to see the source code? so I can easily modify it?Please Help!
17 Oct 2012 by manak chand
Try thisURL Rewriting with ASP.NET[^]
21 Nov 2012 by Sergey Alexandrovich Kryukov
The root of the problem is this: there is no such thing as "file name extension" in Windows or, I'm almost sure, none of the OS where CLI is presently supported. Such "extensions" was in use in some old OS as VAX VMS and MS-DOS (not quite an OS though), probably still in use somewhere, but this...
21 Nov 2012 by Marshall Singh
Hey all, Does anyone know a method to read the memory addresses of an attached process in WINDBG. They can be accessed through the memory window but i intend to use them in my extension dll, so a programmatic approach would be more helpful.Thanks in advance.
21 Nov 2012 by E.F. Nijboer
Have a look at psapi for that.http://msdn.microsoft.com/en-us/library/windows/desktop/ms684884%28v=vs.85%29.aspx[^]Good luck!