Click here to Skip to main content
15,887,214 members
Home / Discussions / C#
   

C#

 
AnswerRe: Program installer to require a specific Windows OS? Pin
Not Active5-Aug-10 9:35
mentorNot Active5-Aug-10 9:35 
AnswerRe: Program installer to require a specific Windows OS? Pin
PIEBALDconsult5-Aug-10 17:03
mvePIEBALDconsult5-Aug-10 17:03 
GeneralRe: Program installer to require a specific Windows OS? Pin
Bernhard Hiller5-Aug-10 20:41
Bernhard Hiller5-Aug-10 20:41 
GeneralRe: Program installer to require a specific Windows OS? Pin
PIEBALDconsult6-Aug-10 3:04
mvePIEBALDconsult6-Aug-10 3:04 
QuestionFileSystem.GetFileInfo() Pin
Enobong Adahada5-Aug-10 5:59
Enobong Adahada5-Aug-10 5:59 
AnswerRe: FileSystem.GetFileInfo() Pin
Richard MacCutchan5-Aug-10 6:19
mveRichard MacCutchan5-Aug-10 6:19 
AnswerRe: FileSystem.GetFileInfo() Pin
OriginalGriff5-Aug-10 6:21
mveOriginalGriff5-Aug-10 6:21 
QuestionC#.NET 3.5 VS 2008 Excel 2007 Ribbon hide/show Pin
Wheels0125-Aug-10 4:54
Wheels0125-Aug-10 4:54 
Good morning.

I have created an Excel add-in to display a Import tab with several buttons designed to run VBA macros.

I only want this tab to display on the one workbook and not every instance of Excel. I am trying to test for the specific spreadsheet name, but the If statement keeps defaulting to the else condition. I have the following:

public RibbonCustom()
        {
            InitializeComponent();
            this.tabImport.Visible = true;            
            //MessageBox.Show(Globals.ThisAddIn.Application.ThisWorkbook.FullName.ToString());                                   
            if (Globals.ThisAddIn.Application.ThisWorkbook.FullName.ToString() == "ImportFile.xlsm") { this.tabImport.Visible = true; }
            else { this.tabImport.Visible = false; }
        }


The MessageBox.Show doesn't work.

Any suggestions? WHEELS
AnswerRe: C#.NET 3.5 VS 2008 Excel 2007 Ribbon hide/show Pin
Eddy Vluggen5-Aug-10 5:41
professionalEddy Vluggen5-Aug-10 5:41 
GeneralRe: C#.NET 3.5 VS 2008 Excel 2007 Ribbon hide/show Pin
Wheels0125-Aug-10 7:06
Wheels0125-Aug-10 7:06 
GeneralRe: C#.NET 3.5 VS 2008 Excel 2007 Ribbon hide/show Pin
Eddy Vluggen5-Aug-10 8:05
professionalEddy Vluggen5-Aug-10 8:05 
GeneralRe: C#.NET 3.5 VS 2008 Excel 2007 Ribbon hide/show Pin
Wheels0125-Aug-10 8:09
Wheels0125-Aug-10 8:09 
GeneralRe: C#.NET 3.5 VS 2008 Excel 2007 Ribbon hide/show Pin
Eddy Vluggen5-Aug-10 9:00
professionalEddy Vluggen5-Aug-10 9:00 
QuestionInsert Image in toolstrip ( win app ) Pin
Krishna Varadharajan5-Aug-10 3:51
Krishna Varadharajan5-Aug-10 3:51 
AnswerRe: Insert Image in toolstrip ( win app ) Pin
Ennis Ray Lynch, Jr.5-Aug-10 4:15
Ennis Ray Lynch, Jr.5-Aug-10 4:15 
GeneralRe: Insert Image in toolstrip ( win app ) Pin
Krishna Varadharajan5-Aug-10 20:03
Krishna Varadharajan5-Aug-10 20:03 
QuestionConnection Level in Compact Framework Pin
Tyler455-Aug-10 2:23
Tyler455-Aug-10 2:23 
QuestionWave files Pin
V.5-Aug-10 1:21
professionalV.5-Aug-10 1:21 
AnswerRe: Wave files Pin
Bernhard Hiller5-Aug-10 1:45
Bernhard Hiller5-Aug-10 1:45 
GeneralRe: Wave files Pin
V.5-Aug-10 2:00
professionalV.5-Aug-10 2:00 
GeneralRe: Wave files Pin
OriginalGriff5-Aug-10 2:03
mveOriginalGriff5-Aug-10 2:03 
GeneralRe: Wave files Pin
V.5-Aug-10 2:14
professionalV.5-Aug-10 2:14 
GeneralRe: Wave files Pin
OriginalGriff5-Aug-10 2:24
mveOriginalGriff5-Aug-10 2:24 
AnswerRe: Wave files Pin
Luc Pattyn5-Aug-10 2:41
sitebuilderLuc Pattyn5-Aug-10 2:41 
GeneralRe: Wave files Pin
V.5-Aug-10 3:07
professionalV.5-Aug-10 3:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.