C
C#2y ago
gamer50082

✅ winform not working

not working at all only can open
11 Replies
gamer50082
gamer50082OP2y 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
Anchy2y ago
what isnt working exactly what is expected output, what is current output what are you observing
gamer50082
gamer50082OP2y ago
no output
Anchy
Anchy2y ago
do you have the required permissions
gamer50082
gamer50082OP2y 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
Anchy2y ago
folder / user permissions
gamer50082
gamer50082OP2y ago
?
Anchy
Anchy2y ago
start with admin and see if it works
gamer50082
gamer50082OP2y ago
doesnt work still
MODiX
MODiX2y ago
Sorry @BITS_gamer50082 your message contained blocked content and has been removed!
gamer50082
gamer50082OP2y 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
Want results from more Discord servers?
Add your server