csharp

  1. F

    Question Parallel class to modify flickrviewer app

    You are asked to use Parallel class to modify FlickrViewer app by adding image resizing functionality. More specifically, resize found image(s) and save these resized image locally. You can find the details about how to resize the image from Basic Image Manipulation in C# Here is the link to...
  2. Duvyanshu

    Answered Why am I unable to locate font files(.ttf) in unity android game in persistentDataPath?

    Can somebody guide me in the right direction? My android game that I made on unity 2018.4.9 using C# on VS 2017 is unable to detect files at persistent data path. The two font files are located in the persistent data path directory. This is a screenshot of app persistent data folder. This is...
  3. T

    Debug-Only Code Without Duplication

    I'm trying to write something similar to the existing Debug class that allows clients to explicitly verify pre- and post-conditions of their methods. For example, to check a precondition that the input variable to a method is not equal to 0, one would use Expects.IsGreaterThan(input, 0), and...
  4. D

    Tip Free Tool for learning C# concepts and vocabulary

    I’ve uploaded an Excel workbook of mine to Google Drive that serves a couple of purposes that I believe you'll find useful. 1. It currently lists 726 terms that have some correlation to C#. It's a glossary of sorts with embedded links that lead you to that specific term. It covers all the C#...
  5. J

    Azure SDK for .NET: Story about a Difficult Error Search

    When the PVS-Studio team decided to search for errors in the Azure SDK for .NET project, they were pleasantly surprised by its size. “Three and a half million lines of code,” they kept saying, studying the project’s statistics. There might be so many findings. Alas and alack! The project turned...
  6. D

    Is anyone here using C# for Data Analysis?

    Hello, I was wondering if anyone here using C#/.NET for data analysis ? i would like to hear their best practices. I know there are some more popular (or better?) options like Python or R out there but i would like to use C# to improve my knowledge on that more instead of learning something...
  7. smokereaper98

    unity slide to resize square

    lets say i have a square 2x2. when i slide my finger upwards i want it to get bigger in the Y axes and smaller in the x axes..and when i slide my finger down i want it to get smaller in Y and bigger in X. i have some code but i dont like how it works. can someone help me to create something better?
  8. S

    Why Core CLR doesn't have C# sources?

    Hello all! Why not Core CLR fully implemented in C#?
  9. A

    How to solve problem of msvsmon.exe .net debug ?

    I work on asp.net core 2.2 I make project with asp.net core 2.2 connected to SQL server 2014 . I already install remote debugger tool on server I also install visual studio on server 2017 when make remote debug on server I get error unable to connect to Microsoft visual studio remote...
  10. A

    Question Cannot modify function GetSelectStatement to generate select statement from string json?

    I work on csharp and i need to generate select statement based on inner join select statement but i cannot modify it I need to get fields and keys and table to generate inner join select statement as below : select FooterTable.ItemCode,FooterTable.Quantity,FooterTable.UniPrice from MasterTable...
  11. A

    Question How to Generate json string for function FillGrids ?

    I have windows form functions FillGrids and i need to convert to json format string private static void FillGrids(Control.ControlCollection Controls, xForm frm) { foreach (Control co in Controls) { if (co is xDataGrid &&...
  12. JagpalS

    Abstraction Vs Encapsulation

    I very confused in Abstraction Vs Encapsulation, every explains theoretically different, but i am looking something more practical explanation. As per my understanding if i am creating a method so whatever code i write inside it ,its called encapsulation and if i declare it as private or public...
  13. A

    Question When Success Valid Access Token Not Return Result And Return Invalid ?

    I validate token using middle ware in asp.net core 2.2 in case of access token not valid return message not valid and this case work perfect problem come when valid token success the problem is next request no give me result of action executed so that what i do for that working problem is when...
  14. S

    Question I want my WPF program uses user's cookie

    so basically I want my 3rd party program (which will be created using c# on WPF) be an interface between the user and that site. Using WebBrowser class I wanna load the login page and after the user logged in(and passed CAPTCHA), he/she will fill some fields in the program, and the program will...
  15. N

    Question error: System.FormatException: 'Input string was not in a correct format

    I am getting a error when trying to create a Form that will randomly display 3 values of 3 Dice for 2 players and will compare the numbers and displays who won. The is running great but it started show me an error after I put the IF statement. The code runs but it returns the error when I click...
  16. A

    what i write inside loop to display similar item code on datagridview and insert diff

    Problem what i write inside loop to display similar item code on datagridview and insert different itemcode on database sql serverSQL Server Database(2014) Items Table ItemCode(pk) ItemName 001 mouse 002 keyboard 003...
  17. C

    Question BackgroundWorker. How do I display the current process by navigating through the Tree

    Scenario_1. 1. The user. Presses the "Start" button; 2. The program. Creates an instance of the user element "ucBackgroundWorker" in "flowLayoutPanel1"; 3. The program. Creates a node in the "treeView1"; "Scenario_1" can be repeated an unlimited number of times. Scenario_2. There are: - Several...
  18. C

    Question BackgroundWorker. Multithreading. How do I run multiple forms?

    There is - the main form is "Main.cs". - form with "progressBar" - "progressBar.cs" Scenario: User. The form is "Main.cs". Presses the "Start" button three times. Program. Opens three forms of "progressBar.cs" How to make the data from the progress percentage "progressBar" get in real...
  19. H

    Question Start in learn WPF and I have a little problem...

    I have read this book https://www.tutorialspoint.com/wpf/wpf_tutorial.pdf and on page 22,23 this code example do not run.... and Am I missing? UserControl1.xaml using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using...
  20. P

    Question The SMTP server requires a secure connection or the client was not authenticated. Th

    Dear Friends, I am trying to send email through gmail.Getting error "The SMTP server requires a secure connection or the client was not authenticated.The server response was: 5.5.1 Authentication Required". try { SmtpClient clientSMTP = new...
Top Bottom