Jump to content

madknight3

Member
  • Posts

    1,786
  • Joined

  • Last visited

Reputation Activity

  1. Like
    madknight3 got a reaction from Snooke3 in Chevereto API? C#   
    There are a lot of classes in .NET for making web requests. You can use HttpClient, WebClient, HttpWebRequest or WebRequest.
     
    The specifics for what kind of requests you need to make are outlined in the Chevereto API docs.
  2. Like
    madknight3 reacted to fizzlesticks in It's advent time again   
    Advent of Code
     
    A new programming challenge every day from now until Christmas. 
  3. Agree
    madknight3 got a reaction from leonfagan71 in What does myImage refer to in this code?   
    That is an extension method. The first parameter is prefixed with a "this" keyword which means that you can call that method on an object of that type. In this case, an Image.
     
    So "myImage" is of type Image.
  4. Informative
    madknight3 got a reaction from Shammikit in What does myImage refer to in this code?   
    That is an extension method. The first parameter is prefixed with a "this" keyword which means that you can call that method on an object of that type. In this case, an Image.
     
    So "myImage" is of type Image.
  5. Informative
    madknight3 got a reaction from 78jimm in Advice On Web Development Education   
    Apply anyway. Worst case, you don't get the job (which you wouldn't if you didn't apply anyway) and you may end up with some extra interview experience. I'm sure you can find plenty of specific advice online for how to job hunt without a degree too.
     
    You can cover a lot of CS material on your own though. Check out OSSU. You can start with an Intro to Computer Science course (like Harvard's CS50 which covers a mixture of C, Python, SQL, and JavaScript plus CSS and HTML) and go on from there.
     
    Web development can still be your priority but the additional knowledge can help.
  6. Informative
    madknight3 got a reaction from trag1c in Sending data from one winforms application to another winforms application in different computer   
    Socket programming in a managed .NET application (like the C# WinForms app being used) is normally done using the System.Net.Sockets namespace, not using WinSock.
     
    There is the basic Socket class that you can use that is very flexible.
    Source
     
     .NET also provides some protocol specific classes that can help make things easier.
    For TCP sockets you have the TcpClient and TcpListener classes. For UDP sockets you have the UdpClient class. These classes use the Socket class underneath, but do a lot of things for you.
  7. Informative
    madknight3 got a reaction from Shammikit in Is it possible to have class files of a program in one computer and use them from a different computer? (C#)   
    Yes, like Erik says, the plain class files aren't of any use to a running application.
     
    You would need to take the class files, compile them into an assembly, and then call the code from that assembly. StackOverflow: How to load a class from a .cs file contains some information on the subject. But this is overly complicated and probably only actually needed in very rare situations (ie: it's very unlikely you need to do it).
     
    I expect what you're trying to achieve can be done in a much better/easier way.
     
    For example, most databases can be set up and accessed remotely from other computers. This may be good enough for your purposes but be aware that in can introduce security issues.
  8. Informative
    madknight3 got a reaction from Shammikit in Loading class files from another computer using C#   
    I'm not sure if you're going in the right direction with this. You might want to consider having a separate application running on the server that the clients can communicate with. The idea is that the server application handles a lot of the functionality and database work on it's end and moves that work away from the client.
     
    For example, one option is to create a console/desktop application that uses TCP or UDP sockets (depending on what you're trying to do). Here are some related links:
    TcpClient TcpListener UdpClient You can also google for more client-server information/examples/tutorials/etc.
     
    Another option is to create a web service with ASP.NET Web API. You're clients will then communicate with the server using HTTP requests. If you go this route, I'd recommend using the new ASP.NET Core 2.0 if possible but you can use the older ASP.NET Web API if you want. Again, here are some related links
    ASP.NET Core Web API tutorial Older ASP.NET Web API tutorial HttpClient Class Again, you can google for more Web API information/examples/tutorials/etc.
     
     
  9. Informative
    madknight3 got a reaction from Shammikit in how to go to another form on mouse click of a combo box option in C#?   
    The code isn't "refreshing" the form. It's hiding the existing form, and creating another form1 and showing it. The original form1 is still there in the background.
    this.Hide(); // The "this" keyword refers to the current form1. So you're hiding the current form1. form1 f1 = new form1(); // Here you're creating a new form1 that is separate from the existing form1 f1.Show(); // Here you're showing the new form1 and the old form1 is just going to remain hidden in the background // Side Note: // Hide() is just setting the Visible property to false. // So this.Hide(); // is just a shorter way of writing this.Visible = false; // Show() is just setting the Visible property to true. f1.Show(); // is just a shorter way of writing f1.Visible = true; So if you ran this code, you'd actually have 2 form1s open (1 invisible and 1 visible).
    If you ran this code again, you'd actually have 3 form1s open (2 invisible and 1 visible).
    And so on.
     
    So you need to change how you "refresh" your form. Just update your existing form instead of creating a new form.
  10. Like
    madknight3 got a reaction from Apextier in Working on a solution in Visual Studio with a friend simultaneously   
    Note that I haven't needed this feature before so I haven't tried any of these options out myself. I'm just helping you Google. You'll have to look into them more yourself.
     
    In terms of Visual Studio extensions, here are some I found
    TeamCoding (Seems to use CodeLens which isn't in the free Community version of VS) Collab (Looks dead) floobits plugin (Looks dead)  
    Cloud IDEs usually have this feature although I'm not sure how many out there have .NET support. One option I found was Codeanywhere which seems to suggest it supports .NET
     
    Since it supports IntelliJ, it looks like it also supports Rider (their new .NET IDE) and presumably all their IDEs. At the very least I was able to install it in Rider but I don't have a floobits account to try it out.
     
    Rider is free/discounted if you meet any of their criteria here.
  11. Informative
    madknight3 got a reaction from Shammikit in FFMPEG no such file or directory error   
    cmd.exe is an executable, not a folder
  12. Informative
    madknight3 got a reaction from Shammikit in Is there something wrong with my open file dialog filter?   
    The problem is the whitespace in the extension parts of the string
    openFileDialog1.Filter = "mp4 Files (*.mp4)|*.MP4 | flv files(*.flv)|*.flv ";                                              here^                and here^ You need to remove the whitespace like so
    openFileDialog1.Filter = "mp4 Files (*.mp4)|*.MP4| flv files(*.flv)|*.flv"; Note that the description portion of the filter string can have spaces, which is the reason that "mp4 Files (*.mp4)" and "flv files(*.flv)" are allowed. It's just the extension portion of the filter string that can't have spaces.
  13. Agree
    madknight3 got a reaction from Nuluvius in Terminus (Work in progress)   
    If the "country" command is going to be in there at all then it sounds like it should be reworked. The idea of manually entering data, like country info, that can be automatically retrieved (from online APIs or downloadable databases) is probably the wrong way of going about it.
  14. Agree
    madknight3 got a reaction from Nuluvius in Terminus (Work in progress)   
    It's simple, sure, but it's also repetitive, time consuming, error prone, and can be automated. They can do whatever they want, I was merely suggesting what I consider to be a better method of including that data in the application.
     
    According to Google, there are 195 or 196 countries in the world (depending on whether or not you choose to recognize Taiwan as it's own country). They mention that they have over 20 countries done so far. Which means they have a long way to go.
     
    Time saved manually adding information can be spent on other features.
  15. Like
    madknight3 got a reaction from Shammikit in Are there any Fade in/ Fade out effects for pictureboxes in C#?   
    Sounds like this is for school, in which case he doesn't have a choice and has to use WinForms.
     
    Here's an example that shows you how you can fade an image in a picturebox
     
    StackOverflow: Fading out an image with transparency in WinForms UI (.NET3.5)
  16. Agree
    madknight3 reacted to WiiManic in Starting chrome with powershell   
    In both the examples, you are still missing the space in the file path. You have "C:\Program Files(x86)" when you should have "C:\Program Files (x86)".
    There should be a space between "Files" and "(x86)". Or at least every version of Windows I have has the space between them.
  17. Agree
    madknight3 got a reaction from razaro in Mobile App development without a MAC   
    Interesting, I haven't heard of that before. Glad someone was able to help you.
     
    I also just remembered that services like MacInCloud can also be useful. Figure I'd mention it in case it helps anyone else.
  18. Agree
    madknight3 got a reaction from Balazs.zakany in Mobile App development without a MAC   
    Interesting, I haven't heard of that before. Glad someone was able to help you.
     
    I also just remembered that services like MacInCloud can also be useful. Figure I'd mention it in case it helps anyone else.
  19. Funny
    madknight3 reacted to TheComputerdude in need help! School Assignmet: online shopping service   
    I love the turns this answer took lol
  20. Agree
    madknight3 got a reaction from EvilNeo in Visual Studio Help   
    As far as I'm aware, Visual Studio doesn't have the functionality you're looking for. This may work for you (I'm not sure because they aren't talking about C++) but it's not really a great solution. I suggest you just get used to the command line window popping up when you run your application.
  21. Agree
    madknight3 got a reaction from fizzlesticks in Visual Studio Help   
    As far as I'm aware, Visual Studio doesn't have the functionality you're looking for. This may work for you (I'm not sure because they aren't talking about C++) but it's not really a great solution. I suggest you just get used to the command line window popping up when you run your application.
  22. Agree
    madknight3 got a reaction from mrchow19910319 in WTF is up with School These Days   
    You know that Java can do more than just build applets, right?
    You know that a lot of companies use Java, right?
    You know that no language is the best choice for every situation, right?
     
    It's unfortunate that you used the wrong language, or potentially just the wrong project type, for the job but that's hardly a reason to criticise the language from being taught in schools. With that said, many schools are changing, or have already changed, their intro courses away from Java. A lot are choosing Python while some are going with other languages. So there are valid reasons to move away from Java, according to some people, however, yours just isn't one of them.
     
     
  23. Like
    madknight3 got a reaction from MOMO in WTF is up with School These Days   
    You know that Java can do more than just build applets, right?
    You know that a lot of companies use Java, right?
    You know that no language is the best choice for every situation, right?
     
    It's unfortunate that you used the wrong language, or potentially just the wrong project type, for the job but that's hardly a reason to criticise the language from being taught in schools. With that said, many schools are changing, or have already changed, their intro courses away from Java. A lot are choosing Python while some are going with other languages. So there are valid reasons to move away from Java, according to some people, however, yours just isn't one of them.
     
     
  24. Like
    madknight3 reacted to sgzUk74r3T3BCGmRJ in WTF is up with School These Days   
    ?
  25. Agree
    madknight3 got a reaction from probE466 in WTF is up with School These Days   
    You know that Java can do more than just build applets, right?
    You know that a lot of companies use Java, right?
    You know that no language is the best choice for every situation, right?
     
    It's unfortunate that you used the wrong language, or potentially just the wrong project type, for the job but that's hardly a reason to criticise the language from being taught in schools. With that said, many schools are changing, or have already changed, their intro courses away from Java. A lot are choosing Python while some are going with other languages. So there are valid reasons to move away from Java, according to some people, however, yours just isn't one of them.
     
     
×