C# Dictionary hex, bin
Hello, Code: HEX: FF70000000000000000000000 BIN: 1111 1111 0111 -> sample pos 8 is bad Dez: I am looking for a way where I can convert a hex value to a dictionary with 0 or 1. What is the best way to do this? Dictionary…
Adding a Drop Shadow to Panel
WINFORMS C# Visual Studio 2017 I have a movable panel that will contain other controls. I wanted to add a DropShadow effect to the panel to make it look good, so I used the following code: private DevExpress.Utils.FormShadow.PopupFormShadow…
Namespace error with nuget package
Hi, I have used nuget to add a package to visual studio community (Version 16.9.0 preview 2.0), in a C# Blazor web assembly project. The nuGet add seems to work fine, and the package shows up in the dependencies for the project in the solution explorer…
How to write DateTimePicker in SQL WHERE statement?
Take below code for example, how to write correct syntax for sqlDelete? Secondly, AppointmentDate could be Date only (without time), how to make sure comparing Date only (not comparing Time)? Otherwise, data type may be mismatched, so convert both of…
SQL query fails for Access 2016 x64 redistributable
Hi All, We have upgraded from access 2010 x64 redistributable to 2016 x64 distributable. After installing 2016 redistributable, SQL query execution fails for access db. It works when SQL Native client 2012 is installed. However as native client is…
Secure SSL Stream.read ...throws System.IO.IOException: The decryption operation failed (System.ComponentModel.Win32Exception: The specified data could not be decrypted)
we are using the SSL Stream Read to receive bytes of the files from the remote machine using TCP port .we have authentication done with X509Certificate2 certifcate for the file transfer from one machine to another. In call back of the tcplistener,…
How to fire a event in usercontrol from main form
i am adding usercontrol onto main form in loop. now how can i fire event in user controls from main form. is it possible. if yes then please discuss with a example code. thanks
.NET Winforms Combobox databinding with ComboBoxStyle.DropDownList
I'm running into a weird issue with databinding the Text property of a combobox to a string property of a custom object. I was able to successfully bind the data when the DropDownStyle was ComboBoxStyle.DropDown. However, I need a read only combobox so I…
Any function of Generic List of Anonymous
Hey folks , I need to do this but List is not considering the Anonymous type !! any idea how i can do this ? List<object> foo = new List<object>(); var bar = new { coder= "",designer=""}; …
HTTPS server setup
We have C# WPF application built on .Net Framework 4.5. We want to transfer a file to another device using the HTTPS protocol. We will have to upload the file to a server that is HTTPS enabled. I read a few articles and found that this can be achieved by…
ASP.NET Framework Returning Large Response
I have an ASP.NET framework web application that processes documents and returns it in a template contract. It works fine for most file, but if the processed file is large, the response is too large to return. This is what we are returning: public…
What's the practical purpose of using constraint of class on the Repository Pattern
The primary issue I am facing with Repository Pattern as explained in the below tutorial article is the use of the constraint. This seems to work perfect for small projects, however on larger projects this is causing a headache. For example: Lets…
Set active audio endpoint
I want to set the active audio endpoint/output device, in the best case process-/application-specific. I know roughly how to read out the endpoints using: EnumAudioEndpoints MMDeviceEnumerator ManagementObjectSearcher (SELECT * FROM…
Microsoft .NET Framework
Hi All After run my project exe display Error: Best Regards.
Toast Notification app
Hi, I would like to develop an app for toast notifications. On the web, there are many toast notifications template, but my intentions are to create those toast notifications using a form, so that a non-programmer users, can fill this form and send…
C# language, Encryption and decryption
C # language, Is there an encryption algorithm that can increase the length of plaintext as well as the length of ciphertext, For example: plaintext 16 bits, ciphertext 32 bits, plaintext 17 bits, ciphertext 34 bits The following is my example, but…
C#.Net error how do I interpret it
I get this error below ,I am not sure how to interpret it . Any help would be appreciated. Server Error in '/' Application. Sequence contains no elements Description: An unhandled exception occurred during the execution of the current web request.…
Form uygulamsında dosya veya uygulama buldur(t)ma
Merhabalar. Oluşturduğum form uygulaması üzerinden yine kendi kodladığım bir uygulamayı yol belirtmeden açtırmak istiyorum. Kısacası yolunu bilmediğim uygulamanın yolunu buldurup o uygulamayı aç-tır-mak istiyorum. Teşekkür ederim.
ToolTip show doesn't work in dialog for a pictureBox
Hello, I'm trying to set the tooltip with an autopopupdelay of 5000 and reshowdelay of 0 (for showing it permanently as long as the cursor is on the pictureBox). .Net 4 I can use the ToolTip.SetToolTip but when i use the show method…
Struct list
All, Firstly people may realise that I posted a similar question here https://learn.microsoft.com/en-us/answers/questions/223984/struct-inheritence.html As far as I can work out this is a separate issue. If it's the same issue then I've made a mistake.…