Not as a generic rule, no - you could try iterating though it's child windows looking for appropriately named items, and post a WM_CLOSE message, but there is no guarantee that: a) It'll work, b) It'll find them all, or c) The app won't crash or otherwise misbehave as a result.
Seriously? If you need to do this, you're probably better redesigning the application if you can.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
A simple video player with my own play, pause, stop, forward, backward and play list functions. All these things are present in the windows media player and I want to hide them, in order to provide my own functionality.
This world is going to explode due to international politics, SOON.
hello to everybody
i have a class that it name is diver and another class that i called it time.driver has a property iset. i use entity framework for connect to my database.now i want to add an object time to time property of driver.=>add to Driver.time
but when i fill the time and i want to show it to the datagrid it show the count of time in datagrid .where is my problem
this is my query code.
stringvalue = DriverStatusGridView.Rows[DriverStatusGridView.CurrentRow.Index].Cells.Value.ToString();
var SearchTime = (from Search in Context.Drivers
where (Search.InternationalCode == value)
TimeGridView.DataSource = SearchTime;
Sounds interesting. I had never that problem. I'm working on a web application out for 5 years and made no changes to the config file for ages...
It's true that at the beginning I spend about 3 hours to fine tuning everything, but nothing since then...
You better get us into the details so we may spot the problem and help you out...
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
I usually only set database information in the config file, the rest goes in the database.
I define it as key/value pairs, but also include "category" and/or machine/module information to be able to filter the necessary.
In addition you could add a "user" filter for settings that a user can change.
I also add a description on what the key/value pair is for.
my two cents.
PS: web services/WCF remain a major drag in this...
i'm write an listen connection (connection to Sql server database) application(APP):
if connection is not available (connection cable is unpluged or broken), my APP will sleep, until the connection is available,my APP will wake up and execute SLQ commands. if connection is broken again, my APP continue going to sleep until connection is available...
please explain for me or give me some key word about that problem.
Note: i think i need to understand a listen mechanism that similar to mechanism of MessageQueue.Receive() method. but i still don't understand this mechanism
If I understood your question correctly, why not create a loop which would
- loop while connection is established or other wait end condition is met
- define proper timeout [^]
- try to open[^] the connection
- if not successful, sleep[^] for awhile
the first, thanks for your answer!
i think if we use while loop, the performance is not very high.
now i am reading Simple Network Status Monitor Example[^].
if you have any about this topic's document. please send to me!
thanks so much!
Hmm... apparently, what I'm seeing is "expected" behavior. Standard regex behavior is to only keep the last group. I think that's insane and apparently so did the .Net folks as they have the only regex engine which keeps all capture groups. Thanks!
Last Visit: 31-Dec-99 19:00 Last Update: 29-Nov-22 5:11