How To Create Drawing App in C# | Visual Studio 2019 | C# Starter Project

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 พ.ย. 2024

ความคิดเห็น • 52

  • @StevenD-91
    @StevenD-91 ปีที่แล้ว

    I was waiting for the joke at blackbox, always comes in handy when your plane goes missing!

  • @marcellosensoli
    @marcellosensoli 8 หลายเดือนก่อน

    thank you, i was spending so much time without any improvment

  • @gavinhum
    @gavinhum 2 ปีที่แล้ว +8

    How do you not have more likes when you did a EXTEMELY AWSOME good job!

    • @ShaunHalverson
      @ShaunHalverson  2 ปีที่แล้ว

      Thank you!! You’re too nice lol

  • @anisboudraa7364
    @anisboudraa7364 2 หลายเดือนก่อน

    how can we create our costume shape tools to use them for painting

  • @TiffanyNg100
    @TiffanyNg100 ปีที่แล้ว +1

    Is it possible for you to go further to not jsut drawing but make an animation drawing app that will export gif image at the end? Like Gartic Phone animation?
    How do I approach this?

  • @miteshpatel8725
    @miteshpatel8725 2 ปีที่แล้ว

    This code only working for line drawing Can you tell me how create dot . Any suggestions please

  • @Lunar-rb9um
    @Lunar-rb9um 3 ปีที่แล้ว +1

    Thanks again Shaun!

  • @kingcreatez4827
    @kingcreatez4827 3 ปีที่แล้ว +1

    Bruhh u are soo underrated man!!!!

    • @ShaunHalverson
      @ShaunHalverson  3 ปีที่แล้ว

      Thank you!! :)

    • @kingcreatez4827
      @kingcreatez4827 3 ปีที่แล้ว

      @@ShaunHalverson haha no probs

    • @kingcreatez4827
      @kingcreatez4827 3 ปีที่แล้ว

      @@ShaunHalverson can you please tell me how i can make a clear function?

    • @ShaunHalverson
      @ShaunHalverson  3 ปีที่แล้ว

      @@kingcreatez4827 It's been a while since I looked at this video, but basically just reset as many variables and things as possible back to 0 or null. You will have to tinker with it but once you call clear it should be the same values as when the app loaded in the first place

    • @kingcreatez4827
      @kingcreatez4827 3 ปีที่แล้ว +1

      @@ShaunHalverson so i tried resetting all the variables but that didn't work, so i did a bit more research and found out that i had to just clear all the graphics on the panel, i can do this by writing this:
      canvas.Invalidate();

  • @unusuallyasian4070
    @unusuallyasian4070 3 ปีที่แล้ว +1

    so for some reason the colour wont change when i select it, help!

  • @learn9491
    @learn9491 2 ปีที่แล้ว +1

    Cool. I finally did it =) Thx man =)

  • @TheEvilmegamanX
    @TheEvilmegamanX 2 ปีที่แล้ว

    Thx soooooo much!!!!!!. It's really Great

  • @Evan_411
    @Evan_411 ปีที่แล้ว

    thanks a lot bro ! You Greate Teacher :) Yay

  • @vukasin_
    @vukasin_ 2 ปีที่แล้ว +2

    Nice video but I need help with smth, how can I make a dot when I simply click once and that's it

  • @RyanLBuchanan
    @RyanLBuchanan 2 ปีที่แล้ว

    Wonderful! Thanks so much!

  • @mikeafter5
    @mikeafter5 3 ปีที่แล้ว +1

    Thanks!

  • @lebigmac74
    @lebigmac74 2 ปีที่แล้ว +2

    Nice one! Also, very interesting to see that you do all this without using a bitmap. All comparable videos also use a bitmap object - need to check immediately whether I can get rid of this!

    • @lebigmac74
      @lebigmac74 2 ปีที่แล้ว +1

      Oh, and of course I agree with all the others: How can it be that a channel like this has such a low number of subscribers?!?

    • @lebigmac74
      @lebigmac74 2 ปีที่แล้ว +1

      Writing a few more comments and hoping that it helps pushing your channel! 😁

  • @richardschofield2201
    @richardschofield2201 3 ปีที่แล้ว +3

    Hello, great video.
    May I offer some constructive feedback.
    I guess I won't wait for an answer band offer it anyway.
    It's not on the video, video was great, it more the channel.
    Your videos cover a variety of topics. Unboxing, C#, HTML etc.
    I suspect people are less likely to subscribe unless almost every video you make is of interest to them.
    If it was a pure c# channel for example, those that are learning c# will likely enjoy every video you make.
    But they don't want dozens of notifications about stuff they are not interested in.
    I could be wrong. I have no experience.
    I've noticed a few TH-camrs have more than one channel and I suspect this is the reason.

    • @ShaunHalverson
      @ShaunHalverson  3 ปีที่แล้ว +2

      Thanks Richard. You make a good point and I have been debating about this lately. I’m trying to cover coding topics as a whole, but I could see a more specific channel being useful as well

  • @gavinhum
    @gavinhum ปีที่แล้ว +3

    For anyone who wants to make a button that imports images, make one and then put the following code:
    OpenFileDialog openFileDialog1 = new OpenFileDialog();
    if (openFileDialog1.ShowDialog() == DialogResult.OK)
    {
    openFileDialog1.Title = "Open";
    string filePath = openFileDialog1.FileName;
    canvas.BackgroundImage = Image.FromFile(filePath);
    }

  • @FaisalGroosh
    @FaisalGroosh 3 ปีที่แล้ว +1

    Thanks bro for this ,
    How can we make eraser?

    • @ShaunHalverson
      @ShaunHalverson  3 ปีที่แล้ว

      I think its possible, but I would have to look into how to do that!

    • @FaisalGroosh
      @FaisalGroosh 3 ปีที่แล้ว

      @@ShaunHalverson I'd really appreciate it that
      Since I'm working on my graduation project which include the drawing functions. The only approach i have come to so far by making the pen color white which is not going to work if I draw on pictures😁, and thanks for your interesting

  • @kingcreatez4827
    @kingcreatez4827 3 ปีที่แล้ว +1

    Also, how can i make it check if a certain key is pressed?

    • @ShaunHalverson
      @ShaunHalverson  3 ปีที่แล้ว

      docs.microsoft.com/en-us/dotnet/desktop/winforms/input-keyboard/how-to-handle-forms?view=netdesktop-5.0
      Try looking at that or....
      www.codegrepper.com/code-examples/csharp/how+to+detect+if+a+key+is+pressed+in+c%23

  • @realtitedog
    @realtitedog 3 ปีที่แล้ว +1

    Dude how do you not have more subs?

    • @ShaunHalverson
      @ShaunHalverson  3 ปีที่แล้ว

      Hahah idk but I’m going to keep trying for more! Thanks for your support!

  • @victorbied1
    @victorbied1 2 ปีที่แล้ว

    Is there an easy way to output the canvas to a printer?

    • @ShaunHalverson
      @ShaunHalverson  2 ปีที่แล้ว +1

      I don’t think there’s an easy way (that I can think of) but the easiest non-code way is to literally take a snip of the screen and paste it in paint, save it, then print the PNG

    • @victorbied1
      @victorbied1 2 ปีที่แล้ว +1

      @@ShaunHalverson I actually just kinda figured that out. Thanks for the quick reply. Your videos are concise and to the point! Very nice!

    • @ShaunHalverson
      @ShaunHalverson  2 ปีที่แล้ว

      @@victorbied1 thank you so much! Feel free to let me know if you need any more help as well!

  • @QuickTroveShorts
    @QuickTroveShorts 3 ปีที่แล้ว +1

    Great Video nice channel

  • @Constantin_Valdor_El_Prefecto
    @Constantin_Valdor_El_Prefecto ปีที่แล้ว

    Hey man, it's an excellent job, I would like to know how I would do so that the program only allows one line to be drawn at a time, and the previous line will be deleted when it draws a new one

  • @danamohammed1604
    @danamohammed1604 3 ปีที่แล้ว

    plesee canyou send me the code

  • @cypress4162
    @cypress4162 2 ปีที่แล้ว

    Hi how can I add something to let me change the opacity of my pen
    Great video by the way

  • @naruto5183
    @naruto5183 3 ปีที่แล้ว

    Hi can you make a tutorial on how to add different kinds of brushes?

  • @konjice
    @konjice ปีที่แล้ว

    You should never draw objects outside of the OnPaint method of a PictureBox, so using the CreateGraphics method is wrong.

  • @chickishot8172
    @chickishot8172 2 ปีที่แล้ว

    Is there a way to do this using C++, instead of C#?

  • @gavinhum
    @gavinhum ปีที่แล้ว

    Can you do a tutorial on how to make a sizer on the pen (make the pen a bigger size)

  • @hamzarashid7579
    @hamzarashid7579 3 ปีที่แล้ว +1

    Make a tutorial on this how it works!