How do I keep .NET 4.6.2 WinForm MenuStrip visible on top of application workspace when using Visual Studio 2019 form designer?
I have inherited some C# source code written in Visual Studio 2010 targeting the .NET 2.0 framework. It comprises a simple Windows Forms application with a single form as its user interface. The form contains a number of menu items, one of which…
Reduce Left Margin / MVC
Hi, How do I reduce the left margin or start after certain length from left?
Properties and events as interfaces
I was working on wrapping the YouTube APIs. I need a way to copy the data between my fields and YouTube's. So, I went to create some standard methods I could call. Pass both sides and which direction to copy. But Google used properties in their…
SelectionRangeChanged and AxisViewChanged do not fire when ZoomReset is called.
(C#) I have a Chart that where the X & Y axis are zoomable. When I Zoom in using the mouse both SelectionRangeChanged and AxisViewChanged are called. However, when either Zoom(Int32, Int32), ZoomReset() or ZoomReset(Int32) are fired neither…
Error in Office 365 (Web) when using System.Diagnostics.Process.Start(@'c:\document.xls') by C#
Good evening! I'm a self-employed C# desktop developer (Visual Studio 2008 Pro and Dot.Net 3.5). I've always used the System.Diagnostics.Process.Start(@'c:\document.xls') resource; to open any application by passing a file that is either on the user's…
How can we fetch the data in the table according to the table name entered in the textbox? (in C# or asp.net)
How can we fetch the data in the table according to the table name entered in the textbox? (in C# or asp.net) E.g: (select * from users) I want to use - textbox.text instead of "users". Like (select * from textbox.text). Thank you in…
Error after upgrading from ASP MVC 5.0 to 5.2.7
Hello, I just recently upgraded MVC to 5.2.7. I installed MVC using Nuget. Upon running my project, I receive the following error: Method not found: 'System.Web.Routing.RouteValueDictionary…
What is more expensive, storing multiple strings, or one large concatanated string?
Hello. Say I have a class, that stores information on a file. You have the path, the name of the file, and the extension. Would it be better to store a string for each of those, like this: public class File { public string path; public string…
How to move a WPF application when DragMove() is not working?
I have a WPF application where I can not move my application according to my mouse movement sometimes it's freeze or shut down. I use fluid layout that means I use Grid.row definition to distribute my Grid space. <Grid.RowDefinitions> …
Unable to run PrintTicket example in .NET 6 console app
I am trying to run the example shown in the Microsoft Windows Desktop 6 System.Printing documentation (URL: https://learn.microsoft.com/en-us/dotnet/api/system.printing.printticket?view=windowsdesktop-6.0) in a .NET 6 console application in Visual Studio…
Compiler error "consume excess memory due to the indexing expression"
Hi, I am trying to construct a Bayesian network that contains 8 parents(which are iKorean, iOthrserv, iMay, dYrsserv, iSept80, iVietnam and iFeb55) pointing to 1 child(which is iRvetserv), and while compiling, I got the error like this: " [1] This…
ClickOnce Update Location as Github
Hi, so I created a simple app versioned 1.0.0.0 and published it to a local path via clickonce and set the update location to a github repository. Now I've made changes to the app and it is now versioned 1.0.0.1. So should I upload the published files of…
Converting VBA to VS 2019 Winform C#; however, the Designer's ToolBox does not list InkPicture
I am in the process of converting a VBA app to Visual Studio WinForm C#; however, the ToolBox InkPicture Control is not listed in the Toolbox. The MS web-site for Tablet PCs lists the steps to add the InkPicture control…
How to avoid to give direct credential in .NET source code
I am developing .NET Application. I have cloud SAP application which contains documents. Using Cloud SAP, i am fetching the data as an xml and storing the data in to MySQL database. for this, i am developing one page code. The question is, i…
OAuth Authentication with TLS 1.2 in WPF Window Application dotnet framework 4.0
WPF Window Application dotnet framework 4.0 used OAuth authentication. used Microsoft.Identity.Client Library to implement OAuth Authentication. When we see logs on azure monitor all users sign in with Legacy TLS(TLS 1.0,1.1,3 DES). We want…
connect python with hololens2 (Unity)
Hi, What is the best way to share data and connect python to unity in realtime mode for hololens2? Is it server and client? Or "Python for unity"? Or any other ideas?
Getting error in implementing form resize in a winform app using krypton toolkit..
I have created a windows form application using Krypton toolkit Krypton which has its controls like combo box, datagridview, buttons etc. I basically want the controls to resize accordingly when the main form is resized so that no control gets hidden or…
Xamarin-Plugins/SimpleAudioPlayer - Error in Code
Hi I want to use a mediaplayer in my Xamarin/C# to mainly play Audio files (mp3/wav). I have installed Xamarin-Plugins/SimpleAudioPlayer into my first Android project. The following is the code for playing an audio file: ISimpleAudioPlayer…
Why isn't the GenerateKey method available for my ECDiffieHellmanCng object?
Documentation for the ECDiffieHellmanCng class shows a GenerateKey() method, but this method is not found/recognized in my project (Visual Studio 2019). Any thoughts on how I can get to this method? Russ
ECDH public key size
I have an ECDiffieHellmanCng(256) object. I expect the public key to be 512 bits - 256 bits for the X value and 256 bits for the Y value - or 64 bytes. When I put the public key into a byte array I end up with 72 bytes. I need to send a 32-byte X…