Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I have two main issues I am trying to address and after a while searching haven't found what I need to achieve. I have created a custom Outlook AddIn to show information hosted outside of Outlook and Exchange. I can get that working and showing forms but the customer wants tighter integration.
Ideally I want something that shows up in the Navigation Pane like the way the SharePoint AddIn for document libraries does. In that I need to enumerate a treeview based upon results from a WCF call then when the user clicks on an item it opens that and displays entirely custom information retrieved from the WCF service. I have no issue creating the controls and displaying the data but I'm not an outlook specialist. So the key to the question is how do I get the items into the navigation pane (I assume I use the Solutions Module) and then show my form in the right hand side with my data from the WCF?
I have looked all around custom message classes, form regions etc but I don't seem to be able to make sense of that as the items I want to show in the right hand pane don't relate to Outlook message classes.
I can see that I can create a custom task pane and could do the tree view there but don't really want to go down that route. Also I don't want to spring for the AddIn Express stuff as this is just a prototype at the present time.
Sorry for the wordy question but I'm at a dead end.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
Here's what I'm trying to do:
I have a main form and I added a UserControl named menu to it. Here's how it looks:
http://prntscr.com/a5dx0e
Now what I want is: when I select an item from the menu, the content below the menu will change without loading another form.
I could do that but the user would see a window disappearing and another appearing and that's kinda ugly.
What I really want is to replace the content based on the menu item clicked.
The best way I found was to create multiple UserControls and then just replace them with the right one. Is this a good idea or are there any better solutions?
Please note that I'm a starter in C# and I'm looking for the easiest solution.
Use the tab control and hide the tab header. Control the navigation amongst the pages programmatically when user clicks a menu. I've used this technique successfully in the past.
Choices,
hide/reveal panels (ways to collect/group all of the controls you are hiding revealing now)
Use a multi-tab control
Use an MDI (multi document interface) control
Use multiple forms, but display the new one first, then hide the prior one.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have a small simple project on building a clickable interactive map of our school.
The challenge is to create a clickable parcel of map and add an animation
directing the user from point A to B using the given roads/hallways on the map. Moreover, I would like to create a database that allows the user to view the information for that specific parcel of map when clicked.
I'm using C# to program this one. My application is Visual Studio 2010
Example Links:
https://www.youtube.com/watch?v=tbinL2pg5Hs
http://www.wayfinderkiosk.com/
QUESTIONS:
What are the processes(step-by-step) on creating this project?
What applications should I need for programming, database, animating, drawing etc.?
Decide on the platform you will be using: WinForms, WPF, WinRT, ASP... If your project description includes the platform then you know; if not keep the question in mind!
Get your resources. Get the map and a list of all the places you will work with. Also all the extras like the descriptions and photos etc. Get this chore out of the way now. It'll help you to get a feeling for the amount of things you will put into the project.
Know your clients. An older kiosk system runs only only a few kiosks. Today maybe you need/want to have it run on the web and on portable devices. This will make a difference in not just for screen sizes but also in the number of possible routes..
Define user input controls. Keyboard? Mouse? Touch? Which buttons? You need a complete list!
Define the user interactions. Completely. Try to make tables of states the system can go through.
Try to decide on how the path finding should work. This anything but trivial, as soon as you want to include more than a few points.. You can have a set of ready made paths or try to find them or build them from a list of partial paths. This may well be the toughest part of it. Some folks believe in 'Hardest First' other in 'Hardest Last'. I believe that the first thing is to understand the hard parts well enough to get a feeling for them and to decide then.
Well that is really just a start, off the top of my head.
Good luck and have fun!!
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I have an Windows Application running on my PC , this application list all connected servers on our farm .
This application have manual process (more than one step ) to do one action per server ,,
The steps are as the following (These steps are done for each one of the servers listed) :
Select one server then click right on the mouse then choose one option.
The selected option will open a new window above the parent application window.
Then click on button.
What I need is to build a new C# application that acts/simulate as the above application with ability to do that action automatic for all select servers from the list ..
I hope its clear now ,,
Please help me ..
If the application you want to attach has a UI, You can use UI Automation and Win32 API to manipulate some functinallity.
Try this starting points:
How to I get the window handle by giving the process name that is running?
Get the handle of a window with not fully known title. (C#)
http://www.csharphelp.com/2006/08/get-current-window-handle-and-caption-with-windows-api-in-c/
using C# and UI Automation to grab contents of unknown control-type
Good luck
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I want to make a list of a menu and I want it to be clickable. When a user taps on it, it will change page (to another XAML). I am a beginner in Windows Phone programming, so, as now, I only use selectionChanged, but it only works for 1 string of the list.
So lets say I want to make a list of home, login, forum in the menu, I only could use selectionChanged for the first one.
I have searched for a solution over and over again on every site, but none of the sites share a full tutorial to make it.
If anybody knows how to make it, please help.
This has been discussed multiple times on StackOverflow. What you're trying to achieve is to get some data associated with the LongListSelector's item been tapped. That data lives in the DataContext property of the item. When you handle the Tap event on the list item, you can retrieve your item's DataContext, cast it to required type, and use it as you wish, for example to navigate to some specific page, or whatever you want to achieve.
See this answer as an exampe.
you should check the templated application that are provided with the sdk.
Create a new project of type Databound App.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I need to control some third party app which has no API and very limited command line arguments.
So I need to simulate user interaction using .net and C#.
What I need to do:
start the application (this works)
enter string into appropriate edit
fields
press button
extra bonus is to hide app window
Can this be done and how ?
Thank you very much.
EDIT:
What do you think about AutoIt tool ?
You could achieve this using White.
It enables you to programmatically simulate user interaction with Win32, WinForms, WPF, Silverlight and SWT applications. I used it years ago when it first can out to automate some simple smoke tests on a WinForms application with great success.
(Caveat: this is based on my usage a while ago, so it may be slightly different now)
I created some code to launch my application and find a series of controls by name. Once found, each control could be manipulated (e.g. text entered, button clicked, etc...). To find the name of the controls, use something like Spy++ (Win32), UISpy (WinForms) or Snoop (WPF) to inspect the running application.
Theres also the UI Automation API, which, for this task, would be pretty easy to whip up.
This link will give you an idea of the support for each of the control types:UI Automation Control Types.
You can use the control name, caption or resource ID in order to grab its handle, and do what you want.
Clicking a button can be as simple as grabbing the handle and:
AutomationElement control = AutomationElement.FromHandle(controlHandle);
InvokePattern ip = (InvokePattern)control.GetCurrentPattern(InvokePattern.Pattern);
ip.Invoke();
I've had very good success with this on all .net windows, and 99% of controls from the native world