c# .net

  1. Tom Peric

    Question How to Schedule a Job which Running Monthly once to Pump sql server table data to Oracle Table Data

    Hello Everyone, I need to create a job(.Net Framework console project) which needs to run monthly once to insert data from sql server table to oracle source table(which needs to insert every month records into the oracle table) Can someone please let me know any reference to do this kind of...
  2. N

    excel extension issue

    I have a code similar to this below C#Copy using(webclient wc = new WebClient()) { string fileinfoname = "test_one"; string pathinfo = @"C:\testfolderinfo" + fileinfoname + ".xlsx"; wc.downloadFile("www.testurl.com/report", pathinfo); } I am currently experiencing a situation where the file...
  3. J

    Resolved concatenated in C#

    Hello guys, I have a code where I get the registry subKey and I have assigned the value to a variable named subKey (this value came from wmic process and the final data came without {}) but I need to add {} and the beginning and end of this value in order to get the information that I need. The...
  4. ypd11

    How can I have access to System32 directory to copy files?

    I'm developing a WinForms app and I need to gain access to the system32 folder in Windows but when the app tries to writes some files there it throws the Access denied exception. Do any one of you guys have a solution for this issue? Or is there even a solution?
  5. Programmable Physics

    Search Button that is using Stored Procedure is not listing a specific record

    I am using Northwind database in Sql Server. I am using Stored Procedure to connect Visual Studio with Sql Server and draw data from database. In CRUD operations, I am tring to write a SEARCH button that is using Stored Procedure. Other CRUD buttons are working okay. Search button is not...
  6. Programmable Physics

    WinForms : adding a form1 object as a parameter of radiobutton event causes error in the Designer

    Here are the code snippeds, form1.cs: And, here is the Designer ERROR : If I pass a form object as an parameter into a normal method argument, it works fine this way, no designer & eventhandler error occurs. However if I use events like RadioButton Checked Changed, then I get this EVENT...
  7. D

    Question How do I get the namespace of my .NET 7 application

    I asked this on SO and got skewered. I love SO for the answers, but asking a question is fraught with peril. I'm new here, but I'm hopeful y'all will be more forgiving and helpful. if I: dotnet new console -f netcoreapp3.1 -n four add to Program.cs Console.WriteLine("Namespace: {0}"...
  8. Programmable Physics

    Question How to remove/delete a string that has been just entered by a user and read by console from Console Interface Screen?

    I want to delete a user input if a condition is not met, and keep the Console interface same and intact without using Console.Clear() or goto menu; I want to delete whatever was entered by the user if a condition is not met. How can I do that? If I use Console.Clear() or goto menu; the same...
  9. manaxarage

    I ask for advice where to download a book on c # for beginners from scratch?

    or if there is a site where you can order such a book in Ukraine
  10. J

    Question How can I get a valid stream from a zip file which contains xml?

    Hi Gents, I have a specific requirement is to get a valid stream(which will be further operate) from given zip path? The situation is use a support code snippet to determine given path is xml/zip file(one of these files inside zip is xml which what I want), if it's a xml then easily get a...
  11. Programmable Physics

    Question Simple Snake Game - Snake Head is not moving after ReadKey()

    The snake head ```0``` does not move anywhere when ```Console.ReadKey()``` happens. Here is the full code: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SimpleSnakeGame_ConsoleApp { internal class Program {...
  12. Programmable Physics

    Basic use of Linklabel tool in winforms gives Exception Handling Error

    This simple code gives Exception Handling Error: 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...
  13. uzeren

    C# timer

    Hello, I'm doing a windows form project, in this project, when I subtract the entry date from the end date, I reflect the result to a column named remaining usage. What I want in the database is that this remaining usage decreases by 1 every 24 hours
  14. W

    Question System.IndexOutOfRangeException

    Hello, I am trying to write a method, that checks if a string is isomorphic and returns true or false. In line 10 in the code posted below, I get a System.OutOfRangeException and I just can't figure out what I am doing false. public static bool IsIsomorphic(string s, string t) {...
  15. P

    Question Use Multiple Type in Generic T C#

    0 I have this interface base repo with genric type T: public interface IRepositoryBase<T> where T : class { void Add(T obj); } and this interfaces heritance from the IRepositoryBase public interface IClass1Repository : IRepositoryBase<Class1> { } public interface IClass2Repository ...
  16. Phani_2204

    Question Push notification using firebase?

    We have created an app which captures error logs. API's help us do that but when the error is created user must be notified. Can you help us? Source code:- GitHub - ranadeepmedagone/LogApp
  17. Tony21

    IIS doesn't load grid JS

    I have my project worked on asp.net mvc i am using jqxGrid but when i publish my project on IIS the grid does not load the data. in my js grid i use URL with parameters. as i have googled i must convert the URL to @url.action, but i don't know how to convert my URL because it has parameters...
  18. X

    Question why do i get Error: Concurrency violation: the UpdateCommand affected 0 of the expected 1 records

    I save the changes in the database by clicking on the button, here is the code itself: else if (comboBox1.SelectedItem == "Работа") { label3.Text = "Работа"; string script = "SELECT id, name, Model_preparation_R_Hr, Time_for_preparation_hr, Time_for_post_processing_hr, YZV_work FROM rabota;"...
  19. G

    c# developer needed

    I'm looking for someone who has a bit of experience with sockets to create a simple server that connects to the client using tcp (the client is already finished), so what you'll have to do is : analyze the client, see what packets it sends over and receive and based on that create the server
  20. M

    Question Summary of all numbers List<>

    Hello, I am new here. I am looking for help / hints. I have code to write that counts articles. After entering the code starting with A, do not count the tax, for B it is 8%, for the other codes 23% of the tax (I already have it), but I have a problem summing up these amounts, and the...
Back
Top Bottom