|
figured it out, i was not using a bool to bring in the database, rather a string
|
|
|
|
|
how i can search for all the running process
and close it
|
|
|
|
|
And afterwards the operating system will still do something how?
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
You already asked it 23 hours ago, stop it.
modified 12-Sep-18 21:01pm.
|
|
|
|
|
You can't do this either. Since restarting those processes later will affect how the system works. You can't shut them down and then restart them and expect the system to behave exactly as you did before the shutdown.
|
|
|
|
|
how can hide my exe from the task manager
|
|
|
|
|
Maybe try Google[^]
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
I run Google, sir, but still task manager shows my appz (don't show Google...), plz plz help (urgent).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Don't just "run" Google, but use it as a tool to get a list of examples.
--edit--
Didn't read the sender on the post, assumed the answer came from TS <grin>
My bad!
I are troll
|
|
|
|
|
|
There's a utility that comes with Windows called "HideMyExe.exe".
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Hi all,
i tried to play two sounds in the same time by using this code
System.Media.SoundPlayer sw = new System.Media.SoundPlayer("-------.wav");
sw.PlayLooping();
System.Media.SoundPlayer s = new System.Media.SoundPlayer("----------.wav");
s.PlayLopping();
but the first sound stoped and the second was playing
can any body help me to play two sounds in the same time ?
thx 4 all
|
|
|
|
|
The SoundPlayer.Play method should do it.
Kristian Sixhoej
|
|
|
|
|
sorry ,
but it makes the second sound only play
|
|
|
|
|
It seems like SoundPlayer can't do this.
DirectX should be able to do the job, but I'm not sure, and I don't know anything about using DirectX and C# together.
Kristian Sixhoej
|
|
|
|
|
There are articles, here at CP about managed DirectX [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
basically, what I'm trying to do is just acquire a piece of data from the last line in a text file.
Not sure if it's enough but, this is the code I'm using as a base to build from.
public double LastATMBalance()
{
double lastatmbal;
foreach (DailyBalance dailybal in dailybalance)
{
lastatmbal = Convert.ToDouble(dailybal.ToString());
}
return lastatmbal;
}
and this is the format of the text file i'm using.
3/27/2000,4800
3/29/2000,7750
3/30/2000,6990
3/31/2000,5000
4/6/2000,5000
11/12/2004,5000
6/9/2004,9990
2/20/2006,5000
4/1/2006,5000
4/9/2006,5000
not sure anymore info is needed.
Thanks for any assistance provided.
|
|
|
|
|
Hi,
I don't see a question, so what is your problem?
remarks:
1. your code won't compile since lastatmbal is not guaranteed to get a value.
2. why convert all the DailyBalance objects when the only one of interest is the last one?
|
|
|
|
|
what is dailybalance ? Is it a generic list? An array?
If it's a generic list, you could use dailybalance.Last() .
If it's an Array , you could use dailybalance[dailybalance.Length - 1]
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Hi,
i have a senario, 3 buttons and 2 gridviews.The buttons(three buttons) related to the information in first Gridview is clicked, it populates the second gridview with the corresponding table in database. Now my_method needs to know which button is clicked, so that it uses stored procedure to do some database operations on that particular table.
Is there any way to get the value from button_clicked() to my_method, without calling my_method. The value will be used only when my_method() is called by some other operation.
Thanks
|
|
|
|
|
You could store the information in a field on the class in which the method resides.
|
|
|
|
|
Hi,
class
{
protected void Button1_Click(object sender, EventArgs e)
{
resbutton = "abcMenu";
.....
}
protected void Button2_Click(object sender, EventArgs e)
{
resbutton = "defMenu";
.....
}
protected void Button3_Click(object sender, EventArgs e)
{
resbutton = "jklMenu";
.....
}
protected void Button4_Click(object sender, EventArgs e)
{
resbutton; // here i need the value of resbutton for different above button_click events
.....
}
}
fields are not working properly. can u provide me some related code.
Thanks
|
|
|
|
|
suni_dotnet wrote: fields are not working properly.
I don't see any evidence from this code that you have a field at all.
Here is your code re-written:
class MyForm
{
private string resbutton;
protected void Button1_Click(object sender, EventArgs e)
{
resbutton = "abcMenu";
}
protected void Button2_Click(object sender, EventArgs e)
{
resbutton = "defMenu";
}
protected void Button3_Click(object sender, EventArgs e)
{
resbutton = "jklMenu";
}
protected void Button4_Click(object sender, EventArgs e)
{
switch(resbutton)
{
case "abcMenu":
break;
case "defMenu":
break;
case "jklMenu":
break;
default:
break;
}
}
}
Of course there may be better ways of doing this, but since we don't know what your actual overall goal is we can't say. Christian's suggestion of using delegates has merit also.
I'd also suggest using something other than a string for the field. Creating a specific enum that enumerates each type of button would be good.
|
|
|
|
|
sounds like you want to use a delegate.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
You're starting to sound like "Clippy".
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|