windows forms
67 TopicsConfigure registry permissions
Hi I have strange problem to set specific permission to a registry key. According to Microsoft's https://learn.microsoft.com/en-us/dotnet/api/system.security.accesscontrol.registrysecurity?view=net-10.0, it should work like this: private static RegistryKey CreateRegistryKey(RegistryKey parentPath) { RegistryKey childKey = parentPath.CreateSubKey("myKey"); RegistryAccessRule rule = new RegistryAccessRule( new SecurityIdentifier(WellKnownSidType.AuthenticatedUserSid, null), RegistryRights.ReadKey | RegistryRights.Delete, InheritanceFlags.ContainerInherit, PropagationFlags.None, AccessControlType.Allow); RegistrySecurity childACL = childKey.GetAccessControl(); childACL.AddAccessRule(rule); ShowSecurity(childACL); childKey.SetAccessControl(childACL); return childKey; } But if the code is executed in a windows service, I missing my permission!? How can this be? Am I doing something wrong? Have I overlooked something?11Views0likes0Comments.NET
Hi everyone! 👋 I’m new to this community and currently learning .NET App Development. I’m really excited to join and connect with developers here. I believe the discussions and knowledge shared in this community are very valuable, especially for beginners like me. I’m looking forward to learning from your experiences and improving my development skills. If you have any tips, recommended resources, or advice for someone starting with .NET, I would really appreciate it. Happy to be part of this community! 😊49Views2likes0CommentsWindows Forms user control layout issues at runtime
I'm hoping the good folls of this community can help me figure out what's going on with a Windows Forms user control that I created and am trying to use. I created a user control that represents a single band of a parametric equalizer. In the designer, the control looks like this: When I debug the control in the Test Container, things look good: If we take a look at the actual PEQ application that will use the control, things still look OK in the designer: It's only when I fire up the application that things go... awry: What happened to all the TextBoxes? And the ComboBoxes? I''ve got a feeling that the fix for this is something really simple, and I'm going to feel like a complete idiot for not figuring out the obvious. Can anyone tell me what my dumb self did wrong?63Views0likes0CommentsVersioning my Maui Android App
Previously the way to define version code for Android in Maui .csproj file was like this: <!-- Versions --> <ApplicationVersion>3.1.2</ApplicationVersion> <AndroidVersionCode>3</AndroidVersionCode> With the new release of Visual Studio Preview, this has changed to: <ApplicationVersion>3</ApplicationVersion> It works, from Visual Studio, I can bundle a new .aab package (see image below). We see the version code is defined to 3. Unfortunately the version is defined to 1.0.0 and I don't know how to change this. ...when imported on the Google Play Console, it look like this: Unfortunately, when imported I only see the versionCode 3 (which is defined in the .csproj file as ApplicationVersion). What about the versionName (in parentheses) ? Nothing is planned in the .csproj file ? When imported on the Google Play Console, I don't want to have 3 (1.0.0) but I want 3 (3.1.2)... https://developer.android.com/studio/publish/versioning versionCode — A positive integer used as an internal version number. versionName — A string used as the version number shown to users.27KViews0likes8CommentsGraph API getAsync() in C#
This is cross posted in Azure as well. If I use graph in a console application I get the information that I request. Such as test = await graphClient.Users.GetAsync(); If I try this in a WebMethod in the code behind of a page or in an .asmx, it never returns with the data. I know this has been mentioned before in many forums, but I did not have issues in V1.0 of the SDK. When I try to use V5+ I can't seem to get the information back. Any ideas on overcoming the issue? Any help would be great.97Views0likes0CommentsA strange run issue
I encountered a strange operational issue. After packaging my software in. msixbundle format, I installed and tested it locally. When clicking on the program icon in the start menu, an error occurred and a DLL could not be found. However, after confirmation, the main interface of the program can be opened. In fact, this DLL and the program's exe are in the same directory. But in the program files \ windows app \ myapp directory, clicking on this exe will allow the program to execute normally. My program is a. NET 8 winform program. How should I do?57Views0likes0CommentsHow can I find CPE of dll in .NET?
For example, System.IO.Packaging 8.0.0 hav weakness. https://www.nuget.org/packages/System.IO.Packaging/8.0.0 I have Vulnerability Management tool, I can receive notice of the weakness by registering CPE. I want to obtain CPE of System.IO.Packaging, but where is it available from? Thanks97Views0likes0CommentsEnviar archivo PDF a contacto de WhattsApp con C Sharp.
Hola, una consulta, tengo desarrollada una aplicación de escritorio Windows Forms con C Sharp y me están requiriendo que desde la misma se pueda enviar documentos PDF a contactos de WhttsApp. Estuve buscando información en la web, pero no encontré información certera. Desde ya muchas gracias. Saludos.123Views0likes0Comments