Question about C# GUIs
Page 1 of 19 Replies - 424 Views - Last Post: 05 August 2012 - 05:07 AM
#1
Question about C# GUIs
Posted 02 August 2012 - 05:10 PM
Thanks
Replies To: Question about C# GUIs
#2
Re: Question about C# GUIs
Posted 02 August 2012 - 05:38 PM
#3
Re: Question about C# GUIs
Posted 02 August 2012 - 05:47 PM
Thanks
#4
Re: Question about C# GUIs
Posted 02 August 2012 - 06:07 PM
WPF, otherwise known as Windows Presentation Framework is MS's next generation of GUI for the desktop. It shares many similarities with Silverlight which is MS's response to Flash. Although MS never says that WPF will deprecate WinForms, I think that it's mostly a politically correct answer to not piss off people who invested heavily in WinForms. I think that it's pretty telling the VS2010 was re-written in WPF rather than WinForms. WPF in Visual Studio
XAML is declarative way to creating UI. It's a lot like HTML where you stick in the controls and layout directly. I think that MSDN makes a far better job of explaining it here: http://msdn.microsof...y/ms752059.aspx
#5
Re: Question about C# GUIs
Posted 02 August 2012 - 08:21 PM
You may be surprised how human readable the code produced is.
Simple WinForms Hello World button
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication1 {
public partial class Form1 : Form {
public Form1() {
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e) {
MessageBox.Show("Hello World!");
}
}
}
GUI Code.
Extra in VS2012 the XAML GUI designer is actually the GUI Blend designer.
This post has been edited by AdamSpeight2008: 02 August 2012 - 08:24 PM
#6
Re: Question about C# GUIs
Posted 03 August 2012 - 04:53 AM
Codebug, on 02 August 2012 - 06:47 PM, said:
Suggestion: Go to a bookstore. Browse the books on the subject. The public library probably has several too. We simply don't have the resources to mentor all 500,000 members from Day one - let alone another 2 million prospective people that are PRE day one.
The fact that you asked this, rather than attempting any type of search concerns me. You have heard of search engines like Google and Bing, right? Its not that I want to shuffle you off to some other site. But I think it speaks to someone's work ethic when they can't be bothered to try to do any research on their own. Most people, especially the experts here, respond better to this case:
Quote
than they would to this case
Quote
First learn the language by working 2-5 "Learn C# in 30 days" type books cover to cover. Do a couple hundred on-line tutorial projects where you build what you're told to build, the way you are told to build it WITH AN EXPLANATION OF WHY so you can learn.
Then later you can start architecting your own simple stuff. Build a calculator. Build a DVD library program. Etc. Stuff that doesn't involve the complexity of a game. Then move up to games.
There are three routes people seem to take when learning programming.
- Just start trying to create programs
- Start taking apart other programs and try to figure out the language by reverse engineering
- Follow a guided learning course (school or self-teaching books)
For the life of me I can't figure out why people try 1 & 2. I strongly suggest taking the guided learning approach. Those book authors go in a certain order for a reason: They know what they're doing and they know the best order to learn the materials.
Quote
You start by learning a coding language FIRST.
Learn to plan before you type.
THEN you start designing software with a purpose.
If this sounds like you
Newbie/Rookie said:
Otherwise, you can just jump to the resources here:
Some of the tutorials below are for C# or Java not C, C++, VB.NET [...]. But the conceptual stuff of classes, object oriented design, events etc. are not language specific and should give you enough guidance in theory of program development for you to be able to look-up specific code example in your chosen coding language.
Resources, references and suggestions for new programmers. - Updated Mar 2012
#7
Re: Question about C# GUIs
Posted 03 August 2012 - 07:42 AM
Skydiver, on 02 August 2012 - 07:38 PM, said:
You're by and far the minority in the C# developing world if you hand-code your forms. In Java you'd be right there with everyone.
Regardless, I'm hoping traditional windows forms just dies eventually. WPF is great, and now we have Metro to deal with as well.
#8
Re: Question about C# GUIs
Posted 03 August 2012 - 05:14 PM
[All my past experiments of simply doing a cut and paste of code from a Form to a UserControl (or vice versa), seem to initially work, but a few days or a week later VS gets into a bad state and seems to complain about being unable to load the new class that I had pasted code into, and I eventually have to recreate the destination control or form again from scratch.]
This post has been edited by Skydiver: 03 August 2012 - 05:14 PM
#9
Re: Question about C# GUIs
Posted 04 August 2012 - 10:29 PM
tlhIn`toq, on 03 August 2012 - 05:53 AM, said:
The fact that you asked this, rather than attempting any type of search concerns me. You have heard of search engines like Google and Bing, right? Its not that I want to shuffle you off to some other site. But I think it speaks to someone's work ethic when they can't be bothered to try to do any research on their own.
Mr. tlhIn`toq, I value the wisdom and advice of the experts on this forum far more than other sources that have been authored by someone who may or may not have a clue as to what they're talking about. I trust the experts here and I have never been led astray by them. That is the reason why I don't search other places first.
You don't know me and my work ethic is nothing like what you have insinuated. I was under the impression that this site was for programmers of all skill levels and backgrounds.
If my novice questions and forum etiquette have angered or frustrated you in any way, I am truly sorry and I apologize. I can assure you that I will not make this mistake again.
Good Day
This post has been edited by Codebug: 04 August 2012 - 10:29 PM
#10
Re: Question about C# GUIs
Posted 05 August 2012 - 05:07 AM
Codebug, on 04 August 2012 - 11:29 PM, said:
tlhIn`toq, on 03 August 2012 - 05:53 AM, said:
The fact that you asked this, rather than attempting any type of search concerns me. You have heard of search engines like Google and Bing, right? Its not that I want to shuffle you off to some other site. But I think it speaks to someone's work ethic when they can't be bothered to try to do any research on their own.
Mr. tlhIn`toq, I value the wisdom and advice of the experts on this forum far more than other sources that have been authored by someone who may or may not have a clue as to what they're talking about. I trust the experts here and I have never been led astray by them. That is the reason why I don't search other places first.
You don't know me and my work ethic is nothing like what you have insinuated. I was under the impression that this site was for programmers of all skill levels and backgrounds.
If my novice questions and forum etiquette have angered or frustrated you in any way, I am truly sorry and I apologize. I can assure you that I will not make this mistake again.
Good Day
Kid, chill out and grow up a bit. Just because someone isn't your cheer squad doesn't mean they are insulting you. Just because something they write isn't saying "You're perfect, you can achieve anything" doesn't mean the help is worthless. Sometimes the best advice can be the advice that's hardest to hear. Your friends, family and clergy can bolster your self esteem. We will tell you the truth. Don't you think it is worth knowing that at least one person interpreted your comments/actions in a certain way? Doesn't that make you wonder if someone else (like a prospective employer) might see it the same way? Nobody is saying you have to agree with it. But I do suggest you consider the fact that not everyone will always agree with you. You are right: I don't know you or your work ethic. I only know what you present here, a totally clean slate where everyone is equal with no preconceived notions. Just like a job interview you are competing against others based on nothing but your written words. I tried to give you a different perspective on your post and give you some insight into how it could be taken and some advice on how to have it taken better. And you're mad about that?
Quote
Quote
than they would to this case
Quote
This site is for programmers of all levels. Nobody said otherwise. But you have to recognize there are over 500,000 members and a core group of about 50 experts. That's a student:teacher ratio of 10,000:1. Nothing incriminating about that just simple math. It is simply not possible for us to hand-hold every new member through every introductory question that is well covered in MANY books and many on-line tutorials. There is a certain amount of effort the student has to take on as their own responsibility to research.
The experts here are volunteers. The reality of human beings is that you need to compete for their attention. I for one help those that make an effort. Someone that does a bit of research on their own and comes back with smart questions is someone I want to help. I'll spend countless hours with one rookie that shows that kind of promise. The kid that just says "tell me more", "what does that do", etc. without bothering to do any experimenting on their own, without trying to do any research of their own is not going to make it in this industry. I don't see a reason to spend my limited free time on a lost cause. I won't write the same day-one advice over and over in 100 threads. I will write a tutorials (or several) so it is explained well.
I won't spend time more time on someone else than they are willing to invest in themselves. And that is how I interpret someone that can't bother to do their own basic research and reading and forming of their own thoughts: They won't invest the time in themselves.
This post has been edited by tlhIn`toq: 05 August 2012 - 05:10 AM
|
|

New Topic/Question
Reply




MultiQuote






|