How might it be possible to activate one of PowerPoint's ribbon buttons from C# ?
We want to be able to run some code in the context that is set up by pressing one of the ribbon buttons.
Just running our code via the interop doesn't work.
I want to be able to do something like this:
Ribbon.GetControlByName(controlName).DoClick()
Does anyone know if something like this might be possible, or know that it's not possible ?
Any hints would be greatly appreciated.
Going old school on you, but this is one of the best ways (still) to do this, assuming there is a Ribbon<->CommandBar coorelation.
Related
I have a winforms Application 1 which looks like this:
This application is already built so I can't change its source code.
I want to write another winforms application, which can run hidden and auto fill that textbox in Application 1 then click the button.
But I don't know where to start. I Hope you can help me with some keyword, or technique that I can use in this situation. Thank you.
I found a good example that can solve my problem and easily to understand
http://www.codeproject.com/Articles/33049/WPF-UI-Automation
So, one of my favorite things about iOS/ObjC in general is the "popover" control.
I am building an app in C# WinForms that would benefit greatly from this type of control- anyone have any ideas on how I might be able to emulate this type of look?
For reference, here's an example screenshot of what I'm talking about http://i.imgur.com/IzbbzrA.png
Thanks for any ideas!
You can create a simple popup control by following the articles linked below
Simple Popup Control
I don't think such a control exists in .Net. What I would do from this point if I were you is try to making one using a customized windows form on top of it. Play with the Mouse Hover events of the control and make the form appear for a short time. Make it without borders. With a little imagination you can have your own version of the PopOver.
Ok, so long story short, I was working on a .NET WEBFORMS project which was capable of creating ASPX pages through an ASPX form, which was basically a drag and drop controls page which, we could say, seemed to be a basic but functionality acceptable page/wizard/aspx-creator.
Well, now my higher-ups decided that approach is not a worthy solution and, I don't know why, they got into their heads that this, instead of this ASPX creator form, could be implemented through custom controls added to the toolbox.
So, my doubt is... is that even possible? Or better, is that a reasonable solution? I mean, the first cons I've already found is the fact It seems that it's impossible to yield CodeBehind code by the drag and drop method.
Thanks in advance!
Custom Controls
This MDSN walkthrough teaches you aboutmaking custom web controlls for asp. these would be able to appear in your tool box and could be dragged into its respective place, is this waht you are looking for?
EDIT:
Re-reading it looks like you want to be able to drag in bits of code and have certain regions prompted for edits, this CAN be done, using snippets. if you type propg or propfull and tab twice it constructs that code and tells you what bits to edit right? you can make your own snippets!
Creating custom snippets
failful msdn tutorials to the rescue once more!
Kindly let me know how can i implement the search functionality on a gridview the one same like in report viewer control that takes you to the searched text.
I have searched a lot , but no luck.
Any suggestion is welcome.Just need to be pointed in the correct direction.
UPDATE
Also i just had a quick idea looking at the browsers search , example: press ctrl+f and the browsers find tab appears, works the exact way i want it to . Can i force it to appears on the page, when using the website? OR implement it in the code something like that?
Thank you
Take a look at the link for quick start :
http://evonet.com.au/gridview-with-highlighted-search-results/
You can also see the following link:
http://www.codeproject.com/Articles/43018/ASP-NET-GridView-with-search-option-SearchableGrid
Thanks.
The best solution i can think of so far is to run the browser search functionality , CTRL +F .And the search in there works best like a report viewer control going into the gridview and finding out the information for me. To me it suited best for my requirements.Still interested to know of any other solution.
I would like to setup Feedback link on every windows form, so that user can send suggestion about design, functionality etc.. using C# (.NET 3.5) but I could not find solution.
Any help or suggestion will be appreciated.
On every form? You could create a "FeedbackLink" UserControl, and place that whereever you like. I wouldn't recommend trying to do it as a clever blanket-thing, because you can never assume the place you want the feedback hyperlink won't be used by something else.
My suggestion would actually be to add it to the "Help" menu on your main form, and possibly in some kind of (very intrusive) pop-up dialog. Maybe do it the way Visual Studio tackles it - by putting an icon in the systray with a bubble that pops up for the user to click on?
Example image (might take a second or two to appear):
Example http://www.freeimagehosting.net/uploads/b7939d58ae.png