As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I need to build a simple desktop app, my experience is with vb6 but it's time to move on, so i need some help.
My app is relatively simple, a db table that holds events by date.
The app should display the events on a full screen in the following structure:
first line - todays events, a single event every time, rotating.
second line - the closest events (7 days a head), 5 every time, rotating.
third line - all other events , in ..rotation..
each event will be held in a "box", with constant (by percentage) size..
The problems I anticipate are:
The layout, how can i keep it aesthetic, the line heights, the events boxes? (in vb i used to attach it to the resize event and then calculate the size)
so, please - any tips? ideas?
where to start ?
what should i google?
You first need to decide if you're going to use WPF or WinForms, because everything else follows from that.
Winforms will feel more like VB6, but is not the latest and greatest thing.
WPF will be harder to learn to start with, but then stuff like all your layout resizing will just work, without you needing to write any of that calculating code.
Silverlight is (loosely) a subset of WPF, and if I was starting with no prior knowledge today, I might be inclined to use that.
The Adam Nathan book is excellent for WPF, not sure which book I'd recommend for Silverlight.
The layout, how can i keep it aesthetic, the line heights, the events boxes?
Take a look at the TableLayoutPanel (WinForms).
Related
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I am supposed to design an application for a large multitouch screen. By large, i mean newscaster large (around 55 inches and above). The application is an interactive map.
My questions is: which technology to develop the application in. My first idea was to make it in Adobe Flex, but then there is HTML5 too...
There must be some awesome Java library for touch interactions too, but then on Windows platform there must be C# library too?
Could someone please point me in the right direction.
The backend is probably going to be in Java EE.
Is there a specialized touch maps sdk?
Why reinvent the wheel?
Ventuz hands down best touch software I have used and I use it daily. It's specifically for large multi-touch presentations.
If you are looking to build it yourself, you will have a long long way to go. Ventuz is extremely flexible and will let you do anything you'll need to do with touch for the most part.
(And they are based in Germany, like you)
Here are some demos they showed last year at NAB
(source: ventuz.com)
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I want to build a nice looking UI with Silverlight, something that keep moving in a delicate manner (like this intro)
I know of course this is possible through the Animation features of Silverlight, but they seem to me a bit too exhausting. I'm looking for some ready-to-use UI animation.
As I recall, jquery offers quite a few UI menus (etc.) that are really easy to use.
I've searched quite a bit for effects library, or tutorials, but I couldn't find anything helpful.
Is my only option is writing Storyboard and build my animations from scratch?
Is that considered OK or I'm just reinventing the wheel here for no reason?
Does it make jquery a better choice for fancy UI web applications? (I've never used it , just read about it)
Storyboards and animations aren't that bad to learn. They are daunting at first (because they can be verbose), but if you just take some time to understand them, they are fairly straight forward. You can try some third party control suites like Telerik which have some animation/transition functions but I'd suggest diving in and understanding how they work.
The best way to try to learn the animations is to think of what you want to do first (something simple) and then just research/figure it out. Googles great for this! Do somethign easy at first of course.
View the sample Silverlight animation browser at microsoft to get started... Sample Animations
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
A few months ago, we started developing an app to control an in-house developed test equipment and record a set of measurements. It should have a simple UI, and would likely require threads due to the continuous recording that must take place. This application will be used for a few years, and shall be maintained by a number of computer science students during this period.
Our boss graduated some 30 years ago (not to be taken as an offense; I have more than half that time on my back too) and has mandated that we develop this application in ANSI C. The rationale is that he is the only one that will be around the entire time, and therefore he must be able to understand what we are doing. He also ruled that we should use no abstract data types; he even gave us a list with the name of the global variables (sigh) he wants us to use.
I actually tried that approach for a while, but it was really slowing me down to make sure that all pointer operations were safe and all strings had the correct size. Additionally, the number of lines of code that actually related to the problem in hand was a only small fraction of our code base. After a few days, I scrapped the entire thing and started anew using C#. Our boss has already seen the program running and he likes the way it works, but he doesn't know that it's written in another language.
Next week the two of us will meet to go over the source code, so that he "will know how to maintain it". I am sort of scared, and I would like to hear from you guys what arguments I could use to support my decision.
Honestly it could blow up in your face, but if your boss isn't a complete twit he will see how much more productive you've been and be able to move forward. C# does use a different paradigm from ANSI C, with the OOP and all, but the syntax is similar enough he should be able to figure it out. If not leave lots of good comments in the code, and maybe be nice enough to produce some actual technical documentation he can read through.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I learned C Sharp for one purpose, to write a word processor that includes my needs. For example that you could play with the spaces between words, and the spaces between the lines, raise one word higher from the row, and many other similar things.
When I start working on it in c# - winForms I see the possibilities are very limited, Indeed there are ways to do almost everything With effort, but my question is if I on the right way, maybe c# is not the language to it, maybe I should work with c++.
What do you think?
I wrote my own text editor for unformatted, monospaced text, which is much easier than writing one for formatted text as you have in mind. It is made up of 250 c# source files with a total of 800 Kbytes code. Only to give you an idea.
You will not be able to use existing controls and will have to write your own control for text display and manipulation, unless you use a RTF editor control; however, in that case you could use an existing RTF editor as well.
If you want to learn c# then choose an easier task, like writing a simple notepad editor for monospaced fonts without any chichi. You can then consider adding support for proportional fonts and go gradually towards an increasingly more complicated editor.
What you want to achieve is much more difficult than you think. Rendering text properly is an incredibly complex problem. Whatever the programming language, "GUI" programming is a bad choice. Work with HTML (generate it and use one of the many possibilities to render it).
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
What is the best aproach for developing Windows Applications for a newbie in C# ? WinForms or WPF ?
Wich one would be more powerfull ?
Wich one would be easier and faster to develop with ?
Wich one is easier to port to another Os ?
Most of the "practical" C# books focus on WinForms, are there any begginer's C# book using WPF ?
edit: Edited the question, now it should be constructive.
Please focus on using WPF. You will get introduced to XAML UI programming, which is also the template language for SilverLight and Workflow. You will have a better ROI and it is a more future proof UI technology. The learning curve will be a bit steaper though.
Personally, I would suggest Silverlight if you're just starting out, not Windows Forms or WPF. It's a smaller surface than WPF to start with (and easy to transition "up" to WPF if you need it), but it's also closer to the WinRT API, so it would give you a cleaner future path to more deployment targets.
If your requirement is really the one to port to other OS as well, the mono project:
http://www.mono-project.com/Main_Page claims to have a windows forms 2.0 complete implementation: http://www.mono-project.com/WinForms
if that is more a detail and you don't really care you could try to start with WPF.
my advise would be to focus more on the .NET framework and C# language itself as these are the basis and most of the .NET Framework is available in both so you should know it and get familiar to it, then if your windows derive from a class called Form or another called Window, as long as you know what to put inside and how to approach certain common issues, everything else is a detail (a big detail once you plan to make a huge application of a certain level, bust still a detail).
WinForms seems to be "obsolete" so I think it's better to learn WPF.