coder mike
coder mike
Explore posts from servers
CC#
Created by coder mike on 1/23/2025 in #help
✅ Looking for a Windows Desktop Software Developer
Hello everyone, I am looking for a partner of sorts. I am looking for someone to not only share project ideas with, but to learn with and grow with as a Windows Desktop software developer. I currently develop Windows Desktop software applications using Visual Studio 2022 Community and C# with the .Net 8.0 Framework, but any version of the .Net framework is fine with me. I am hoping to connect with any likeminded individual that is interested in learning and growing, not only in C# software development, but Desktop software development of any kind (preferrably C++, C#, VB.Net, Python, or Java). I have been learning C# Desktop Development off and on since 2013, and continue to grow and learn more each time I begin working on a project. If you are interested in being a buddy that is interested in growing in the Desktop software development field for Windows, then please shoot me a DM!
9 replies
PDProgram Dream
Created by coder mike on 1/23/2025 in #💬┃forum
Looking for a Desktop Developer
Hello everyone, I am looking for a partner of sorts. I am looking for someone to not only share project ideas with, but to learn with and grow with as a Windows Desktop software developer. I currently develop Windows Desktop software applications using Visual Studio 2022 Community and C# with the .Net 8.0 Framework, but any version of the .Net framework is fine with me. I am hoping to connect with any likeminded individual that is interested in learning and growing, not only in C# software development, but Desktop software development of any kind (preferrably C++, C#, VB.Net, Python, or Java). I have been learning C# Desktop Development off and on since 2013, and continue to grow and learn more each time I begin working on a project. If you are interested in being a buddy that is interested in growing in the Desktop software development field for Windows, then please shoot me a DM!
1 replies
CC#
Created by coder mike on 3/24/2024 in #help
Starting Project with Windows and Minimizing to System Tray
I would like to start my program with Windows and then minimize my program to the system tray using the C# WinForms .Net Framework. I am using the below code to start the project with Windows, but it does not open my project, it only starts it in the Task Manager. Am I doing something wrong?
private void SetStartup2()
{
try
{
string keys =
@"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run";
string value = "CopyThat";

if (startWithWindowsCheckBox.Checked)
{
if (Registry.GetValue(keys, value, null) == null)
{
// if key doesn't exist
using (RegistryKey key =
Registry.CurrentUser.OpenSubKey
("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true))
{
key.SetValue("CopyThat", (Application.ExecutablePath));
key.Dispose();
key.Flush();
}
}
}
else
{
if (Registry.GetValue(keys, value, null) != null)
{
// if key doesn't exist
using (RegistryKey key =
Registry.CurrentUser.OpenSubKey
("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true))
{
key.DeleteValue("CopyThat", false);
key.Dispose();
key.Flush();
}
}
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
private void SetStartup2()
{
try
{
string keys =
@"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run";
string value = "CopyThat";

if (startWithWindowsCheckBox.Checked)
{
if (Registry.GetValue(keys, value, null) == null)
{
// if key doesn't exist
using (RegistryKey key =
Registry.CurrentUser.OpenSubKey
("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true))
{
key.SetValue("CopyThat", (Application.ExecutablePath));
key.Dispose();
key.Flush();
}
}
}
else
{
if (Registry.GetValue(keys, value, null) != null)
{
// if key doesn't exist
using (RegistryKey key =
Registry.CurrentUser.OpenSubKey
("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true))
{
key.DeleteValue("CopyThat", false);
key.Dispose();
key.Flush();
}
}
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
4 replies