<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Change the Tab caption from code]]></title><description><![CDATA[<p dir="auto">HI<br />
I am working with the .Net plugin template in C# and am having trouble trying to change the tab caption (file name) from code.<br />
We have our source code stored in a database. The plugin gets the selected code into a new page in NPP and I need to set the file name<br />
so we can see the primary key string that IDs that selection of code instead of the default “new 1”.</p>
<p dir="auto">I am hoping for an  example of code that does not require  user manual intervention.</p>
<p dir="auto">Thanks in advance<br />
Jeff.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/10799/change-the-tab-caption-from-code</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Jul 2026 00:48:05 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/10799.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 11 Nov 2015 02:01:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Change the Tab caption from code on Wed, 11 Nov 2015 18:42:37 GMT]]></title><description><![CDATA[<p dir="auto">I have realised how I can do this.<br />
In my plugin in C# I create a new file with the file name I need to link to the primary keys of the dDB data.<br />
Then use<br />
Win32.SendMessage(PluginBase.nppData._nppHandle, NppMsg.NPPM_DOOPEN, 0, path);<br />
to open the file with the tab caption set.</p>
<p dir="auto">Thanks<br />
Jeff</p>
]]></description><link>https://community.notepad-plus-plus.org/post/12086</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/12086</guid><dc:creator><![CDATA[Jeff Kelly]]></dc:creator><pubDate>Wed, 11 Nov 2015 18:42:37 GMT</pubDate></item></channel></rss>