c# csharp

  1. MonsterMMORPG

    My C# and ASP.NET Core MVC Lecture Videos

    Hello everyone. My name is Furkan Gözükara. I am a Ph.D. computer engineer from Turkey. I have a software engineering dedicated Youtube channel named: SECourses : https://www.youtube.com/SECourses I want to share a few of my lecture playlists. The playlists contain the full course for free...
  2. M

    How to use a ComboBox as a dropdown menu

    I have to show a list of strings (Trial names) that are fetched from a PostgreSQL database. The number of strings is only known at runtime. I have implemented that through a ComboBox as follows: <ComboBox x:Name="TrialDB" Grid.Row="1" Grid.Column="1" MinWidth="100"...
  3. M

    ListBox_Selection_Changed triggered by clearing its content

    When the user changes his/her mind and selects another item (a CT scan) of a ListBox, I need to erase the content of another three ListBoxes. I do that through the following statements: StructSets.ItemsSource = null; StructSets.Items.Clear(); StructSets.Items.Refresh()...
  4. Z

    Question Generic Dictionaries

    Dears, when wrtitng this generic class public static R GetValueFirstItem<T, Q, R>(this Dictionary<T, Q> dict, T key) where Q : IEnumerable<R> { if (!dict.TryGetValue(key, out var r)) return default(R); if (r == null || r.Count() == 0) return default(R); return...
  5. M

    Resolved how to best use "public"read-write properties of event-driven applications

    I am trying to convert a working Console UI application into a WPF one. I use an s/w library from Varian Medical Systems, called Velocity API, whose documentation is scarce and somewhat misleading. Velocity API hardcoded logic is built on context. My Console UI application calls several...
  6. 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.
  7. 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...
  8. 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...
  9. 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)...
  10. 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...
  11. 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...
  12. 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...
  13. 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...
  14. 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.
  15. 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...
  16. 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...
  17. 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...
  18. 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 =...
Top Bottom