Author Topic: My First C# Program!  (Read 7112 times)

0 Members and 1 Guest are viewing this topic.

Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
My First C# Program!
« on: April 10, 2011, 02:14:25 pm »
So, I just started playing around with VSC#, and I decided to try to recreate something in C# that I had created in Java already.
All it does is allow you to drag the images around the screen. Here is the result. I was just wondering if there is anything else I should add, to expand my knowledge.

EDIT: Added source
« Last Edit: April 10, 2011, 02:18:04 pm by Binder News »
Spoiler For userbars:







Hacker-in-training!   Z80 Assembly Programmer     Axe Programmer
C++ H4X0R             Java Coder                           I <3 Python!

Perdidisti ludum     Cerebrum non habes

"We are humans first, no matter what."
"Fame is a vapor, popularity an accident, and riches take wings. Only one thing endures, and that is character."
Spoiler For Test Results:





Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: My First C# Program!
« Reply #1 on: April 10, 2011, 02:16:03 pm »
Can you give us the code? Seems nice. However, I recommend learning syntax in Command Line interface before developing GUI Applications.

SirCmpwn

  • Guest
Re: My First C# Program!
« Reply #2 on: April 10, 2011, 02:17:24 pm »
You can get the code of any CLI (which includes C#) program using RedGate's reflector, unless the code has been obfuscated.

Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Re: My First C# Program!
« Reply #3 on: April 10, 2011, 02:19:33 pm »
Added the source. But I'm really looking for ideas of thing to add, to help me learn the language.
Spoiler For userbars:







Hacker-in-training!   Z80 Assembly Programmer     Axe Programmer
C++ H4X0R             Java Coder                           I <3 Python!

Perdidisti ludum     Cerebrum non habes

"We are humans first, no matter what."
"Fame is a vapor, popularity an accident, and riches take wings. Only one thing endures, and that is character."
Spoiler For Test Results:





SirCmpwn

  • Guest
Re: My First C# Program!
« Reply #4 on: April 10, 2011, 02:20:18 pm »
Save an image of what it currently looks like, if you want more to add to it.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: My First C# Program!
« Reply #5 on: April 10, 2011, 02:21:31 pm »
Added the source. But I'm really looking for ideas of thing to add, to help me learn the language.

I tried it, it looks good. However, GIF images are corrupted when added.

I'd say a different cursor after pressing Del Image.

Image lightness is changed when dragged (grabbed to be precise) so we know we're grabbing them.

That should be a fair challenge, not too hard, not too easy.

Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Re: My First C# Program!
« Reply #6 on: April 10, 2011, 02:22:25 pm »
Ok, cool, I'll get right on that!
Spoiler For userbars:







Hacker-in-training!   Z80 Assembly Programmer     Axe Programmer
C++ H4X0R             Java Coder                           I <3 Python!

Perdidisti ludum     Cerebrum non habes

"We are humans first, no matter what."
"Fame is a vapor, popularity an accident, and riches take wings. Only one thing endures, and that is character."
Spoiler For Test Results:





SirCmpwn

  • Guest
Re: My First C# Program!
« Reply #7 on: April 10, 2011, 02:22:41 pm »
You should be able to use the System.Drawing.Bitmap class to do some interesting things with the images.

Offline fb39ca4

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1749
  • Rating: +60/-3
    • View Profile
Re: My First C# Program!
« Reply #8 on: April 10, 2011, 02:58:09 pm »
Cool! I wrote my first C# program in third grade. All it did was copy text from one textbox to another. After that, I didn't know what to make.
You shoud add in motion paths for images, and support for animated gifs.

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: My First C# Program!
« Reply #9 on: April 10, 2011, 03:02:02 pm »
Nice first C# program :P

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Re: My First C# Program!
« Reply #10 on: April 10, 2011, 08:29:25 pm »
Cool! I wrote my first C# program in third grade. All it did was copy text from one textbox to another. After that, I didn't know what to make.
You shoud add in motion paths for images, and support for animated gifs.
Ok. I finished the cursor changing, so I'll do that once I get the Image-changing effect in.

Nice first C# program :P
Thanks. :)
Spoiler For userbars:







Hacker-in-training!   Z80 Assembly Programmer     Axe Programmer
C++ H4X0R             Java Coder                           I <3 Python!

Perdidisti ludum     Cerebrum non habes

"We are humans first, no matter what."
"Fame is a vapor, popularity an accident, and riches take wings. Only one thing endures, and that is character."
Spoiler For Test Results:





Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: My First C# Program!
« Reply #11 on: April 11, 2011, 05:28:08 am »
Cool! I wrote my first C# program in third grade. All it did was copy text from one textbox to another. After that, I didn't know what to make.
You shoud add in motion paths for images, and support for animated gifs.
Ok. I finished the cursor changing, so I'll do that once I get the Image-changing effect in.

Nice first C# program :P
Thanks. :)

Have you added image lightness change when grabbed?

I also recommend yet another cursor (a finger-like one, the cursor of links) when you grab them, or maybe the hand cursor!