|
You can get the active window using GetActiveWindow API defined in user32.dll
You will have to periodically check for the active window.
|
|
|
|
|
I don't think there is a way to see if it's flashing. You can make it flash[^] if you want though.
Take care,
Tom
-----------------------------------------------
Check out my blog at http://tjoe.wordpress.com
|
|
|
|
|
nope, making it flash is easy.
But checking if its flashing seems to be out of my leage.
|
|
|
|
|
It's a long shot, but this article[^] may help you get the flashing state. Once you have the toolbar button, you maybe able to find a Win32 api function that gets the flashing state of the toolbar button.
Take care,
Tom
-----------------------------------------------
Check out my blog at http://tjoe.wordpress.com
|
|
|
|
|
I need to define some default button - that in case user will press on Enter this button will be press - how to do it ?
This button need to be in Focus in start of the form.
Thanks.
|
|
|
|
|
Set the AcceptButton property of the form.
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 )
|
|
|
|
|
And even if i change the order i get the first focus to the same button.
What to do ?
|
|
|
|
|
If you're trying to do this with a button in a UserConrol, your UserControl has to expose this button as a property so the form can see it.
You should NOT be using a button in a UserControl for a form-level action like this. The buttons that control OK/Cancel for the entire form should reside on the form itself, not in a UserControl.
UserConrols are for encapsulating a set of controls that have a common purpose, such handling the details of an object, not a form.
|
|
|
|
|
Any idea why do I get a couple of ? when reading data from oracle to any bloody control?
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
Because you're using the wrong encoding! You answered your own question with your title.
Most likely your using ASCII encoding on Unicode data.
|
|
|
|
|
|
|
In matlab (also other languages), there is a function called "eval" which can execute a command in a string, such as eval('plot(x,y)') is the same to plot(x,y).
Is there similar function in c#? if not, how to do then?
thanks.
|
|
|
|
|
The eval function is common in interpreted languages, but not in compiled languages.
In C# you would have to compile the code into a separate assembly, that you load and use. If I'm not mistaken, there is some article here on CP that describes this.
---
single minded; short sighted; long gone;
|
|
|
|
|
Without knowing the source, I would suspect that it is extremely unlikely that you are going to find this. What did google have to say?
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Nothing on Google - nada. I can still use the code sample, but have to create my own db, perhaps use the Northwind db cistomers table.
|
|
|
|
|
I have an array of integer, how i can choose the bigest value in it ?
Thanks in advance
Assaf
|
|
|
|
|
looks like your having trouble in ur assignment
Rocky
You can't climb up a ladder with your hands in your pockets.
|
|
|
|
|
yeh,
i just think that maybe there is simple property for that
anyway thanks !
Assaf
|
|
|
|
|
You have many choices. You can iterate over it and store the largest value, or you could sort the array and choose the last (of first - depending on whether the sort was ascending or descending) entry. However, you are going to have to write the code for yourself.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Here's a couple of tips you can use:
1. create an array to hold your values
2. create an additional temporary array
3. iterate (for loop is preferable in your case)
4. in each loop, you'll have to compare a value from the array of original values with those already in the temporary array, and add it "sorting logic must be implemented here"
5. once sorted, simply pick the last value in the temp array by moving to its last index
another way to do it is to use two nested loops.
Good luck!
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
I found the DoubleClick event for Button does not work in Visual C#.
Although you can add the DoubleClick event handler but it does not work. Actually, in the event list, you can not find the DoubleClick event selection.
Any one can tell me whether I can realize the DoubleClick event for Button?
thanks.
|
|
|
|
|
The MouseClick property for a button accepts MouseEventArgs. These arguments contain a property called Clicks which identifies the number of clicks. However, for a button this is pretty much useless because the button is designed to respond to single clicks. Double click behaviour is outside the normal behaviour of a button.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
ConnectMe = new OracleConnection("Data Source=orcl; Persist Security Info=True;User ID=DLDSP; Password=DLDSP;Unicode=True");
ConnectMe.Open();
It has been working wonderfully for months and now I get this bloody message:
ORA-12535 TNS:operation timed out
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
Sounds like your database server is down.
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 )
|
|
|
|