c# csharp

  1. Z

    Force implement virtual methods

    Dears, I have a base class with 2 virtual methods. How can I force a child class inherited from the base class to override one of these two virtual methods.
  2. Z

    IEnumerable Vs List

    public interface ITest { } public class Test : ITest { } public void get() { IEnumerable<ITest> test1 = new List<Test>(); List<ITest> test11 = new List<Test>(); } writing this code line "IEnumerable<ITest> test1 = new List<Test>();" this...
  3. A

    How to detect when client delete license file desktop app ?

    I working on desktop application windows desktop made by csharp I make license file have period of license as 30 day and start date and computer mac address my issue is clients delete license file so desktop app start as first day after delete this file so how to prevent users from delete...
  4. dv2020

    Resolved Datagridview Lookup value from one cell in specific column and display in another?

    Hi All, Trying to adjust my code to a) When a user selects a value from the combo box in the data grid, it copies a value from a different column into another b) When the data grid refreshes, looks up each value and copies the look up values from a different column into another (for each row)...
  5. Budhikakgsl

    How to Plot All the data Points Real Time

    I want to plot all the data points, I get from the TCP server. But I could not figure out a way to plot all the data points. Instead currently I print the string to the text box. From the text box only the first line is printed. This is a real time data plotting for an oscilloscope GUI. How can...
  6. Kamen

    Resolved How to get client's IP address and port in UDP Echo server?

    Hello, everyone. I have some problems in customizing UDP Echo server. https://chronoxor.github.io/CSharpServer/ I'm following this guide now. I want to get client's IP address and port in OnReceived function of UDP Echo Server. this function has UDPEndpoint param named 'endpoint'. I think I can...
  7. rog_rickert

    Object array question

    hello, I'm still pretty new to C# and teaching myself. I've searched around and haven't found an answer, so I'm wondering if anyone can let me know if this is possible. I need to have multiple instances of an object that can be accessed by multiple forms. I know I can do this with static...
  8. jag250

    Question for each loop with radio button list

    I am having trouble with the for each loop I need it to print into my label saying how many courses when I add courses to a radio button list. Any idea on how to fix this or make it execute? needs to be in a for each loop. Also if anyone has any notes on theses loops that would be great! Thank...
  9. A

    saving many gameobjects in unity

    Hello i am new to coding and i need help from someone more experienced. I have to save 10 000 gameobjects and their boolean values at the time. I havent actually saved anything before except something in playerprefs and i dont think that is proper way of saving all things.
  10. The Techie

    export datagridview using office.word.interop.dll instead of Spire.Doc.dll ?

    How to implement the logic of the below code using Microsoft.Office.Interop.Word.dll? Now iam using third party dll(Spire.Doc.dll), instead of Spire.Doc.dll i want to use Microsoft.Office.Interop.Word.dll . Please help me to implement this logic using office word dll. Thank you using...
  11. A

    Question when implement sqlclr function i get error on sql server 2012?

    Problem I work on SQL server 2012 windows 7 when implement clr function i get error Msg 6522, Level 16, State 1, Line 1 A .NET Framework error occurred during execution of user-defined routine or aggregate "spExecuteParallel": System.NullReferenceException: Object reference not set to an...
  12. asmodi

    Question PDF with formfield

    Hello everybody, I am fairly new in programming with C#. I did some Java, Javascript and php before though. I have a searchable PDF with a whole lot of formfields. Every formfield has an ID. Let's say we don't know the names of the ID we just know they have an ID. What I want to do is to loop...
  13. S

    Question Cross-Site Scripting: Reflected flagged

    The following codes are flagged out in my cs file by Fortify even after I have added the AntiXss. May I know how do I resolve this? protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { lblMessage.Text = txtEmail.Text =...
Back
Top Bottom