visual studio

  1. 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...
  2. M

    show the message with WaitForSeconds

    Hi, I´m currently wokring on an application, the purpose of the app is to display a message with a text, then you should be able to close the message down (like a notification). The message should be displayed after a couple of seconds. So what i need help with is to understand how to show the...
  3. 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...
  4. G

    Question connect to remote Sharepoint (office 365) and add documents programmatically. Issues with DLLS

    Hello, Using Visual Studio 2019. I need to connect to one of our Office 365 Sharepoint Sites and have the ability to simply add files via code. I am ONLY connect to the remote sharepoint site and do not have sharepoint server running on my Windows 10 OS. I get an error on the very first step...
  5. 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...
  6. 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...
  7. 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...
  8. 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...
  9. 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.
  10. 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...
  11. 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...
  12. 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...
  13. 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)...
  14. 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...
  15. 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...
  16. R

    Question retrieving information from sqlite database

    Hi i have a basic application that is used to display customer information from a sql database, i am using a datagridview to display the information, i also have a form that has texboxdes on it to enter customer information for adding to that database which currently works. what i need to do now...
  17. dv2020

    Question Simulating Screen Resolutions - Testing Application

    Hi All, Interesting one here. Background: Have a Winform application which works on all standard screen resolutions. Came across a laptop (new model DELL) which was is a high end model and is able to set to a super high resolution (3840 x 2160), which by default windows sets the zoom/DPi to...
  18. Y

    Question console does not display Chinese input string

    Hello, as my title says: on Windows 10, my console (cmd prompt) does not display Chinese input string by Console.ReadLine (but it displays Chinese non-input strings correctly). Here is my problematic code-chunk: using System; using System.IO; using System.Text; namespace 字符 { class...
  19. vlad.ua96

    Question IO Doesnt work on x64 or on x86 configaration only on Any CPU RRS feed

    Hello) Recently i got very strange error with IO i noticed that when i change project configuration from Any CPU to x64 or x86 input output stop working. I can't create any files even this simple code not working. File.WriteAllText(@"CSVTEST.csv","test"); I was thinking to change...
  20. R

    Answered need help with a windows forms app game

    so i created a basic game and it has a level that is basically space invaders. i have a class for the bad guys, and a class for the bullets, but sometimes i have an issue in game where the bullet just goes straight through the enemy rather than actually hitting it. this doesnt happen all the...
Top Bottom