Search results

  1. J

    Question BG Task running non-stop on iis, is it possible?

    If you want something like SignalR then why would you not just use SignalR? Maybe you don't actually want something like that at all. I suspect that what you want is a Web API, which is basically an MVC app without the V. You create an ASP.NET application project the same way but, instead of...
  2. J

    Select Image File in ListView and save exe in c#

    Your question is very vague and sounds like you're asking multiple questions in one. Please stick to a single issue and provide a FULL and CLEAR explanation of that issue, including details of your attempts to address it for yourself.
  3. J

    DataReader to string and to integer

    Do what?
  4. J

    DataReader to string and to integer

    If all you're interested in is the last three digits of the ID text then get the last the last three characters of the string first, then convert that to an int. Regardless of whether your sequence code works or not, it's still bad code. Try using that in a multi-user system and see how well it...
  5. J

    DataReader to string and to integer

    The whole concept here is wrong from the start. Don't manually increment values like that. Define a sequence in your database and use that to generate the values for you. As for the issue, what was the value of maxId when the exception was thrown? If it's like your desired output and starts...
  6. J

    hybrid app development

    For the record, my company is developing a web app at the moment that will have a companion mobile app and that mobile app will be a PWA, so it will basically be part of the same web site that can be installed on a device to gain more privileges than a regular web app.
  7. J

    hybrid app development

    You should start by learning something about mobile development and something about web development. Given the fact that you seem determined to post as few words as possible here, it seems like you want some magic solution that will involve no work, but there is no such solution. It should be...
  8. J

    Question How to populate a nested list of objects?

    Your classes are both wrong. The Par class should be like this: public class Par { public string Id { get; set; } public int Num { get; set; } } and your Msg class should be like this: public class Msg { private int id; private int num; public List<Par> Pars => new...
  9. J

    Why is my case 1 looping

    You say that you've tried for a few hours but did you actually use the debugger? It seems impossible that you did but couldn't see where the problem is. You haven't explained what you're actually trying to achieve but some basic debugging should have shown that, once you hit that first case...
  10. J

    How to detect if on foreground thread or not in Core from class assembly

    Here are some examples I posted elsewhere: private void Form1_Load(object sender, EventArgs e) { Thread.CurrentThread.Name = "UI Thread"; } private void button1_Click(object sender, EventArgs e) { this.ResetTextBoxText(); this.backgroundWorker1.RunWorkerAsync(); } private void...
  11. J

    How to detect if on foreground thread or not in Core from class assembly

    Why exactly are you refusing to use the SynchronizationContext class?
  12. J

    how to read library documentation-Math.NET ?

    A programming reference is not a tutorial. It tells you the what and often in a very bare-bones format. A very comprehensive reference may also tell you some of the how and why but that is far more the domain of tutorials. That Math.NET documentation is very terse and sparse, so don't expect any...
  13. J

    how to read library documentation-Math.NET ?

    So you lied when you said that it's not mentioned anywhere? Gee, that really makes me want to help. I feel like this is a waste of time. The documentation says what it says. It's not really for us to teach you how to read documentation. The Build field returns an object that can be used to build...
  14. J

    how to read library documentation-Math.NET ?

    I've never used Math.NET but it took me a couple of minutes to find the information to answer your previous question and a couple more minutes to find this: https://numerics.mathdotnet.com/Matrix.html#Creating-Matrices-and-Vectors
  15. J

    Refresh method is not working in Imagelistview

    We can't read your mind so don't post questions that would require us to do so. ALWAYS provide a FULL and CLEAR explanation of the problem. Describe what you're trying to achieve, how you're trying to achieve it, what happens when you try and how that differs from your expectations. ALL code...
  16. J

    how to read library documentation-Math.NET ?

    You couldn't do this: var m = new Matrix<double>.Random(500,500); because Random is not a member of the Matrix<T> class. the Build field returns a MatrixBuilder<T> object and that it is what you call the Random method on to build a random matrix. The <T> part indicates a generic class. The most...
  17. J

    How to create Cut,Copy,Paste in contextmenu of lisview in Winform c#

    For instance, you could practice using context menus by displaying a message box or changing the form colour when the user clicks an item, so nothing to do with copy and paste. You could copy and paste when clicking a button, so nothing to do with context menus. This is how you need to start...
  18. J

    MS-ACCESS Connection in ODBC

    If you're already using OLE DB, why switch to ODBC? There are only two good reasons to use ODBC that I can think of: You want to use a DSN. You want to be able to connect to multiple data sources using the same objects and at least one of them only supports ODBC. If you are connecting to...
  19. J

    How to create Cut,Copy,Paste in contextmenu of lisview in Winform c#

    What's the actual problem here? You have referred to two unrelated things. Creating a context menu and acting when a menu item is clicked has nothing specifically to do with copy and paste so if you want to create a context menu then learn how to create a context menu. Copying and pasting has...
  20. J

    Random File Repeat

    Read the words. The variable originalArray is intended to refer to the original array, i.e. the array before shuffling. What's your original array? In the code you posted, it's files. You need to learn how to use examples. They are supposed to be general cases that you can modify to your...
Top Bottom