|
ClassName.VariableName = newValue;
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
I got it... Thanks to all
|
|
|
|
|
class unu
{
public static int varStatic=0;
............
}
class doi
{
public void myMetod()
{
unu obj=new unu();
obj.varStatic=10;
}
.......
}
i hoppe this code work
|
|
|
|
|
if u are using a windows form, try using a separate class within which you declare the public static member, so that it can be used with the class name.
its value does change.
Keshav Kamat
India
|
|
|
|
|
if you are building a webproject application, using from static variables not a good method
you can use ViewState similar static variables
We Can Do Anything, If We Want It
|
|
|
|
|
Hello..
How can I register some Assembly from my own program?
(Without using regasm and gacutil.) Is it possible?
please, help me..
Thanks...
|
|
|
|
|
I think you can drag and drop the assembly to global cache
|
|
|
|
|
I am so sorry to ask a stupid question,I just want to know how to get it,and I don't understand what is A*,thank you.
-- modified at 3:56 Friday 23rd March, 2007
Always do you best,what you plant you will harvest
later!
|
|
|
|
|
I don't understand your questions. Probably because you didn't ask one. If you want an answer, you should ask a question.
If you're asking for info on the A* pathfinding algorhytm, just keep looking, there are some really good tutorials out there, but make sure you understand the logics before you try to code it yourself. It took me a while to get it too.
A* for beginners[^]
Visual Studio can't evaluate this, can you?
public object moo<br />
{<br />
__get { return moo; }<br />
__set { moo = value; }<br />
}
|
|
|
|
|
A* search algorithm[^]
Also search the articles. IIRC there is one that deals with a C# implementation of A*.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
Hi,
Could you please reiterate the question?
Keshav Kamat
India
|
|
|
|
|
Hi,
I have two major problem with xsd file. My xsd file are created in java (i think) because i have a error when i load the xsd file in the DataSet (type token is not define). I have found on the web one post like this: "DataSet not support token type you must to convert to string type". I have change the xsd but i have another error and for this i have not found the solve: "DataSet cannot instantiate an abstract ComplexType for the node AbstractCars".
I appreciate if somebody can help me!!
|
|
|
|
|
Hello.
I have a problem using AssemblyVersion in AssemblyInfo.cs.
In VS2003, if I set AssemblyVersion("1.0.*"), then the version will be something like 1.0.123.12345
In VS2005, if I set AssemblyVersion("1.0.*"), then the version will be something like 1.0.*
Where must I change in VS2005? I want the Build Number and Revision and not the *.
Thanks...
|
|
|
|
|
Hi,
for me form enter event not working.
help me
it's arrgent
thanks
|
|
|
|
|
I did not get you when you mean Form Enter event not working.
Do u mean to say, that the form load event is not working for some reason,
or the enter key event is not working.
could you please describe a little more?
Keshav Kamat
India
|
|
|
|
|
you can either use Form_KeyPress event or set form's AcceptButton property
Chatura Dilan
|
|
|
|
|
The Enter and Leave events are suppressed by the Form class. The equivalent events in the Form class are the Activated and Deactivate events.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
Hello
Help me to kill a process in C#
Thanks in advance.
|
|
|
|
|
|
|
//This is just a simple way to accomplish the task
System.Diagnostics.Process[] prCess =System.Diagnostics.Process.GetProcesses();
for(int cPr=0; cPr<prcess.getlength(0);cpr++)
{
="" kill="" the="" available="" processes
="" prcess[cpr].kill();
="" }=""
<div="" class="ForumSig"> Waamax. -- Your life is what your thoughts make it.
|
|
|
|
|
Hello,
Never forget to "Dispose()" the process instances!!!!
All the best,
Martin
|
|
|
|
|
I need kill a process whose image name is "QLSX.vghost.exe". How should I do ?
System.Diagnostics.Process[] prCess =System.Diagnostics.Process.GetProcesses();
for(int cPr=0; cPr {
//kill the available processes
prCess[cPr].Kill();
}
this code above shows how to kill all processes. I 'm not sure I need to kill all.
Help me how to kill a identified process ?
|
|
|
|
|
try this instead
System.Diagnostics.Process[] p = System.Diagnostics.Process.GetProcessesByName("QLSX.vghost.exe");
for(int i=0 ; i<p.GetLength(0);i++)
{
//kill all the processes by the required name.
p[i].Kill();
}
Keshav Kamat
India
|
|
|
|
|
System.Diagnostics.Process[] prCess =System.Diagnostics.Process.GetProcessesByName("QLSX.vghost.exe");
prCess[0].Kill();
Simple
"If our Mind can, the Program can !!"
|
|
|
|