Search results for query: *

  • Users: chairmanPC
  • Content: Threads
  • Order by date
  1. C

    NullReferenceException when runningView

    I have followed this site on creating a MVC ASP.NET: Create a View in ASP.NET MVC. I am new to this, so I'm familiarising myself with ASP.NET. The first few tutorials were smooth, until I created the view page. using System; using System.Collections.Generic; using System.Linq; using...
  2. C

    The Parameter is incorrect.

    The WIndows .NET Framework form version of the BLE Watcher is running fine, so I am making a ASP.NET version of the BLE Watcher, but I kept getting this error: The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG)). Note that the code in Form_Load is straight from the...
  3. C

    Error 404 when pressing button

    This is my first ASP.NET Core project. I started with adding a button that will check if it is clicked. It will print a YES when it's clicked. but when I hit the button, I got into this Error 404 page. What did I do wrongly? @{ ViewData["Title"] = "Index"; } <form class="text-center">...
  4. C

    Why is my image not showing up?

    Relatively new to ASP.NET here. I have created an ASP.NET Net Core project (empty form). IN the home page, there is an site image on top of the page title. However, I did not see the image when I test-ran the site. Just the torn image icon. The code below is my home page. ``` <div...
  5. C

    What is the oldest platform of Windows that my app can run?

    My project is a .NET 4.8, because it has Bluetooth LE functions. I have just completed it, and I will be presenting it to a factory soon. I am now tasked with writing a user manual. I am working on System Requirements. Because I wrote the program in Windows 10, I am not sure about the oldest...
  6. C

    Resolved Why am I getting NullReferenceException trying to display Assembly Version?

    It's a .NET framework project. And I get the NullReferenceException when I try to print the project version. public Form1() { label3.Text = Assembly.GetExecutingAssembly().GetName().Version.ToString(); <-- offending line InitializeComponent(); }...
  7. C

    How to read data from a Bluetooth LE Device?

    I am totally new to Bluetooth LE programming. My task is to write a app to read in data from a skincare device called a clartici. It has a sensor that will read the skin and send the data to a computer. I was able to detect and pair the device to the program. I got stuck in the part where I...
  8. C

    Resolved How to fix this? "The type or namespace name 'Windows' could not be found"

    The program will scan and exchange data with a bluetooth device. But right at the start, I get this "The type or namespace name 'Windows' could not be found" from the following two line in the code below. using System; using System.Collections.Generic; using System.Linq; using System.Text...
  9. C

    Question Errors when sending SMTP attachments from a DataGridView

    I have created an SMTP program that sends messages with optional multiple attachments. The attachments are listed in a DataGridView. Here is the code below: private void button1_Click(object sender, EventArgs e) { try { MailMessage message =...
  10. C

    Google sign-in blocked my email sending feature!

    I created an email sending form for my company project. Here is my code below: private void button1_Click(object sender, EventArgs e) { try { MailMessage message = new MailMessage(); SmtpClient smtp = new SmtpClient()...
  11. C

    Free Package for Radar Charts?

    I am looking for a free Nuget graphing library, or any other third-party library, that also includes radar charts. So far, the "free" ones that I got from the Nuget browser are only free trials. LiveCharts does not have Radar Charts, and don't bother with Microsoft.Chart.Controls, the design is...
  12. C

    Resolved Error: commit -allow-empty-message --file=-

    I have created a C# Windows Form project back in April. Decided to create a repo in Azure DevOps so I can work on my project elsewhere. I made some improvements to the program and I was able to commit the changes to my Azure DevOps repo without errors. But just now, I had some more last minute...
  13. C

    Resolved Program not catching exception

    So here's the problem: I am trying to copy and paste data from one DataGridView to another. First DGV is called allData and second DGV is called selectedDGV. There are 8 columns in allData while there are 5 in selectedDGV. As long as the program reads data with more than 8 columns, it's fine...
  14. C

    Resolved Charts.js alternative

    So I was working on a program to calculate statistics for my company. It's a C# Windows Form with .net 4.8. I was first introduced to Microsoft.Chart.Controls, so I was most familiar with this package when it comes to graphing. Apparently, my boss did not like the charts designed from...
  15. C

    .NET to Xamarin iOS?

    Trying to port a C# winform .NET project to Xamarin iOS version. I wonder if it's possible to do so.
  16. C

    Resolved Publish failed. Check output for more details.

    I worked on my project on another computer. When I transferred it to my work laptop to continue working on it with a USB Drive, it built fine. But when I tried to publish it to my Documents folder, I get the error message below: How can I fix this issue? I am stuck here! Thanks for any help...
  17. C

    Resolved Drag-and-drop Forms for ASP.NET Core?

    I am going to create a cross-platform project for my company. So far, only Windows has this drag-and-drop form builder. As I am trying to make it cross-platform, I don't seem to be able to find this feature for net core projects. Is there such a thing for ASP.NET.core projects?
  18. C

    NullReferenceException when trying to copy DataGridView

    I am trying to get my program in C# to copy and paste a selected row from one DataGridView to another DataGridView. Column 0 is the checkbox cell. The selected rows will be copied into the second DGV. But when I was trying to make this happen, I get NullReferenceException in this line...
  19. C

    Question DataGridViewCheckBoxColumn Rows Unchecked by Default?

    All of the selection rows in a DataGridView are checked, and I'm trying to set them unchecked at startup. This didn't work for me: private void Form1_Load(object sender, EventArgs e) { DataGridViewCheckBoxColumn chkbox = new DataGridViewCheckBoxColumn(); chkbox.HeaderText = "Select"...
  20. C

    System.FormatException with DataViewCheckboxColumn

    So I have tried to let the user copy selected rows from one dataGridView to another one. It ran fine for the normal user name column. But when I changed the user name's column to Checkbox column, I then get this error. My grids are populated from an excel file. Did I missed out something?
Back
Top Bottom