im currently using form_closing to minimize the application.
so that is what causing the computer to hang when it needs to reboot.
ill try to continue searching for an answer.
Thanks.
User Profile
Collapse
-
c# can't reboot when application is running.
Hello,
I have a strange problem,
I have application running in the tray bar,
for some reason I cant reboot the computer when it is running and i have to close
it if i want the computer to do a reboot or shutdown.
the application is not doing anything special,
all it does is checking a web site every hour using timer.
anyone saw this problem or know how to get over it so users can shutdown... -
c# securing binary files
Hi,
how can I secure my binary files before release so the .exe will be protected and programs such as fxcop wont be able to analyze and show the content of the .exe ?
I tried using Skater .NET Obfuscator but it seems that fxcop still can read the .exe file.
any ideas ? -
C# Auto Update utility for c# programs
Hello,
I try to find how I can add update form that will download a newer version of my application and overwrite the old one.
the problem is that I cannot overwrite the installed file as it is being used,
how can I solve this problem ?
Thanks. -
c# what is the best way to detect OS ?
Hello,
Im trying to detect in my application what OS it is running.
I found this code:
// Get the Operating System From Environment Class
OperatingSystem os = Environment.OSV ersion;
// Get the version information
Version vs = os.Version;
MessageBox.Show (vs.Major.ToStr ing());
MessageBox.Show (vs.Minor.ToStr ing());
MessageBox.Show (vs.Revision.To String());... -
C# question about threads and GUI
Hi,
I have another question,
I try to make my threads updating the form,
it works fine, for the first thread ,
but afterwards its not updating the labels on the form anymore
not from inside the thread and not outside,
tried to use refresh() and DoEvents() , nothing worked out, is this function SetText lock the control or something ?
the code I use to do it , is a code I found... -
Thanks!
The problem was in how i defined it,
i did
private Thread z;
but
private static Thread z;
solved it....Leave a comment:
-
Thanks for the reply,
but it still doesnt solve the problem.
if I try to declare Thread z earlier I get the following error:
Error 1 An object reference is required for the nonstatic field, method, or property...Leave a comment:
-
C# thread and Timer
Hello,
Im trying to do something very simple but having problems..
What I want to accomplish sounds simple but I cant find anywhere on the web answer of how to do that so it will work.
I want to run a thread , for example map the files on the hard drive.
now what I want to do is run a timer that will check the thread state so when it is finish the timer will run a second thread that will map the files on... -
its working!!
thank you,
sorry for the questions,
it just seems that unlike php finding how to do the simple things in C#
is very difficult.
-KateLeave a comment:
-
Sorry if I was not clear,
I have the following code:
class encrypt
{
public string enkrypt(string enc)
{
char[] thechars = enc.ToCharArray ();
string tata = "";
foreach (char d in thechars)
{
int intASC = System.Convert. ToInt32(d);
tata = intASC.ToString ();...Leave a comment:
-
+how to C# convert value to ascii ?
Hi,
Im trying to build simple encryption,
I use
char d="a"
int intASC = System.Convert. ToInt32(d);
to convert it, and play with it,
now I want to change it (d) back for the original ascii value ("a"),
how do I do that ? -
-
+how to C# split string (each char) into array
Hello,
Can anyone help me?
I am trying to split a string in c# but i don't have a separator.
for example split the string "hello"
into array [0]=h [1]=e [2]=l [3]=l [4]=o
No activity results to display
Show More
Leave a comment: