C
C#15mo ago
gamer50082

✅ winform not working

not working at all only can open
11 Replies
gamer50082
gamer5008215mo ago
private void dircreate_Click(object sender, EventArgs e)
{
// Get the path to the current user's desktop
string desktopPath = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);


// Create the necessary directories
string scriptsPath = Path.Combine(desktopPath, "scripts");
Directory.CreateDirectory(scriptsPath);


string bloxdPath = Path.Combine(scriptsPath, "bloxd.io");
Directory.CreateDirectory(bloxdPath);


string staticPath = Path.Combine(bloxdPath, "static");
Directory.CreateDirectory(staticPath);

string jsPath = Path.Combine(bloxdPath, "js");
Directory.CreateDirectory(jsPath);
}
private void dircreate_Click(object sender, EventArgs e)
{
// Get the path to the current user's desktop
string desktopPath = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);


// Create the necessary directories
string scriptsPath = Path.Combine(desktopPath, "scripts");
Directory.CreateDirectory(scriptsPath);


string bloxdPath = Path.Combine(scriptsPath, "bloxd.io");
Directory.CreateDirectory(bloxdPath);


string staticPath = Path.Combine(bloxdPath, "static");
Directory.CreateDirectory(staticPath);

string jsPath = Path.Combine(bloxdPath, "js");
Directory.CreateDirectory(jsPath);
}
Anchy
Anchy15mo ago
what isnt working exactly what is expected output, what is current output what are you observing
gamer50082
gamer5008215mo ago
no output
Anchy
Anchy15mo ago
do you have the required permissions
gamer50082
gamer5008215mo ago
what permission its a .msi installer after that i open to client and click on the button how to give perms u mean
using System;
using System.IO;
using System.Windows.Forms;
using System;
using System.IO;
using System.Windows.Forms;
Anchy
Anchy15mo ago
folder / user permissions
gamer50082
gamer5008215mo ago
?
Anchy
Anchy15mo ago
start with admin and see if it works
gamer50082
gamer5008215mo ago
doesnt work still
MODiX
MODiX15mo ago
Sorry @BITS_gamer50082 your message contained blocked content and has been removed!
gamer50082
gamer5008215mo ago
bruh
private void Discord_Click(object sender, EventArgs e)
{
string url = "url"; // Replace with Discord URL
System.Diagnostics.Process.Start(url);
}
private void Discord_Click(object sender, EventArgs e)
{
string url = "url"; // Replace with Discord URL
System.Diagnostics.Process.Start(url);
}
//discord redirect
private void OpenUrl(string url)
{
Process.Start(url);
MessageBox.Show("Discord Opened");
}

private void Discord_Click(object sender, EventArgs e)
{
string url = "https://discord.gg/"; // Replace with Discord URL
OpenUrl(url);
}
//discord redirect
private void OpenUrl(string url)
{
Process.Start(url);
MessageBox.Show("Discord Opened");
}

private void Discord_Click(object sender, EventArgs e)
{
string url = "https://discord.gg/"; // Replace with Discord URL
OpenUrl(url);
}
nothing happens
//create directories
private void dircreate_Click(object sender, EventArgs e)
{
// Get the path to the current user's desktop
string desktopPath = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);


// Create the necessary directories
string scriptsPath = Path.Combine(desktopPath, "scripts");
Directory.CreateDirectory(scriptsPath);


string bloxdPath = Path.Combine(scriptsPath, "bloxd.io");
Directory.CreateDirectory(bloxdPath);


string staticPath = Path.Combine(bloxdPath, "static");
Directory.CreateDirectory(staticPath);

string jsPath = Path.Combine(bloxdPath, "js");
Directory.CreateDirectory(jsPath);

MessageBox.Show("Directories Created");
}
//create directories
private void dircreate_Click(object sender, EventArgs e)
{
// Get the path to the current user's desktop
string desktopPath = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);


// Create the necessary directories
string scriptsPath = Path.Combine(desktopPath, "scripts");
Directory.CreateDirectory(scriptsPath);


string bloxdPath = Path.Combine(scriptsPath, "bloxd.io");
Directory.CreateDirectory(bloxdPath);


string staticPath = Path.Combine(bloxdPath, "static");
Directory.CreateDirectory(staticPath);

string jsPath = Path.Combine(bloxdPath, "js");
Directory.CreateDirectory(jsPath);

MessageBox.Show("Directories Created");
}
nothing happens to i already build it can open but button doesnt trigger any event or do the stuff as intendeed