Search results for query: *

  • Users: sock1992
  • Content: Threads
  • Order by date
  1. S

    Deciding the best approach to refactor some code

    Hi, I'm working on a test and I'm trying to find the best way to refactor the code below. Each case is an Enum and returns a boolean switch (request.PaymentScheme) { case PaymentScheme.Bacs: if (accountRetrieved == null ||...
  2. S

    Getting an error when launching my virtual assistant application

    Hi, I've recently set up a virtual assistant in visual studio and when running the program, it gives me the following error: "LuisService.Region cannot be Null" I'm completely new to Azure so I'm not entirely sure what this means. Can anyone help? I've attached an image to give you more...
  3. S

    How to set up a chatbot?

    I want to get my chatbot up and running asap, so i can start playing around with it/creating simple dialogue systems etc. I want to have something which can build on overtime and in the end have a sophisticated conversational AI. On another forum they suggested that I use the virtual assistant...
  4. S

    What would I need to use if I'm looking to create a conversational AI?

    For my final year project I've decided to create a chatbot about mental health i.e. depression and anxiety. I’ll be working on it from the end of this month until the start of September. My question is what would be the best way to implement this? Baring in mind this would be about mental...
  5. S

    Need some ideas for my final project

    I’m studying a masters in computing systems and I’m at that point now where I need to start planning what I’m going to do for my final project. During the course I’ve created two programs using .net framework. The first one was a medical related application where I managed data through JSON...
  6. S

    Hi guys just have a question regarding parameterized queries.

    Initially I was concatenating my SQL queries, i was then informed that it would be best to use parameterized queries to prevent SQL Injection. I've now done that and everything works fine, however when posting on a forum yesterday about one of my queries not working properly, a person told me...
  7. S

    Storing values from a single column within a list.

    I would like to read all of the values from the column name "seatNo" and store those values within a list. I've done most of the code but i have absolutely no idea how to actually store the values Here is what i have so far: private List<string> seatNumbers = new List<string>()...
  8. S

    Resolved Accessing an individual value within a list

    I have a sign in method, which stores the details of a user based on the password and email that they enter. Within this method i call a function which stores those details inside of a list. My question is how would i be able to access those individual values? I want to be able to access just...
  9. S

    Resolved Getting error message regarding a foreign key when inserting data into a table.

    When signing up data will be stored within two tables. customerLogin and customer. The code for this is shown below, it works the way i want it to, inserting the correct details into both tables. { string query_1 = "Insert into customer (firstName...
  10. S

    Need some assistance with parameterized queries in visual studio.

    I'm trying to execute the following query, but its throwing an exception "Must declare the scalar variable \@dateFrom\ "." Does anyone maybe know why this is occurring? the dataType for dateOfDeparture is date. when i was using concatenation i was providing the format of the date...
  11. S

    Resolved PictureBox appears on form but not user control.

    Hello, when i drag a custom picture box onto my user control and run the application i can see it, however if i place the item on top of the panel i cant. Does anyone know how i can get round this? See image below, items under seat reservation aren't visible.
  12. S

    Resolved Getting an error message when dragging seat object onto user control

    I made a Seat class and inherited the PictureBox class: class seat : PictureBox { public string Row { get; set; } public int Number { get; set; } public string Seat => $"{Row}{Number}"; public bool Available { get; set; } } } I'm getting the...
  13. S

    Changing picture box image based on seat status

    I want to create a simple seat reservation system where the picture box will change to another image once the user has clicked the picture box. If the image is set as "available" it will turn green. If the user attempts to select another seat with the status "available" i want the application to...
  14. S

    Warn user with messageBox if they navigate away from the current user control

    I've tried to achieve this by creating a leave event on the user control, but the message Box isn't appearing for some reason. I also have a panel in front of the user control which I'm thinking might be the issue? Below is the code i have so far: private void...
  15. S

    Resolved Attempting to fill text boxes in user control once the user has logged in

    When the user logs in they will be taken to a dashboard where they can select different options. one of them being "Account details". within this user control I've set up text boxes which will be filled with the users details once they double click on the row within the DataGridView . I have...
  16. S

    Does anyone know a fix for Data loss in visual studio ?

    I'm attempting to publish my database but I'm getting the errors below. Ive unchecked the "block incremental deployment if data loss might occur" option which usually works but for some reason this time it isn't. Does anyone know a fix for this?? Rename refactoring operation with key...
  17. S

    Resolved Creating a seat reservation feature on windows forms.

    I'm making a coach booking system and I'm at the final stage where the user has to select a seat before inserting the data within a table. When the user selects one of the picture boxes it'll turn green, and that specific seat Id will be stored within the Booking table. If another customer...
  18. S

    Resolved how to transfer data from one grid view to a text box in another user control

    When the user double clicks on one of the bookings within the grid view, i would like to transfer the Id to a text box in a separate user control. Any ideas of how could I achieve this? Thankyou private void availableBookings_CellDoubleClick(object sender, DataGridViewCellEventArgs e)...
  19. S

    Resolved Needs some assistance with a seat reservation system.

    I'm currently creating a windows form project which is for a coach booking system using the baked in SQL server. What I'm trying to figure out at the moment is the best way to reserve a seat for a particular customer. In my coach table i have the coach Type i.e. single decker and double...
  20. S

    Resolved help creating a query for finding a record between two dates.

    EDIT: i fixed it. the issue was that i was inputting the incorrect format. when writing dateTimePicker1.Value.toString(dd//MM//yyyy)....it should have been **dateTimePicker1.Value.toString(MM/dd/yyyy)** im creating a project in visual studio using the baked in SQL server. I'm trying to create...
Back
Top Bottom