Search results for query: *

  • Users: cjard
  • Order by date
  1. cjard

    Resolved read bytes from middle of file?

    You started out asking how to seek into the middle of the file and read N bytes.. And now youre asking how to sequentially read blocks of N starting from the beginning Which is it?
  2. cjard

    Resolved Formula To Convert Time To Integer Based On 15 Minute Blocks Of Time. Almost There?

    For im index = time.TotalHours * 60 \ 15 I think I'd have done TotalMinutes\15 and for the reverse, TimeSpan.FromMinutes(15*index) Same difference, but slightly more readable IMHO
  3. cjard

    Question How can my desktop app download and install another app?

    Just tell the user to do it, maybe send them to the download page to make life easier for them. This way, psychologically, they're fully consenting and on board with installing extra software rather than having a "hmm how did this get here" or "why does this app want to make changes to my...
  4. cjard

    Question How do I determine when Skype for Desktop is "ready" to process an argument-supplied action?

    Might there be something you can do with the Skype API? https://learn.microsoft.com/en-us/skype-sdk/skypeuris/skypeuriapireference
  5. cjard

    app closes automatically

    Unhandled exception, possibly in async code that is not properly awaited
  6. cjard

    Resolved NotifyIcon question

    Click on yourself in the top right and select Account Details
  7. cjard

    Resolved MM Player for .NET

    Generally better to create winforms apps on framework, not core, IMHO. Core will probably never support winforms as well as framework does
  8. cjard

    Question Issue for a Nested Timer Class

    Please, for future, investigate what these buttons do, and use them:
  9. cjard

    Resolved NotifyIcon question

    Also, don't use your email address as visible forum nickname; it gives web scraping spammers an easy ride
  10. cjard

    Resolved MM Player for .NET

    Why does that need to be embedded?
  11. cjard

    Question Convert string to hex and hex to string

    Look at Encoding.GetBytes to convert string to bytes: Encoding.GetBytes Method (System.Text) Then look at Convert to convert the byte array to a hex string: Convert.FromHexString Method (System) The same classes can be used to reverse the operation. Be sure you use the most recent version of...
  12. cjard

    Raise base class event from derived child class - not possible

    We only know what you tell us, and confused, contrived, broken examples don't tell us much. Don't then attack us for pointing out that it's confused/unworkable; you wrote it! I wouldn't say class size is a determining factor as to whether a nested class should be used and I do agree that of the...
  13. cjard

    Win 32 API

    You're missing out on a world of pain.. ..for what gain, I'm unsure :D
  14. cjard

    Column does not allow Nulls eventhough AllowDBNull is set to True

    To be honest, I think I'd configure the seed and increment so the table itself calculates a value for you. If you have "refresh the datatable" turned on then it doesn't matter what value goes in the row; the db will calculate its own and the adapter will retrieve it. The purpose of having a...
  15. cjard

    Question CURL request in VB.net

    Incidentally, I did set up an account on name.com but ran into various errors when trying the examples in the API docs; even using their cURL suggestions I got HTTP 403 a lot. The one you're trying here does work, but seems to give 400 naturally as part of its operation: Note that I did make...
  16. cjard

    Question CURL request in VB.net

    But you're already using an abstraction; HttpWebRequest (which Microsoft do not recommend using for new development) is a level above the tcp socket it communicates with - tcp socket transmits any bytes you like, httpwebrequest transmits particular bytes that are specified in the http protocol...
  17. cjard

    Question CURL request in VB.net

    You can, of course, do anything without helper libraries. You can do all your database code in ADO.NET from 25 years ago, without entity framework. You can write your own JSON parser and spend weeks of your life cutting up strings and parsing their contents to other primitive data types. You can...
  18. cjard

    Question CURL request in VB.net

    This approach is intensely manual, quite hard work and most would consider unacceptably fragile. Install a nuget package called Flurl.Http and its dependent Flurl. It adds extension methods for strings and Uri objects so that you can just call a bunch of http related methods directly on the...
  19. cjard

    Resolved SendKeys on the WinKeys button

    That's what I meant, sorry-- whenever i wrote "shift" I should have written "Ctrl" The point I was trying to get across was that though both Windows and Ctrl+Esc do both open the start menu, it does not mean they're the same keys
  20. cjard

    Resolved SendKeys on the WinKeys button

    Windows key opens the start menu Pressing Shift+Escape also opens the start menu This does not mean that pressing windows key performs a shift+esc, nor is pressing shift+esc the same as pressing windows Shift+esc,D as a sendkeys would just type D into the start menu opened by shift+esc, not...
Back
Top