|
Tell me a legitimate reason why you'd want to!
|
|
|
|
|
Well, for example , for creating an AntiVirus.
Is it that ?
|
|
|
|
|
|
You can think as you wish.
Thanks anyway.
|
|
|
|
|
Because antivirus software always exhibits malware features itself.
Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots.
-- Robert Royall
|
|
|
|
|
Mohammad Dayyan wrote: Well, for example , for creating an AntiVirus.
Is it that ?
Nope - That's not it!
|
|
|
|
|
You cant
the user / computer owner should always have control.*
*This is not always the case in vista
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
you.suck = (you.Passion != Programming & you.Occupation == jobTitles.Programmer)
1000100 1101111 1100101 1110011 100000 1110100 1101000 1101001 1110011 100000 1101101 1100101 1100001 1101110 100000 1101001 1101101 100000 1100001 100000 1100111 1100101 1100101 1101011 111111
|
|
|
|
|
It's not possible*, and for good reason.
|
|
|
|
|
The JZ wrote: It's not possible
Well, it is actually possible, just difficult, for good reaason...and no, I won't say how to do it.
Scott Dorman Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA
[ Blog][ Articles][ Forum Guidelines] Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
|
|
|
|
|
That's why I put the *.
|
|
|
|
|
The short answer is that it's not possible. There are very few legitimate reasons for creating an application that exhibits this type of behavior under any circumstance.
Scott Dorman Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA
[ Blog][ Articles][ Forum Guidelines] Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
|
|
|
|
|
Hi,
I have created a simple C# application that has a Windows form. The form contains a richtextbox and a button. I want that at run time, when I type something in the text box and click after that on the button, another form should pops up. Is it possible??
If yes, then any assistance would be appreciated. I have also added another form but dnt know how to add it in the button_click().Please let me know if you need further info.
<pre>
private void richTextBox1_TextChanged(object sender, EventArgs e)
{
toolStripButton8_Click(null, null);
}
private void toolStripButton8_Click(object sender, EventArgs e)
{
toolStripButton8.Click += new EventHandler(toolStripButton8_Click1);
}
void toolStripButton8_Click1(object sender, EventArgs e)
{
//Load Form2 here
}
</pre>
Regards
Ethen
|
|
|
|
|
First you should create new instance of another form. Then show it by calling either Show() or ShowDialog()
|
|
|
|
|
Thanks Giorgi...It works
Cheers
Ethen
|
|
|
|
|
You are welcome
|
|
|
|
|
Hi,
I am now able to invoke second form through the first form. However, there is a small issue. As per the application, I have to close form2 and click the button to show the form 2. I have to do this thrice
It happens twice successfully but for the third time, when I click the button, multiple form2 shows up and fills the desktop screen. how do I fix this?
Cheers,
Ethen
|
|
|
|
|
Hello
1) ComboBox is Visible False
2) When User Click on TextBox, i am Changing the Visible State of Combo to True
3) Now I am trying to Set Focus on Combo Box But It will not doing so.
--- cmbCity.Focus();
Any Way to Solve my Problem
Best Regards,
Chetan Patel
|
|
|
|
|
|
i have used this.
List<string> strTemp=new List<string>;();
how can i achieve the same in HashTable, like
HashTable<string,int> strTemp=new HashTable<string,int>();
“You will never be a leader unless you first learn to follow and be led.”
–Tiorio
"Coming together is a beginning, staying together is progress, and working together is success." Henry Ford
|
|
|
|
|
Try Dictionary.
xacc.ide - now with TabsToSpaces support IronScheme - 1.0 alpha 4a out now (29 May 2008) ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))
|
|
|
|
|
Inherit HasTable Class and Create Your Own Class with Add and Get Methods
And Check For the Values in Custom Methods.
Best Regards,
Chetan Patel
|
|
|
|
|
.NET 2 introduced the Dictionary generic, so this would be achieved using:
Dictionary<string,int> strTemp=new Dictionary<string,int>(); The only thing to watch out for is how to access it. In order to iterate over the Dictionary, you use the KeyValuePair generic, so you would end up with something like this:
foreach (KeyValuePair<string,int> item in strTemp)
{
}
|
|
|
|
|
The generic version of the HashTable is the Dictionary:
Dictionary<string, int> temp = new Dictionary<string, int>();
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hi,
What is the reason for the StackOverFlowException and AccessViolationException
and the solutions for these errors in windows application + C#.net 2.0
|
|
|
|
|
They're pretty self explanatory, but here goes.
tauras81 wrote: StackOverFlowException
This occurs when the stack overflows. There is a limited number of methods that can be called, so the most common occurance of this exception is when you keep calling the same method over and over again. The most common time i see this exception is when I make a case-related typo eg
public class Foo
{
private int bar;
public int Bar
{
get{ return this.Bar; } <-- that should have said this.bar. By being uppercase it will keep calling itself. StackOverflowException will occur
}
}
tauras81 wrote: AccessViolationException
This exception is usually thrown when trying to read or write protected memory. It has to do with unsafe or unmanaged code, and as I dont deal with this very often I cant think of a simple reproducable bit of code to demonstrate it. You could try the documentation[^] - a good place to go in both these cases.
|
|
|
|