Search results for query: *

  • Users: AlexJames
  • Content: Threads
  • Order by date
  1. AlexJames

    Resolved Read data from API response

    Hi All I'm currently consuming a REST api and i need some guidance on reading the response data. My experience with reading this type of data is very minimal and i'm trying to find the best way to do it. below is the code for getting the API data. public string ModitarWebRequestCall()...
  2. AlexJames

    Resolved Consume REST API with credentials

    Hi All I'm trying to consume a REST API, the issue i'm having is that i need to pass four credentials in the header, it's not just a "basic" authentication with user and password. I keep getting a "400 bad request" error and cant figure out where i'm going wrong. Please could someone point me...
  3. AlexJames

    Answered Class protection levels

    Hi All I've been doing a fare amount of C# courses and one concept is causing me a bit of confusion. To follow best practices you must give your classes the lowest protection/access level possible, the class should know as little as possible about the rest of the application. What i'm...
  4. AlexJames

    Resolved xUnit .net framework project missing VS2019

    Hi All i'm trying to add a xUnit test project to my app so that i can run and learn unit tests. When i go to add a project, i only have the (xUnit .NET CORE) , i'm completely missing the (xUnit .net framework) project. I've tried the add and remove features in VS and have run all the updates...
  5. AlexJames

    Resolved Populate datagridview from a class

    Hi All I'm busy building a C# WinForms app and have a method on my form that gets data from the database and populates a DataGridView. This is working nicely, but i want to move the code form my form to it's own method in another class so that i can reuse it. private void PopulateGrid()...
  6. AlexJames

    Resolved Best ORM for working with SQLite

    Hi All I have a C# app that i want to connect to a SQLite database, I originally wanted to use EntityFrameWork 6 as i am familiar with it but it doesn't seem to work with SQLite in the latest version of VS2019. Can someone please suggest the next best option, there seems to be so many, Dapper...
  7. AlexJames

    Question Reset button color from another form.

    Hi All I'm building a C# winForms app, I have my main form with with some buttons as a menu. I have a docked panel which i show my forms in with the code below. Form frm = new FrmSetupExchanges { TopLevel = false, ControlBox = false...
  8. AlexJames

    Better method than mdi parent/child forms

    Hi All I'm relatively new to C# and 90% of my experience is in the older languages. I'm busy with a new WinForms C# project which simply has a docked panel on the main form with a bank of buttons to mimic a menu, when one of these menu buttons is clicked I just need to display a new form but...
Back
Top Bottom