4,589 Topics

Member Avatar for
Member Avatar for complete

How do I establish an open connection to an open web browser in C#? In a Microsoft C# program using a Visual Studio Code I am using the following namespaces: using OpenQA.Selenium; using OpenQA.Selenium.Chrome; using OpenQA.Selenium.Support.UI; After I get a string variable, "url", assigned with a URL of a website …

Member Avatar for xivlauncher
2
150
Member Avatar for complete

I want to use C# do to a necessary mass emailing of hundreds of receiving email addresses. I have a gmail account and I believe my message will be better received if it comes from my personal gmail account instead of from one of my website's email accounts. But if …

Member Avatar for vivetool
1
80
Member Avatar for complete

How Do I Package and install a Released compiled version version of my .Net Framework? Do I bundle the contents of the Release folder or just the EXE's and DLL's? Do I need to include the app.config and packages.config? Do I need to create an installer somehow?

Member Avatar for rproffitt
0
26
Member Avatar for complete

Using the Microsoft.SharePoint.Client namespace in a C# code, I am trying to access a SharePoint List but I am getting a 403. Is it because the Microsft List I am trying to access is on a different computer on the internet and the program has to be on the same …

Member Avatar for complete
1
80
Member Avatar for R_4

Hi What is wrong in my this backup code it always not working and gives me an error SqlConnection con = new SqlConnection(@"Data Source=(LocalDB)\MSSQLLocalDB; AttachDbFilename=D:\repos\mysales\WindowsFormsApp4\Database1.mdf; Integrated Security=True; "); string database = con.Database.ToString(); if (textBox1.Text == "") { MessageBox.Show("Please Enter Backup File Location"); } else { string cmd = "BACKUP DATABASE …

Member Avatar for Salem
0
62
Member Avatar for complete

My .NetFramework version does not work with my Microsoft.SharePointClient.dll version. Which vershions should I use? I am trying to add some CSOM functionality to my C# program such that I will be allowed to do CRUD operations on a Microsoft List (aka SharePoint List). Assuming you know what CSOM and …

Member Avatar for rproffitt
0
22
Member Avatar for Olive34

This is not really a question, since I can make it work. It's just something I have not seen before and I think it is odd. I'm writing some unit tests. One test works fine, but when I change a parameter for another test, it gives an error. The parameters …

Member Avatar for Ellsaheranny
1
194
Member Avatar for Nishi_2

The choice of programming language for developing a Ludo game will depend on the specific needs of the project, the skills of the development team, and the target platform. Here are some of the programming languages that can be used for Ludo game development: **C++:** C++ is a high-performance programming …

Member Avatar for m2host
0
840
Member Avatar for Michael_80

In Unity 3D, utilizing the Starter Assets package, I am trying to swap the mesh on the Starter Asset character that I duplicated in the scene. I unpacked a prefab so that I could utilize the mesh filter of the new prefab that I imported. I realized that there are …

1
56
Member Avatar for Rabiya_1

I'm New In c# and want to create a windows service here what I'm trying public TestService() { InitializeComponent(); timeDelay = new System.Timers.Timer(); timeDelay.Elapsed += new System.Timers.ElapsedEventHandler(WorkProcess); } public void WorkProcess(object sender, System.Timers.ElapsedEventArgs e) { string process = "Timer Tick " + count; LogService(process); count++; } protected override void OnStart(string[] …

Member Avatar for rproffitt
0
26
Member Avatar for Mike Askew

There has been a noticeable increase in people asking where to start C# recently. So I have been across a couple of forums and pulled together a list of some useful links and resources. # Web Tutorials # [Home and Learn Tutorial](http://www.homeandlearn.co.uk/csharp/csharp.html) [CodeProject Tutorial P1](http://www.codeproject.com/Articles/219869/Object-Oriented-Programming-in-Csharp-NET) [CodeProject Tutorial P2](http://www.codeproject.com/Articles/222295/Object-Oriented-Programming-in-Csharp-NET-Part-2) [CodeProject Tutorial …

Member Avatar for Shahzad111
17
3K
Member Avatar for abdallah_adiga
Member Avatar for Mohammad_21

Hello I want to print some data that appear in Form. I print some data( image, labels....) then at point y = 415, I will print all rows of datagridview, at here all is right, but when i want to print rows that need more page, i had wrong result, …

Member Avatar for Hossein_7
0
708
Member Avatar for Ahmad_77

I wonder if there is any solution to drop an oracle table trigger using c# windows application project

1
108
Member Avatar for Aya_962

A small airline has just purchased a computer for its new automated reservations system. You have been asked to develop the new system. You’re to write an application to assign seats on each flight of the airline’s only plane (the capacity of the plane is 10 seats of the same …

Member Avatar for pritaeas
0
397
Member Avatar for Onion13

My program worked earlier this year before Windows 10 put and update and suddenly it doesn't work anymore. I have a separate laptop that didn't get the update and it works perfectly. Can someone please tell me what I need to do to get it to work? Ive tried everything …

Member Avatar for Onion13
1
150
Member Avatar for TimTheCoder

I have used Magick.NET to detect all the edges using Canny Edge Detection which basically converts an image to a binary version where the edges are in white and the rest of the image black However I have failed in using the library HoughLine method to detect rectangles or squares …

Member Avatar for rproffitt
0
402
Member Avatar for TimTheCoder

I have tried the following code to reconstruct image without logo by first converting the image to a binary inverse where the logo appears to be white and the rest of the image black then using inpainting function to reconstruct the original image without the logo part. This is for …

Member Avatar for rproffitt
0
90
Member Avatar for Ingmar_1

When I try to install webview2 package from nuget I get this output: Retrieving package 'Microsoft.Web.WebView2 1.0.1418.22' from 'nuget.org'. Adding package 'Microsoft.Web.WebView2.1.0.1418.22' to folder 'C:\Users\pc\Desktop\VS 2015 projects\dbtest\packages' Added package 'Microsoft.Web.WebView2.1.0.1418.22' to folder 'C:\Users\pc\Desktop\VS 2015 projects\dbtest\packages' Install failed. Rolling back... Package 'Microsoft.Web.WebView2.1.0.1418.22' does not exist in project 'webview2' Removing package 'Microsoft.Web.WebView2.1.0.1418.22' …

Member Avatar for rproffitt
0
225
Member Avatar for hapiscrap
Member Avatar for humblepi3

Repo: https://github.com/Charles-CarM/Battleship I am currently building my battleship console application in C#. I have prior experience building projects with Vanilla JS and in React. I went through a tutorial on C# and could grasp most of the concepts pretty well. I have jumped into project building because I know this …

Member Avatar for humblepi3
0
269
Member Avatar for ali_910

I designed each server and client as seperated projects but they both has the classes in same namespaces When I try to deserialize i get this: Unable to find assembly 'RentACar, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.' Here is my class i want to send objects as packets using System; using System.Collections.Generic; using …

Member Avatar for Dani
0
58
Member Avatar for Mighty_2

In C# ArgumentException is an existing class that derives from Exception; you use it when one or more of a method’s arguments do not fall within an expected range. Write the application SwimmingWaterTemperature containing a variable that can hold a temperature expressed in degrees Fahrenheit. Within the class, create a …

Member Avatar for Dani
0
171
Member Avatar for movarth

Hello, I've been programming for at least 5 years now, but I've only done freelance programming projects for pay. I was wondering what to expect from a company position as a software QA tester using C#. What kind of skills are important that aren't immediately obvious, and will it be …

Member Avatar for Helen0909
0
261
Member Avatar for Onion13

Working on a game for a friends daughter for her 6th birthday. Its a scrolling game where the player will be Snoopy and they'll be flying around on his doghouse collecting Woodstock (Which are flying around the screen) for each level (There will be 4 levels). At the end of …

Member Avatar for Onion13
1
236
Member Avatar for mtyide

I need a quick solution that will convert HTML doc to PDF and still maintain the same look and feel with pre-populated data and also maintain links in the PDF doc. Any solutions?

Member Avatar for Dani
0
168
Member Avatar for babar125

Hey guys I managed to get some code what works fine but it uses console application I have tried to convert it by hand and change things around to get it to work but with no avail! I'm certain it should be simple but I may be wrong :( Thanks …

Member Avatar for pritaeas
0
708
Member Avatar for lindonnet

We have a pipeline which builds, tests and outputs some artefacts to nuget. After an initial push of the existing codebase (C#), the tests fail in the pipeline where .ToString() is called on a DateTime object, it returns mm/dd/yyyy rather than the UK format dd/mm/yyyy as per our local developer …

Member Avatar for rproffitt
0
34
Member Avatar for 민성

Picture box picture control is not working using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace WindowsFormsApp3 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } Color a0; Color a1; Color a2; Color a3; private ColorDialog …

Member Avatar for pritaeas
0
61
Member Avatar for TimTheCoder

Hello guys am trying to implement Info Cards using the IInfoCard and IInfoCardFactory and IInfocards interfaces. If you know how to complete the methods of these interfaces to make a program show the forms for the respective categories, then you might just be the guy to help me. I have …

0
71
Member Avatar for TimTheCoder

Hello guys, am trying to access the windows in-built adapter from C# library known as Bluetooth LE (Low Energy). I have installed the nuget package and when I try to run my code, I get the error that **Unhandled exception. System.ArgumentException: [Plugin.BluetoothLE] No platform plugin found. Did you install the …

Member Avatar for rproffitt
0
196
Member Avatar for Realitiez

i'm trying to create a program that calculates Body mass index in a for loop with 5kg gaps. BMI formula is: weight(kg)/height(meters squared) = BMI. How would this work? this is the code i got so far: Console.Write("Write your height in meters: "); double t1 = double.Parse(Console.ReadLine()); Console.Clear(); Console.Write("Write starting …

Member Avatar for Rawand_2
0
2K
Member Avatar for complete

This is using C# coded using Microsoft Visual Studio 2019 Professional I have an XML file used as a configuration in my program that I am coding. The executable reads and writes to the XML file. So I would naturally like to have an automatic process where the XML file …

Member Avatar for pritaeas
0
49
Member Avatar for complete

How do I set a system-wide _ifdef? This is using Microsoft Visual Stuedio version 2019 with C#. If I want to add specialized code to a project shared by multiple software developers that is designed for my selfish tests and evaluation, how do I manage a # definition inside the …

Member Avatar for rproffitt
0
49
Member Avatar for Clif40RD

Hi I have a `.Net Core Blazor` server project and I'm making use of the Repository pattern for data access. Initially, I had registered the repository as a scoped service. While testing I noticed that if I quickly switched pages for e.g. by clicking on the navigation menu, while the …

Member Avatar for rproffitt
0
207
Member Avatar for complete

In a C# solution, how do I add an .EXE project to a solution of DLL project's? This is using Microsoft Visual Studio Professional. I have been handed a solution file which contains three projects. But all three projects generate DLL files. It is kind of unique because I have …

Member Avatar for tinstaafl
0
175
Member Avatar for kim_boto

I have a Datagridview with two columns. First one is Marks of the student and second one is grade. When I enter marks in Datagridview I want the grade column to automatically fill the respective grading system value. Greater than 80 - A Greater than 60 - B Less than …

Member Avatar for rproffitt
0
112
Member Avatar for complete

I am starting a new coding job with a new client. The problem I am having is that a lot of issues with namespaces that can not be found or maybe missing directives or an assembly reference. This, I think, is a common thing. So I am wondering where I …

Member Avatar for rproffitt
0
63
Member Avatar for Adm666

I'm trying to authenticate to Sharepoint site i've made (it has a list with 2 items in it), i need to print its title to the console - really simple approach. with OfficeDevPnp.Core Nuget installed i tried the AppOnly following code: public static void AppOnlyAuthCall() { using (var clientContext = …

Member Avatar for pritaeas
0
70
Member Avatar for TimTheCoder

Am trying to implement face detection using the PCA algorithm in C#,I have a button on my windows forms that is supposed to intitiate the learning process once it is clicked. It should use the images in a folder called training to compute the eigen values and eigen vectors so …

Member Avatar for rproffitt
0
89
Member Avatar for imso

The alarm clock application works by setting a certain time and then it perform a certain task eg:sound an alarm, display a messagebox test message. But the problem comes where i need to snooze(delay) the alarm clock for a certain time period like 10 second... Then it will re-initialise the …

Member Avatar for Konevlad21
-1
1K
Member Avatar for Adm666

i made a little crm app that has the Entities : Contact, Campus, Sub Campus, the contact has lookup fields for campus and sub campus. (each sub campus is related to only one campus) im supposed to make a plugin in C# that on contact creation it fills the campus …

Member Avatar for rproffitt
0
156
Member Avatar for nalb4242

Hello , mu website objective is to some kind of reposrts the problem when i retrive for example the people in my dtabase under specific age the grid view does not show me all of them i have googled this problem and i found that it can not retrive more …

Member Avatar for pritaeas
0
36
Member Avatar for nalb4242

Hello , i am creating new website using asp net and c# .. what i am basically doing is that i have somedata in my database and will let the user show them in report based on what he is gonna choose to display for example i have in my …

1
95
Member Avatar for kamilacbe

Hi, I'm trying to desirealise the json data from a external file where i want to read the key and fetch another dictionary value based on key please letme know if i can read dictionary inside dictionary , I have tried using DIctionary<string,object> where as am looking for Dictionary <string,Dictionary<string,string>> …

Member Avatar for pritaeas
0
117
Member Avatar for Onion13

Making a scrolling space shooting video game in C# where the player will fight one on one with their opponent. I was able to figure out how to make the missile go up if the opponent was above the player. But, I can't seem to make it work if the …

Member Avatar for tinstaafl
1
285
Member Avatar for Catharina

Hi. I have a question. So, I'm registering a user, but a table is created for me (empty), and I can't figure out how to save my data when registering in the database? I tried to write various functions, but I failed. Below I send the code: Users.cs: using Microsoft.AspNetCore.Mvc; …

Member Avatar for rproffitt
0
90
Member Avatar for Prudence_1

1.2 Convert the following classes to valid C# classes: SemiDiode + ForwardV {get; set; }: Double +ReverseV (get; set; }: Double +BreakdownV {get, set; }: Double + Semi Diode) + SemiDiode(forwardV: Double, reverseV: Double, breakdownV: Double) +ToString(): String Laser LED wavelength: Int32 -color: String +Wavelength {get; set; } : Int32 …

Member Avatar for Schol-R-LEA
0
999
Member Avatar for Catharina

How can I save the registration data after connecting to the database (an empty table is created for me)? I do this in Blazor (C #). User.cs: [Table("Users")] public class User { [Display(AutoGenerateField = false)] public int UserId { get; set; } [Display(Name = "UserName")] [Required(ErrorMessage = "UserName is required.")] …

0
87
Member Avatar for Onion13

I kind of figured out how to put a pause in my 2d game when the player shoots. The problem is that when the player shoots once, the game will continue to shoot continously, even after the player has stopped shooting. Can someone please help me? void Bullet()//draws the players …

Member Avatar for Onion13
0
203

The End.