Best Control For Step By Step Data Gathering - c#

i am writing some kind of survey program in c#. I have 29 different questions and user should start from 1st quetion to 29. Which control is proper for this program ? Like wizard control.

Check out this Wizard control in Codeplex.

Here are some links found with this Google search:
http://www.google.com/search?q=C%23+Wizard+Component&sourceid=ie7&rls=com.microsoft:en-au:IE-Address&ie=&oe=
http://www.codeproject.com/KB/miscctrl/DesignTimeWizard.aspx
http://www.codeproject.com/KB/dialog/windowsaerostylewizard.aspx
http://www.eggheadcafe.com/community/aspnet/2/10010548/how-to-make-a-wizard-application.aspx
There's heaps of info on this and the controls you can find online are pretty good. But I've always found that if you want complete control it's easier to roll your own.

why not use online free ones? i would better consider doing it as Web/Online to make it easily distributable to wider audience, also gathering feedback will be easier as well.

Related

Simple solution to create tree-like structure in html

I am trying to create a tree-like structure for a webpage. In my case a user has a set of projects, each project has a set of tasks, tasks can have sub-tasks, and sub-tasks can have their own sub-tasks. So, basically I am looking for an elegant solution to display the tree-like structure using html elements in an aesthetically pleasing manor. Any tips or ideas would be appreciated.
a good place to start would be to make some psudo-code. most people on this website wont give you an entire solution. i have almost no knowledge of html but in all other programming languages the first place to start would be psudo code. also this sounds like you need to make some objects and structure your code around them.
I would leave this as a comment but I'm lacking a couple of rep points. You may want to focus more on the javascript part of building the tree. The HTML is the easy part. Do some searching on jQuery treeview control and see what you come back with. Here's an example:
http://www.jstree.com/
Follow the link -
here
Very good explanation. You can customize according to your need.

How to programmatically create custom comment tokens

I am writing a small Visual Studio addin to let the user use more features of the comment tokens (TODO, HACK, etc.). For this I want to extend Visual Studio with new commands (such as TODISCUSS, TODELETE, FIXME, TESTME, etc.). I'd like to do this programmatically when my addin starts.
I already found out how to do this manually: http://msdn.microsoft.com/en-us/library/ekwz6akh%28v=vs.80%29.aspx
Does anyone have an idea how this could be done via the API?
Any ideas or suggestions would be appreciated!
Edit :
See this MSDN Link perhaps digging around in TaskList will get you somewhere.
Original Post :
It's not very clear (to me :) what exactly you want to do. Is it: find, edit, or refactor the tokens and then do something else with the sources? I can suggest this article on Code Project (NRefactory).
Using NRefactory you can do anything and everything with the source files including locating the tokens you want and doing stuff with them. You will also know the files you found them in, line numbers etc.
Perhaps you will be able to use Nrefactory to do all the heavy lifting as far as sources are concerned.

how to get started in writing this Orchard module

I'm a newbie in Orchard development, and I'm now about to write my first module for it.
my requirements will contain a multi-page path in order for the user to complete the order.
1- search for your desired number
2- search results (pick your number).
3- enter your info
4- thank you (log this order)
I don't want someone to do my work, but I need to know where to start, and how to manage my assets, and the most important, is how will I be able to manage the user interaction wit my form.
many many thanks, hope to hear from you.
Update: This has not been finalized yet, as all of the resources I've checked couldn't answer my question.
what I need to achieve here is something like a wizard. some steps depending on user inputs. but all the samples was a one-page module with administration page or something.
please help.
The best explanation for building a module that I have seen is on www.Pluralsight.com. The content is not free but depending on your situation it may be worth the cost.
Advanced Orchard by Kevin Kuebler
Orchard Fundamentals by Kevin Kuebler

Generate dynamic flow-chart

We are looking for some code/component that can create a flow-chart (image) dynamically, preferably in .NET/C# (although a Silverlight/Flash-component that takes a XML/JSON-feed will also be fine).
For example we have a (business) quote that goes through te following steps before it becomes final:
Requested -> Pending -> Ready for revision -> Under revision -> Final
And as an extra step there is the possibility to go from 'Under revision' back to 'Pending'.
So the component/code should draw something like this (where 'Under revision' would be the active status for this quote):
Example chart http://www.wowtah.nl/flowchart-example.gif
The reason that we are not just creating static GIF-images (and load the correct one on demand) is that these steps can vary per customer implementation of our product. So we're looking for a way of dynamically show the user the workflow steps that are configured for them.
Any help would be greatly appreciated!
Take a look at Microsoft MSAGL
I built a workflow solution a while back and evaluated a number of diagramming controls, including the MindFusion control. I settled on the Syncfusion diagram control, primarily for its ease of use for an end user (especially when drawing connections).
I'm using the WPF edition, but they make editions for ASP.Net and WinForms. It has methods for exporting to images.
These are some of the components that I can remember evaluating; I'd recommend giving them a shot and seeing which you like best.
Syncfusion,
NWoods,
yWorks,
Nevron,
EasyDiagram
MindFusion looks like they have some good diagramming controls that may work for you:
http://www.mindfusion.eu/diagramming.html
In the meantime there are also open source diagramming libraries that you can find on Codeplex and Google code.
A very deep one with many features and very flexible is
http://nshape.codeplex.com/
Perhaps easier to program but more limited in scope
http://www.dalssoft.com/diagram/

What is the best way for save and load setting in my program?

I have build a C# program.
I need to keep setting of my program and I need to load them when the program load
(I know to do it with simple text file....but i don't have good documentation of the variable)
what is the best way to do it ?
Can I get any sample ?
In your solution, if you right click on the project and click on properties, there's a settings tab. You can define the settings you want to track and their types there and then access them through code, like this:
Properties.Settings.Default.SettingName = "Test Value";
Properties.Settings.Default.Save();
And then on load:
textBox.Text = Properties.Settings.Default.SettingName;
I'd argue that just hinting towards appSettings doesn't really cover the topic, as there is more advanced and eventually easier to use stuff readily available. Given that this question might be a
Duplicate
Best way to save per user options in C#
Please note that the MSDN link provided there (User settings in C#) covers both user and application scoped settings on an easy to grasp introductory level and basically elaborates on the correct example provided by jasonh already.
For a much deeper coverage of these topics (assuming you are using Windows Forms or WPF with Visual Studio) I'd recommend to look into Application Settings for Windows Forms.
Use appSettings (that's the MSDN link, here's more of a quick overview).
How about storing the settings in XML?
Reading and writing them is pretty easy.

Categories