Using MessageBox.Show and the default caption

Hi
I have a maintenance issue that I am not sure of how to resolve. The documents state that you can omit the caption parameter and it will use the application name. For starters, I am finding that it remains empty on the popup message.
Since I am wanting to specify buttons and icons for the popup message I am having to manually provide my application name everywhere.
How can I get it to just use my application name without me passing literal strings?
This is VS 2013, Form based application.
Thanks.
Andrew

The documentation states:
"To display a message box, call the static method MessageBox.Show.
The title, message, buttons, and icons displayed in the message box are determined by parameters that you pass to this method."
https://msdn.microsoft.com/en-us/library/system.windows.forms.messagebox%28v=vs.110%29.aspx?f=255&MSPPError=-2147217396
Either you're not doing windows forms or you've read the wrong documentation.
The actual name of an assembly is often not really what the users want to see so I would go with MDeero's suggestion.  But with a couple of minor modifications:
public static class CustomMessageBox
public static void Show(String messsage, MessageBoxButton buttons)
MessageBox.Show(message, "staticNameHere", buttons);
 I would also consider making several overloads for that, so for example
public static class CustomMessageBox
private static string FriendlyAppName = "SuperDooper Application";
public static void Show(String msg, MessageBoxButtons buttons)
MessageBox.Show(msg, FriendlyAppName, buttons);
public static void Show(String msg, MessageBoxButtons buttons)
MessageBox.Show(msg, FriendlyAppName, buttons);
public static void Show(String msg)
MessageBox.Show(msg, FriendlyAppName);
There are 21 overloads to show.
Hope that helps.
Recent Technet articles:
Property List Editing ;  
Dynamic XAML

