|
hello Dears
Subject: Want to Disappear Context menue strip
I made a window service controller which are in system tray (sqlservier controler in system tray) , right click on symbol of (Controller)
the context menue strip is appear.... and show some menue like show, Exit etc...
now the problem is that if i click any where in desktop it should disapear but in our case it is not....
Now i Want to Disappear Context menue strip when i click any where on desktop except Context menue strip.....
How Can i do this???
Sooperfellow
Regards
M.Qasim Afridi
|
|
|
|
|
Check out this article[^], hopefully it will help.
Take care,
Tom
-----------------------------------------------
Check out my blog at http://tjoe.wordpress.com
|
|
|
|
|
Hy
I have a form with a richTextBox and a button
I have text in richTextBox. When I press the button I want to insert another text in the richTextBox, but I don't use the richTextBox.Text.Insert or richTextBox.RTF.Insert, I want to insert the text like I type in richTextBox. Is it possible?
thx
|
|
|
|
|
You want the characters to appear as if you're typing ? You change the Text property, but do it with a timer.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I don't want to see the effect in real time not in timer time
|
|
|
|
|
real time is instant. If you want it to look as if it's being typed, it needs to be slowed down, and you need a timer.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
It works with SendKeys.Send("{BACKSPACE}");
|
|
|
|
|
If I use the lock statement to synchronise my threads and I got a deadlock it would be very useful to know which thread is currently holding the lock.
Is it possible to determine the ID of the lock owner thread?
|
|
|
|
|
The short answer is no. A possible solution is here[^] though.
Take care,
Tom
-----------------------------------------------
Check out my blog at http://tjoe.wordpress.com
|
|
|
|
|
The slight longer than short answer is if you have two threads deadlocked, how is your code going to even execute to find out which thread has the lock tied up??
Another issue is that since you can have two objects holding locks on each other, waiting indefinately, the owner of the lock(s) would be correct. It's the poor design of the locking scheme that's the problem.
|
|
|
|
|
I need to parse a CSV file and match it with the first line of CSV with my table field.
(eg My first line of Csv file will be like this
Venue Event Date Cost Quantity Notes
my database table fields will be
Venue Event Date Notes Quantity Cost.
I need to match because the order of CSV file will change . Can any one help me to match fields. My table fields and Csv fields will be same only. Pardon me if my presentation is wrong. Thanks in advance.
|
|
|
|
|
When you have the fields in the file, surely you should be able to iterate over them and match them with those in the DB?
Cheers,
विक्रम
And sleep will come, it comes to us all
And some will fade and some will fall
|
|
|
|
|
|
Hi all,
I'm trying to create a login that should use Windows Authentication.
This is what I have done so far:
protected void Login1_Authenticate(object sender, AuthenticateEventArgs e)
{
if (Login1.UserName == "admin" && Login1.Password == "admin")
e.Authenticated = true;
}
So how can I authenticate the username and password with the windows logon??
Many Thanks
Regards,
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|
|
just use win32 api to impersonate with your user credentials.
try something like
[DllImport("advapi32.dll", CharSet=CharSet.Auto)]<br />
public static extern int LogonUser(String lpszUserName,<br />
String lpszDomain,<br />
String lpszPassword,<br />
int dwLogonType,<br />
int dwLogonProvider,<br />
ref IntPtr phToken);
regards
j.
|
|
|
|
|
Hello,
I am developing C# application which is having some hardware dependencies. While initializing application in one of my class i am starting all harware threads. When i modify some settings i need to restart the application.
How can i make sure that all threads should be killed before doing Application.Restart()?
Is their any way which will kill all running threads simultaneously instead of killing specific threads one by one.
Thanks.
|
|
|
|
|
gajesh wrote: Is their any way which will kill all running threads simultaneously instead of killing specific threads one by one.
i suspect there no other way to do this. You need to kill one by one. Where you are storing the thread objects ? You can loop through this and stop all.
|
|
|
|
|
Erhm, a background thread (set the IsBackground property to true) will be killed automatically as soon as the 'main' process is killed. I'm not sure if this also goes for Application.Restart();
Please vote my message! Click on one of the numbers beside ' Rate this message'.
.: I love it when a plan comes together :.
http://www.zonderpunt.nl
|
|
|
|
|
Thanks Eduard.
You are correct, Application.Restart() is not killing main process.
|
|
|
|
|
How to calculate the Daily,Weekly & Monthly time Duration from breaktime (i.e.,calculated from Outtime & Intime)?
Breaktime Code
TimeSpan minus = (TimeSpan.Parse(txtin.Text) - TimeSpan.Parse(txtout.Text));<br />
txtdur.Text = Convert.ToString(minus);
A.W.Abdul Sathar
|
|
|
|
|
Use Substract method of TimeSpan class.
Visit my blog at http://dotnetforeveryone.blogspot.com/
|
|
|
|
|
Now I understand I can use
System.Diagnostics.Process.Start("http://some.url.com");
to launch the default browser and navigate to a specific page, and I also understand that I can launch a specific browser, which will then go to the default home page using
System.Diagnostics.Process.Start("iexplore");
However, is there a means of launching the default browser to the default homepage? (without checking the registry to see what the default browser is preferably)
Perhaps there's some special url I can navigate to (like about:blank, but representing the default homepage)
I have no blog...
|
|
|
|
|
Erhm, the default browser setting is stored in the registry, su you'll need to check the registry in order to find the default browser.
Why don't you want to check the registry?
Please vote my message! Click on one of the numbers beside ' Rate this message'.
.: I love it when a plan comes together :.
http://www.zonderpunt.nl
|
|
|
|
|
Eduard Keilholz wrote: Please vote my message! Click on one of the numbers beside 'Rate this message'.
That's lame...
|
|
|
|
|
I voted. I don't think he'll be happy, but I voted.
Deja View - the feeling that you've seen this post before.
|
|
|
|