Click here to Skip to main content
15,893,644 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 Title

Extension 

23 Mar 2015 by Oleg Shilo
The extremely simple implementation of generic "Extension Properties"
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,...
26 Oct 2020 by Matteo Prosperi
This is the second post in the .NET libraries and the art of backward compatibility series.
29 May 2013 by leprechauny
I'm fiddling around trying to make a very basic, simple extension for Chrome. The idea is to via a browser action call run all bookmarks listed in the bookmark bar.As of now, the idea has resulted in this block of code: var marks = []; ...
9 Mar 2017 by TheGreatAndPowerfulOz
How to recursively select all descendants using an extension method
25 Apr 2011 by David Sehnal
A computation wrapper with built-in progress tracking using Reactive Extensions for .NET (and AsyncCTP).
20 Apr 2015 by Raj Nakkiran
How to manage multiple versions of device drivers and with multiple versions of applications, which share common operational contracts.
26 Oct 2011 by Alessandro Del Sole
This article explains how to acquire images from scanners and Webcams and how to store them to a LightSwitch application's database
15 Jan 2019 by Member 14109112
I want to create an extension (VSIX Extension with Visual Stduio 2015) for SQL Server Management Studio 2017. Unfortunately, I'm not really making any progress. Adding an item in the upper menu bar works fine. But that's not exactly what I want to do. I want to add an item or a submenu in the...
15 Jan 2019 by Richard MacCutchan
You should post your question in the forum at the end of the article, so the author can help you.
6 Aug 2012 by Duy Dam
Hi,I am trying to use Google APIs Client Library to develop a Chrome Extension. The problems is that I cannot inject this script in background page to access the API:Debug in Chrome throw an...
24 Feb 2013 by Jaffar Hussain
add this to your manifest file , it will work fine"content_security_policy": "script-src 'self' https://apis.google.com; object-src 'self'"
21 Nov 2014 by Vladimir Saleh
Hi, Here is my situation. I have created a Custom Wizard C++ project in Visual studio 2010. It will be used as a custom project system.Info( The Visual C++ Custom Wizard is a specific type of wizard, designed to help you create your own wizards. Once configured, your wizard...
21 Nov 2014 by Richard MacCutchan
You do not say which version of Visual Studio you are using, but I discovered with VS Express, that you can add such items to the project properties in the default.js file. Take a look at my article Visual C++ Express, Custom Wizard[^], for further details.
7 Aug 2012 by Sympletech
A little guide to introduce you how to create a JQuery Extension Method
27 Mar 2016 by veen_rp
How to fake an Extension Property...
23 Jun 2016 by Mr. xieguigang 谢桂纲
This is an alternative for "An Almost Extension Property"
5 Feb 2013 by mario genov
Basically what I'm trying is redirect requests to an ASMX web service to another ASMX web service. For simplicity's sake let's say I have an ASMX web service with Hello method only and simple soap extension like this one (let's ignore the log entries code). The differences in my soap extension...
14 Apr 2016 by veen_rp
This message will self destruct in 5 seconds...
23 Apr 2016 by Ehsan Sajjad
Better approach to bind dropdownlist with enum in MVC
7 Jul 2013 by Amit_Mittal
An easy way to bind XAML with properties defined in code behind
13 Feb 2013 by Daroosh
Dear all,I am trying to build an extension for Firefox which blocks the navigation to certain websites. In IE, its very simple since we have the BEFORENAVIGATE2 event which is fired before the navigation to any new URL. However, in javascript we don't have this luxurious option. So, how can...
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.
3 Apr 2017 by dan!sh
Extension to block selected hosts from Chrome brower
8 May 2015 by _Noctis_
This will allow you to integrate your linqpad code easily to Visual Studio
14 Mar 2018 by nitrous_007
I am trying to automate the process of setting up remote debug setting for a Visual Studio 2015 solution with only VC++ (Visual C++) projects. In the VSIX project, I can get the solution using ENVDTE and try to set the remotedebugger settings using the following commands. There is a bug however...
14 Mar 2018 by nitrous_007
Answer from the good folks at Microsoft is below and it works!. There are other property files like debugger_remote_windows.xml in the location ' C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\1033\' // WORKAROUND: // background: https://msdn.microsoft.com/en-us/library/dn655034.aspx...
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...
1 Oct 2023 by Romain Latry
--> I'd like to create a sort of plug-in / add-on for email boxes (Gmail first) that: allows people to sort their non-important emails saved in their inboxes and to delete them very easily automatically delete unecessary emails gamify the...
23 Sep 2013 by melvintcs
i need my asp.net page to check the google chrome extension if user is using chrome as their browser. Either:- Check google chrome extension, if not found, show message.or:- auto link to google web store and auto install the extension.im stuck at here...
23 Sep 2013 by Sergey Alexandrovich Kryukov
ASP.NET has nothing to do with Chrome extensions, by one simple reason: it's based on HTTP standards which has no notion of such extensions. Your request for browser capabilities is based on the standardized HTTP headers (but Chrome or any other browser's identity can easily mocked by any other...
16 Jul 2015 by Reza Ahmadi
I have a native application in Java and a Chrome extension. A round trip of my application is like this:1- JavaScript initiates a call to Native App.2- Native app reads the stream and does some calculations.3- Native app needs to call a JS function and needs its result for some further...
26 Jun 2014 by Daroosh
I am currently building an extension which is required to capture only HTTP request being made by the TOP frame browser (Not capture every HTTP request being initiated) before they are being sent out and the response received. Is that possible to handle in a Firefox extension?I currently...
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...
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...
7 Jun 2017 by Satish R
How to get a list of the extensions added to browsers through C++ mfc. And if possible how to enable and disable those extensions.What I have tried:I tried to find some database related to this extension data in /appdata/local/ but ended up with empty hand.
7 Jun 2017 by David 'dex' Schwartz
Your mileage may vary depending on the browser version (MS Edge vs IE etc.) so it would be best to do some more research on each one as needed. Internet Explorer The Browser Helper Objects are registered under HKLM\Software\Microsoft\Windows\CurrentVersion\explorer\Browser Helper Objects IE...
3 Aug 2018 by RealFlare
So this is my code: My.Computer.FileSystem.RenameFile("C:\j\Application.exe", Path.GetRandomFileName()) .. The extension changes to something random, which I don't want. I want the extension to be .pdf while using the code Path.GetRandomFileName(). Can anybody help me with the right code,...
16 Jul 2017 by Kornfeld Eliyahu Peter
Path.GetRandomFileName()[^] returns a string, so probably the best way to manipulate it... If you do not care for the 8.3 format: string.Format("{0}.exe", Path.GetRandomFileName().Replace(".", string.Empty)); If the 8.3 format is important: string.Format("{0}.exe",...
3 Aug 2018 by JIYAUL MUSTAPHA
/*Convert file format to png*/ string newfilename , string filename = "~/Photo/" + lbl_ImgPath.Text.ToString();/*get filename from specific path where we store image*/ string newfilename = Path.ChangeExtension(filename, ".png");/*Convert file format from jpg to png*/
28 Jun 2016 by Mohammad Ghaffariasar
hi,I want to write a tip that how to make and write a chrome extension with a nice sample.1- There is the possibility this post?2- If yes, what is Section and Subsection for this tip?best regards.What I have...
30 Jun 2021 by My Web Store
I have an issue with my chrome extension. I want to open it automatically when the page is loaded. For example, if a user opens stackoverflow.com, my chrome extension popup opens automatically. I am using chrome.runtime.onMessage.addListener on...
30 Jun 2021 by Richard Deeming
Try reading the documentation for writing a Chrome extension. The event you're looking for is chrome.webNavigation.onCompleted: chrome.webNavigation - Chrome Developers[^] You will need to add the relevant permissions to your extension's...
21 Oct 2016 by aziz57
I am trying to develop a chrome extension and i want to execute some method in the content script file from my another js file (popup.js). The documentation page says, i can execute the whole script page like thischrome.tabs.executeScript(null, {file: "content_script.js"});But I wrote my...
29 Apr 2015 by Rodrigo De Presbiteris (Presba)
In this post I will show you how to create a simple extension that accesses an external API hosted by forecast.io
12 Mar 2013 by DrNimnull
There is a Visual Studio Extension: Code Contracts Editor Extensions. This extension displays code contracts. The extension works and displays the code contracts in the ToolTip of a method, but I'm not getting the code contracts in the ToolTip for constructors. Is there a possibility to...
18 Apr 2011 by Fabio V Silva
A Google Chrome extension that changes the display of time/dates in the CodeProject forums
14 May 2016 by Vince Chan
A Google Chrome Extension that makes code project articles more readable.
7 Nov 2013 by Adam Zgagacz
ComboBox extension methods for binding with Enum types
3 Nov 2015 by #realJSOP
This is an alternative for "Compareing Two Complex objects of same class"
11 May 2011 by Super Lloyd
A much simpler composite application library.
3 Apr 2012 by Mikhail-T
Tutorial on how to create simple extension that converts view model propety name to string
20 Feb 2013 by Daroosh
Hello everyone. I am trying to copy the complete content of one IHTMLDocument2 to another new instantiated copy of IHTMLDocument2. In pseudo code, it would be something like this:IHTMLDocument2 newDoc.content() = oldDoc.content()The reason why I'd like to do so, is simply that whenever a...
21 Feb 2013 by H.Brydon
(haven't tried it) I think you might be able to do this with innerHTML property.
26 Sep 2010 by After2050
This article demonstrates the steps in creating a simple jQuery plug-in with a sample called Map Scroller.
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!
15 Feb 2013 by Daroosh
Found the other half of the solution.Creating IE Toolbar - 1Creating IE Toolbar - 2I managed to build both my IE and FF toolbars from the above mentioned links.Enjoy!
8 Jun 2012 by andrej33@yandex.ru
How to create cross-browser extensions with few lines in JavaScript
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 ||...
14 Dec 2011 by tonyjiang88215
i have several DLL files to load into mozilla extension project, one of DLL files depend on other DLL files , but ctypes.open only can load one DLL , how can i load them together? Thank you very much for your help : )P.S. I had tried to load the main DLL file , i hoped ti can load other DLL...
19 Mar 2012 by Md. Rashim Uddin
How to define your own dialog box
19 Dec 2011 by Ștefan-Mihai MOGA
Does anybody know any C++ tutorial for developing a thunderbird extension with XPCOM?
31 Jan 2013 by Sander Rossel
Hi all,I have found a rather annoying difference between calling generic Extension methods between VB and C#.I have written some Extension methods in a library written in C#. I am referencing this in a VB program and in a C# program. The difference (and problem) is that calling the...
1 Feb 2013 by Sergey Alexandrovich Kryukov
OK, I know what do to with you. Even if you are were not convinced by my clear example of System.Collection.Generic.Dictionary (you started to argument that the generic parameters are not constrained), I'll better show you a right method of research which you can use by yourself and remove all...
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...
23 Apr 2017 by Ganesh KP
Hi friends,I have got some problem with my mail idmy mail id extension is _ _ _ _ _ @yahoo.inThis extension for yahoo have some problem like it is unable to send mails to all the mail address and at the same time it is unable to receive some mail address as some have said they have sent...
23 Apr 2017 by Dave Kreskowiak
If you're asking if you can replace "yahoo.com" with something else, no, you can't. The only way to change that is to switch to whatever email provider you want.
11 Mar 2014 by Jaume González
To inherit an Entity Framework class, to extend it, bind to data and unmap it from DBContext.
25 Mar 2013 by Daroosh
Hello everyone,I have built an IE extension which creates a new DIV HTML element and adds it to the page. The problem is that this newly created DIV element only appears on the screen when i click with the mouse any where within the page, otherwise, it doesn't display. I tried following...
23 May 2014 by Jaume González
Easy seralization by adding extension methods to generic class
22 May 2014 by Jaume González
How to make sessions easy to use by extending .NET object class
19 Feb 2024 by Member 16202340
I am trying to create an extension for the tables in any database which will be shown when I right click on any tables in SSMS, I want to run that extension from there. Furthermore, I want my extension to make insert queries, delete queries or...
3 Sep 2014 by mikwilmot
What am I trying to doI want to give the user the ability to do a search using a C# asp.net webpage against a SQL Server and examine the data in a gridview. Then if the data is satisfactory they can click on export and copy the data to an excel spreadsheet.My Code: ...
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...
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
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.
7 Jun 2012 by AmitGajjar
An efficient extended search API to search from a text file.
25 Oct 2014 by Member 11179775
Im not asking do it for me, y need only know how to start please i'm serious with the question. i need help please1)Connect to https://bb.imperial.ac.uk the website of my university and login with my user2) Pull DOM the day I have test or task and the name of the subject and tell me in...
24 Mar 2014 by Benjamin Nguyễn Đạt
Why don't we create a static class with a static method and then call that method to pass in a argument like this : public static class A{ public static void ToUpperString(string param) { param.ToUpper(); }}instead of creating an Extension Method public...
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...
21 Jan 2015 by MahendraChawhan
Extension method for Generic Collection to DataTable
25 Dec 2011 by Kabwla.Phone
Determine visibility in complex (or composite) form
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.
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
Set visibility in complex (or composite) form.
18 Jan 2013 by Md Nazmoon Noor
Extension methods in C#
17 Nov 2015 by Michael S. Post
Tips and tricks for using extension methods properly along with a few of my favorites
5 Mar 2017 by DotNetSteve
Creating an extension class for View Models to save public properties using Generics and Delegates, replacing a reflection implementation
8 Feb 2017 by hpjchobbes
I am using a third party library that has a connection object called a SessionManager. The SessionManager allows you to create different types of requests for querying, adding or modding. I am writing some extension methods to try and make the coding faster as I tend to repeat code for a lot of...
8 Feb 2017 by sachin.vishwa90
hi, it seems the third party library you are using is not allowing you to create extension method.either it will be a generic class or something which is not allowing.you can check the reason in this link
8 Feb 2017 by Richard Deeming
You can't created "nested" extension methods, but your extension method can return an instance of a class / struct with other methods on it.Try something like this:public static class MyExtensions{ public static CustomerWrapper Customer(this SessionManager session) { ...
8 Feb 2017 by F-ES Sitecore
You can do something like thispublic class CustomerManager{ private SessionManager sessionManager; public CustomerManager(SessionManager sessionManager) { this.sessionManager = sessionManager; } public ICustomerRetList QueryActive() { //...
8 Feb 2017 by Pete O'Hanlon
You can't create your extension methods using composite names - in fact, you can't create any method using a composite name like that. So, while you could have CustomerQueryAll, you can't have Customer.QueryAll. What it looks like you really want, is to have a specialization of the extension...