cron is actually a simple command scheduler in *nix systems. It's configured via a crontab file that specifies intervals and commands to be run (among other things). It's commonly used for doing tasks like backup routines, rolling over logfiles, and other maintenance.
The Windows equivalent would be the Task Scheduler.
I'm sure I'm missing something obvious here but I don't see it ...
I am constructing a menu at runtime from an XML document, which is being read into a data class created with the xsd utility. This is all fine. As part of constructing the menu itself, I assign to the ShortcutKeys property:
menuItem.ShortcutKeys = (Keys)TypeDescriptor.GetConverter(typeof(Keys)).ConvertFromString(level.Accelerator);
Accelerator is a property auto-generated by xsd and looks like "Ctrl+N", "F4" etc, and this line is running when it should.
The result is that my menu is correctly built, and shortcut keys appear in the menuitems, but pressing the key doesn't cause the Click event to fire. If I first open that menu, the shortcuts fire (i.e. if I open 'File' and press Ctrl+O, the open dialog appears), but they do not if the menu on which the item lives is not opened. (Obviously this is not correct behaviour.)
Just wondering if someone has seen something similar and can tell me what simple step I am missing.
I have a listbox in which I'm keeping several expanders. At the beginning all expanders are collapsed. The height of the listbox is just enough to show them all. After I expand one of those expanders, the height of listbox is increased accordingly. However, when I collapse this expander, height of the listbox remains unchanged, leaving huge white space. How to refresh listbox size?
I make a registration form but I have problem when 20 members register in the SAME TIME , what is the best strategy to handle this problem with inserting row in the same time using ado 2.0 and example if available.
IMO, you don't have too much of an issue while doing an insert. An update or delete can create more issues in terms of concurrency.
However, you can run a check on all existing users to probably check if the user does not already exist.
Too much of heaven can bring you underground
Heaven can always turn around
Too much of heaven, our life is all hell bound
Heaven, the kill that makes no sound
As you can see from the responses you have gathered here, people are having a real problem understanding what the issue you are suffering really is. As a hint, when posting a question, try to put in as much relevant detail as you can. A description of what you are trying to achieve, along with a relevant code snippet, details of your expected output and a description of the error will help you get a detailed answer to your problem.
If you could edit your question to include this information, I look forward to helping you.
I'make asp project but my problems happens when over 20 users register in the same time , i found that only 3 users register in db however all 20 users received message that they made registration successfully.
I've a DB in MySql, with a field DATE where i store only dates. When i'm getting this field from DB and put it into DataGridView it adds also default time
for example, if i have 1.1.11 in DB, in DataGridView i see "1.1.11 12:00 AM"
how can i prevent the additional date from being added to the datagridview
the thing here is that the one who has implemented this part didn't define a columns in grid view, but just populated it with the DataTable, like this dataGridStatData.DataContext = table.DefaultView; therefore i cant just edit column style...
There is no such thing as a Date in .Net, only DateTime. So you will need to set a formatter on that column. You can do so by handling the DataBindingComplete event and looking up the column you want to show only dates (or, if all columns in this table which are DateTime should actually only show dates, by type).
Hi, I apologize if this is the wrong forum. But I code in C# and it does technically involve programming discussion, hehe. Feel free to move it if necessary.
Anyhow, I recently dove into Linq To SQL. I absolutely love it. I had "studied" it a bit for quite some time before making the move. I wanted to understand it the best I could prior to dealing with it. And then I wrote an application a few days ago that uses Linq To SQL. It makes everything SO much easier. I just designed the required database in SQL Server 2008 Express. Then I did "Add New Item..." -> "Linq To SQL Classes". From there, it was as simple as writing the queries and manipulating the data the way I needed to.
Could someone please provide some (or a link to) the major advantages/disadvantages on the subject? I'm sure there are plenty of each. I would like to know when it would not really be beneficial (if ever).
Thanks! Rock on, Linq To SQL!
djj55: Nice but may have a permission problem
Pete O'Hanlon: He has my permission to run it.
Last Visit: 25-Oct-20 22:07 Last Update: 25-Oct-20 22:07