c# csharp

  1. A

    Question How does mvc application get the cookies from the client ?

    I have question and i don't have answer for it my question is How does mvc application get the cookies from the client ? which of the following is correct 1-cookies are sent in each request to the server 2-the server send the request to the client and ask the client to send cookies...
  2. RajeshKumar

    Resolved How to use RadzenRequiredValidator to validate a RadzenDropDown?

    I have one ParentComponent and one ChildComponent. The ChildComponent contain RadzenDropDown is not validating when click on submit button from ParentComponent . ParentComponent.razor: <RadzenTemplateForm TItem="ProductModel" Submit="OnValidSubmit" Data=@model> <DataAnnotationsValidator />...
  3. A

    Question What telement mean here and when it use it?

    I work on .net core 6 vs 2022 i see function have telement but i don't know what this mean can you show me please ? and when use it are there are any thing best from using telement or more general What I have tried: public List<TElement> SQLQuery<TElement>(string sql, string...
  4. karcs

    Resolved How do i cast a string type to a class type ?

    here is the ERROR MESSAGE:- Unable to cast object of type 'System.String' to type 'query' public static Xxl.Query QueryBySize(string SizeNo) { Query result = new Query(); result.SizeInfo.SizeCode = "Xxl"; Xxl.Query result1 = new Xxl.Query()...
  5. 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...
  6. 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"...
  7. 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()...
  8. 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...
  9. 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...
  10. 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.
  11. 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...
  12. 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...
  13. 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)...
  14. 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...
  15. 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...
  16. 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...
  17. 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...
  18. 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.
  19. 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...
  20. 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...
Top Bottom