How to control a winforms application using another? - c#

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

Related

C# Special messagebox (or input box)

I was wondering if someone knew how to "invoke" this kind of messagebox in C# or VB.NET
Don't take any notice of what is written in messagebox it's in French ^^
Thank you for your help !
What you are looking for is called Task Dialog. You can find out how to implement them in your WinForms application here.
EDIT:
Oh, look, someone has even created a wrapper to use them in WPF.
You can change the style of a Form in its properties and make it like a message box. Then add on it every item you need in ur "messagebox". When you wanto to show it, simply create a new instance of that form and it will appear.
Alternatively, check here: http://www.dreamincode.net/forums/topic/102866-how-to-display-combobox-items-in-message-box/

Create a popover-like control in C# WinForms?

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.

C# Win Form Spell Checker .Net 3.5

I'm looking to implement a spell checker on my win form app. The app need to be built in .Net 3.5 and I'm struggling to figure out what I need to do. I walked through an example of importing a Windows Presentation Form control that did this perfectly, but that control is only available in .Net 4 Framework.
Can anybody point me in the right direction on this please? I'm only using this control for the one richTextBox, so i dont want to spend too much time on this one element of my project.
Thanks
Add a TextBox to your form
In the XAML tab, add the following code between TextBox tags:
SpellCheck.IsEnabled = "True"
You can add the same code in the standard C# code window. Just enter:
textBox1.SpellCheck.IsEnabled = true;
3.Now, launch the application.
If you enter incorrect words, these are underlined in red. If you right-click the word, you get some spelling suggestions to correct.
I hope, thats what u wanted.
Hope these links may help you
http://coolthingoftheday.blogspot.com/2010/02/spell-check-enable-your-winform.html
http://www.codeproject.com/Articles/5277/NetSpell-Spell-Checker-for-NET

Activate Ribbon Button from C# in PowerPoint

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.

How to setup feedback link on Windows Forms caption using C#?

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

Categories