Similar Messages

  • I am using Aperture V3 and have a caption included at the foot of each photo. I want this caption included when I export the photo to another device (eg iPad). Any ideas on how to do this would be appreciated.

    I am using Aperture V3 and have a caption included at the foot of each photo. I want this caption included when I export the photo to another device (eg iPad). Any ideas on how to do this would be appreciated.

    The "caption" is metadata.  Metadata is included in most image-format files.  How it is displayed is determined by the program you use to show the picture on the computer screen.  You currently have Aperture set to "over-lay" the caption at the bottom of the Image.
    What program are you using on your other devices to show the files?

  • I have 3 iTunes libraries on my one one computer and since I updated to the new version I can no longer see who's library I am in. It used to show at the top of iTunes the name of the library I was in.  Is there a way I can tell which library I am in?

    I have 3 iTunes libraries on my one one computer and since I updated to the new version I can no longer see who's library I am in. It used to show at the top of iTunes the name of the library I was in.  Is there a way I can tell which library I am in without closing and reopening?

    No. Frequently the apps take up more storage space on the iPod that the file download size.

  • I have purchased Wedding Style By Miracle Design - it is showing in the downloads but I can not get it into lightroom - I am using a mac and the instructions are for windows.

    I have purchased Wedding Style By Miracle Design - it is showing in the downloads but I can not get it into lightroom - I am using a mac and the instructions are for windows.

    Return, cancel, or exchange an Adobe order

  • If Firefox 20 is in Private Browsing mode then a possible persona is disabled and the default theme is used - oh god, no - what can I do to keep both?

    Cor-el answered on the 4.4.13: " If Firefox 20 is in Private Browsing mode then a possible persona is disabled and the default theme is used. So you will have to make a choice."
    Can I go back to an older version of FF? I really do not want to choose. Will that problem be fixed in FF 21? I really love Firefox, it has always been my favorite browser - but giving up the Personas will be hard and I don't understand why I have to...
    How do I reinstall an older version of FF? Is there another solution?

    Remember to use the per window Private Browsing when you are doing banking or other confidential / financial work.
    One option is now
    * '''Firefox Button -> New Private Browsing Window'''
    * (Linux / xp File -> New Private Browsing Window)
    * see [[Private Browsing - Browse the web without saving information about the sites you visit]]
    You may even benefit from saving your History.It improves the functionality of the location bar / ''awesome-bar ''
    *[[Awesome Bar - Find your bookmarks, history and tabs when you type in the address bar]]

  • Photoshop CS6 Brush Manager does not show all the default brushes

    The brush panel shows all the default brushes, but the Brush Presets panel and the Brush Preset Manger do not, intact the last brush that they show is "100 Rough Round Bristle". it only shows the first 67 at max... if you delete anything before the 100 Rough Round, that becomes the new default number. It's like the rest of the brushes don't exist. Although I can select them in the Brush Panel.
    If I want to load any other brush set, it over writes any brushes that appear after "100 Rough Round Bristle".
    Need some serious help as my workflow is being severely hampered.
    Cheers!
    Arlen

    Which operating system are you using?
    Could you post a screenshot(s) of the issue?

  • Url used to show in the url box when opening from a shortcut or email, but now it's not there. If I refresh the page it is. How do I get this back the way I like it?

    The url of the website that I'm visiting used to show in the url box when I opened from a shortcut or email. But not it's not there unless I refresh the page. I've looked and haven't found a way to set this so that it works like it used to. I liked being able to click in the address bar and copy the link, or even to look there and see where I am.

    I'm unable to check it in safe mode because the only time it happens is when I click a link and have not firefox open. For example if I would click a link in my email right now, it would open in another tab and show the address of the link I clicked. But if I didn't not have this window open and clicked alink, it would open a new window and I wouldn't be able to see the url.
    Here's a screen shot.
    [http://chibitude.com/gallery/albums/userpics/10001/firefoxSSForAddressProblem.jpg firefoxSSForAddressProblem.jpg]

  • I installed iWork11 but the '09 versions of the software are still running--and the default. What do I need to do to get the '11 versions working?

    I installed iWork11 but the '09 versions of the software are still running--and the default. What do I need to do to get the '11 versions working?

    It's very simple. If you want to use iPhoto, just let it manage things as it does. Other than that: Export from iPhoto and delete the image from iPhoto. That will remove the master and all versions.
    If space is an issue... use an external disk.
    Don't change anything in the iPhoto Library Folder via the Finder or any other application. iPhoto depends on the structure as well as the contents of this folder. Moving things, renaming things, deleting them or otherwise making changes will prevent iPhoto from working and could even cause you to damage or lose your photos.
    Regards
    TD

  • User.region and the default locale

    What is the difference between user.region, user.country and the default locale.
    Thanks

    Same problem here ! I called Apple Care and got two people during 2 hours on call, they were unable to explain why and just repeat that "the use of TVout for recording purpose are not supported by apple".
    Why this settings has to be hidden ?
    FYI : i'm able to capture Ipad 2 thru BMD Intensity Pro but not able to switch PAL and NTSC in TV OUT settings to get a correct input. TV OUT setting doesn't appear.

  • OutlineField and the Default Button

    Hello all,
    We are currently using the Forte 3.0.G.2. I have recently come
    across the situation where I am unable to understand the behavior of the
    default button. The situation is this:
    Whenever I am including the Outline Field as one of the widgets in
    any of my windows that particular window will not respond to the default
    button. I am attaching the pex file so you can run the test windows and see
    the problem.
    Can someone please tell me if I am doing something wrong or is this a
    known/unknown bug?
    <<DefaultBtn.pex>>
    Thanks in advance.
    Kamran Shafi
    Systems Engineer
    EDS Medi-Cal XIX
    Phone: (916) 636-1093
    Email: [email protected]

    Hi Kamran!
    What happens is that when the focus is on outline fields, the enter key
    fires a doubleclick event and ignores the default button. So you need to
    capture the doubleclick event and do whatever you want your button to do.
    Here's a quote from Forte support
    "Unfortunately, this is a documentation issue. The IsDefaultButton only
    works when focus is on a simple DataField, because in all of the complex
    fields, including TextField, TextEditField, TreeView and ListView as well
    as OutlineField, the Enter key has a separate and defined action. On
    Tree/ListViews and OutlineFields that is DoubleClick.
    You COULD catch the DoubleClick on the OutlineField and post a click event
    on the default button, however I'd encourage caution with that, since this
    could cause some unexpected behavior if someone were counting on the Enter
    (or a mouse double-click) to behave in our standard way."
    Andrew Small
    Enterprise Distributed Solutions National Practice
    BORN Information Services
    [email protected] <mailto:[email protected]>
    -----Original Message-----
    From: Shafi, Kamran [mailto:[email protected]]
    Sent: Thursday, July 08, 1999 12:49 PM
    To: [email protected]
    Subject: OutlineField and the Default Button
    Hello all,
    We are currently using the Forte 3.0.G.2. I have recently come
    across the situation where I am unable to understand the behavior of the
    default button. The situation is this:
    Whenever I am including the Outline Field as one of the widgets in
    any of my windows that particular window will not respond to the default
    button. I am attaching the pex file so you can run the test windows and see
    the problem.
    Can someone please tell me if I am doing something wrong or is this a
    known/unknown bug?
    <<DefaultBtn.pex>>
    Thanks in advance.
    Kamran Shafi
    Systems Engineer
    EDS Medi-Cal XIX
    Phone: (916) 636-1093
    Email: [email protected]
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • My "go to in point" and "go to out point" keyboard shortcuts are not working, and the default keys arnt either? any help would be amazing!

    my "go to in point" and "go to out point" keyboard shortcuts are not working, and the default keys aren't either? any help would be amazing!  I use these keys a million times a hour and since I have switched to cc I cant get them to work. track selection makes no difference or if there are markers on the timeline or not. 
    Anyone else feel me on this?
    any help?

    Well that still didn't make any kind of difference.  I would just do without it but I've becomes really use to it with Avid for so long.  I have to admit there are a lot of small moments like this that makes me miss Avid.  Any other suggestions? I have checked the keyboard shortcuts a few times and maybe I'm just missing something here...

  • When using Zoho CRM- by default they use Skype as the "dialer". They said the browser can be configured to use Google Voice as the default dialer. Please help

    When using Zoho CRM- by default it uses Skype as the "dialer". They said the browser can be configured to use Google Voice as the default dialer. Please help by telling me how to make Google Voice the default dialer instead of Skype. Thanks

    Try the following changes to the JS file
    Lines 103 and 104 change the values
    this.showDelay = 100; // was 250
    this.hideDelay = 200; // was 600
    Comment out line 286
    Spry.Widget.MenuBar.prototype.bubbledTextEvent = function()
    //    return Spry.is.safari && (event.target == event.relatedTarget.parentNode || (event.eventPhase == 3 && event.target.parentNode == event.relatedTarget));
    Comment out line 366 and add new lines 366 and 367
    var self = this;
    this.addEventListener(listitem, 'click', function(e){self.Click(listitem, e);}, false);
    this.addEventListener(listitem, 'click', function(e){self.mouseOver(listitem, e);}, false);
    //   this.addEventListener(listitem, 'mouseover', function(e){self.mouseOver(listitem, e);}, false);
    this.addEventListener(listitem, 'mouseout', function(e){if (self.enableKeyboardNavigation) self.clearSelection(); self.mouseOut(listitem, e);}, false);
    I have not tested the above changes ontouch screens; they do seem to work Ok on desktops.
    NOTE: Line numbers could be different because of the difference in our versions.

  • I have just downloaded an alternative keyboard (Fast Keyboard)How do I get my Ipad2 to use it instead of the default keyboard, please?

    I have just downloaded an alternative keyboard (Fast Keyboard).
    How do I get my Ipad2 to use it instead of the default keyboard, please?
    Thanks for your help

    First, please don't shout.
    Second, don't post personal information.
    Third, restore, if iTunes will let you.  Everything except the password will be restored.  Connect via cable to the computer that you use for sync.  Be forewarned that it takes a long time.  From iTunes, select the iPad/iPod and then select the Summary tab.  Follow directions for Restore and be sure to say "yes" to the backup.  You will be warned that all data (apps, music, movies, etc.) will be erased but, as the Restore finishes, you will be asked if you wish the contents of the backup to be copied to the iPad/iPod.  Again, say "yes."
    At the end of the basic Restore, you will be asked if you wish to sync the iPad/iPod.  As before, say "yes."  Note that that sync selection will disappear and the Restore will end if you do not respond within a reasonable time.  If that happens, only the apps that are part of the IOS will appear on your device.  Corrective action is simple -  choose manual "Sync" from the bottom right of iTunes.
    If you're unable to do the Restore, go into Recovery Mode per the instructions here.

  • I have an older macbook pro and the hard drive is starting to go (making loud noises). i tried to back up to an external hard drive (my passport essential se) using time machine and the computer keeps shutting down. suggestions to complete backup please?

    I have an older macbook pro and the hard drive is starting to go (making loud noises). i tried to back up to an external hard drive (my passport essential se) using time machine and the computer keeps shutting down. the same thing happens when just trying to save my pictures from iphoto to a flash drive. suggestions to complete backup please?

    Sounds like you'll need to access that drive while it is not booted. You need to replace it anyway, so do that, then one way or another (ext enclusure, et), access it and copy files.
    If you keep trying to boot it, you might kill it for good and not get your files, so just swap it out first.

  • When I try to open an image by double clicking on it in Bridge, I get a message telling me to log in to Creative Cloud.  I am running CS6, and the default should be to open files in Photoshop 6 or in Adobe Raw (if it's a Raw file).  I don't want to log in

    When I try to open an image by double clicking on it in Bridge, I get a message telling me to log in to Creative Cloud.  I am running CS6, and the default should be to open files in Photoshop 6 or in Adobe Raw (if it's a Raw file).  I don't want to log into CC since I am not a subscriber, and this means that I have to work around, and go  back to Bridge, and tell it to open the file in Adobe RAW.  However, this does not work for older psd files which for some reason cannot be opened in RAW.  How do I return to the process of simply allowing RAW files to open automatically in Adobe RAW, and simply right clicking on the image in Bridge to bring up the option of opening it in Photoshop?

    <moved from Adobe Creative Cloud to Bridge General Discussion>

Maybe you are looking for

  • Lumia 1020 Owners - What is your iPhoto Workflow

    I really want to start using iPhoto fully to manage my photos. I have my images from my past two phones in iPhoto already and that's all fine. They were the Lumia 800, and then Lumia 520 as a cheap stop-gap when my 800 broke whilst waiting for my nex

  • Double Exposure RAW Files Poorly Processed

    I have an Olympus OMD-EM5. I'm shooting double exposures and when I import the RAW files into Aperture, once the Aperture preview is generated the picture becomes horribly over processed. Saturation seems maxed out on things like leaves, but also col

  • Confusion over removable drive mounts? [Solved]

    I've installed Arch with the XFCE DE and i'm more then pleased with it! :-D However, i'm baffled by where my mounts are located? I have nothing in /mnt/ or /media/, which is where i would usually start looking for my removable drives. I followed the

  • I can't update my credit card? Help?

    Help?

  • TS1967 i cannot get my music in itunes to download into my phone after my update

    I updated my phone.  But it took everything from icloud to add to my phone again but it will not sync my music and playlists.  But when I go to "On this phone"  it shows my playlists as if they are on my cell.  Yet when i goto "music" on my cell, it