4 Replies - 728 Views - Last Post: 28 May 2012 - 07:45 PM Rate Topic: -----

#1 tieugiang94  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 160
  • Joined: 07-December 11

HTML in C#.

Posted 27 May 2012 - 06:44 AM

Hello. I'm vietnamese, My english skill not so good! So sorry If i wrong something.

So. In C#, Can i display text with HTML to decorate it ? Like HTML with PHP
How to use image instead of button ( Win Form )
Give me a simple code.

Thanks advance :)
Is This A Good Question/Topic? 0
  • +

Replies To: HTML in C#.

#2 tlhIn`toq  Icon User is offline

  • Please show what you have already tried when asking a question.
  • member icon

Reputation: 5438
  • View blog
  • Posts: 11,668
  • Joined: 02-June 10

Re: HTML in C#.

Posted 27 May 2012 - 07:15 AM

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.
Sure, 35 years ago the only way I could learn BASIC as a kid was to type programs from a book into a TRS-80 model 1 or Commodore VIC-20, then figure out the commands and syntax by watching the results as the program ran. There simply wasn't any courses for a kid back then.

But now, you can't help but to trip over "Learn {coding language} in 3 weeks" type books and the entire internet is at your disposal for tutorials.

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

Where do I start?


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:

I have a little programming experience but I need to write ...
read this section
Spoiler


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
Spoiler

Was This Post Helpful? 0
  • +
  • -

#3 Sergio Tapia  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 1252
  • View blog
  • Posts: 4,168
  • Joined: 27-January 10

Re: HTML in C#.

Posted 27 May 2012 - 07:51 AM

View Posttieugiang94, on 27 May 2012 - 09:44 AM, said:

Hello. I'm vietnamese, My english skill not so good! So sorry If i wrong something.

So. In C#, Can i display text with HTML to decorate it ? Like HTML with PHP
How to use image instead of button ( Win Form )
Give me a simple code.

Thanks advance :)


There's no way (that I know of) of displaying HTML natively on the Windows Forms form. You can use a Web Browser control and render actual HTML and style the control to remove borders etc.

Another option is to use WPF, which uses something called XAML which is very similar to HTML in some regards. Have you checked out WPF?
Was This Post Helpful? 2
  • +
  • -

#4 tieugiang94  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 160
  • Joined: 07-December 11

Re: HTML in C#.

Posted 27 May 2012 - 05:01 PM

Thanks.
So, what about display an image in a button ( It like label for button )
Was This Post Helpful? 0
  • +
  • -

#5 Skydiver  Icon User is online

  • Code herder
  • member icon

Reputation: 3479
  • View blog
  • Posts: 10,725
  • Joined: 05-May 12

Re: HTML in C#.

Posted 28 May 2012 - 07:45 PM

Try reading the documentation: Button.Image: http://msdn.microsof...uttonbase.image

This post has been edited by Skydiver: 28 May 2012 - 07:46 PM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1