|
This may not be the best idea, but since you can pause the queue, you could leave it like that. When a new job is submitted to the queue, you have the time to gather the information from that job and after that you can release it. I don't know if it's possible but if the queue can be configured so that every new job is paused by default, then you could do the release per job. That would be more reliable.
|
|
|
|
|
Ok! i'll give it a try, thanks
|
|
|
|
|
No problem, but as I said, this may not be the best way, so don't bang your head against the wall for too long
|
|
|
|
|
but due to there is no event to handle, should i run and get the printer queue, in an infinite loop?
|
|
|
|
|
Perhaps you could build a service and use polling?. For example a timer with 1 second interval...
|
|
|
|
|
|
what?
|
|
|
|
|
I think those are the classes..
I are troll
|
|
|
|
|
|
I need to place into DataGridView columns with ComboBoxes, but i have to fill them(ComboBoxes in each Cell) with different datasources...
How can i do it?
ThanX.
|
|
|
|
|
By setting different datasource for each cell.
The word "politics" describes the process so well: "Poli" in Latin meaning "many" and "tics" meaning "bloodsucking creatures."
जय हिंद
|
|
|
|
|
No i try to do it... no effect...
Datasource for every cell conected with Column datasource, and when i cheange datasource for current cell all cells takes cheanges...
P.S. Sorry for English...
|
|
|
|
|
If you cast the cell of your combobox column as datagridviewcomboboxcell, then you will get a datasource property. Set it for each cell separately. It definitely works.
The word "politics" describes the process so well: "Poli" in Latin meaning "many" and "tics" meaning "bloodsucking creatures."
जय हिंद
|
|
|
|
|
|
This works for me.
this.dataGridView1.DataSource = dt1;
((DataGridViewComboBoxCell)this.dataGridView1.Rows[0].Cells[0]).DataSource = dt2;
((DataGridViewComboBoxCell)this.dataGridView1.Rows[0].Cells[0]).DisplayMember = "col1";
((DataGridViewComboBoxCell)this.dataGridView1.Rows[0].Cells[0]).DataSource = dt3;
((DataGridViewComboBoxCell)this.dataGridView1.Rows[0].Cells[0]).DisplayMember = "col1";
It would be good if you can share some code.
The word "politics" describes the process so well: "Poli" in Latin meaning "many" and "tics" meaning "bloodsucking creatures."
जय हिंद
|
|
|
|
|
I need to place different Datasources into differents cells...
For Ex.
this.dataGridView1.DataSource = dt1;
((DataGridViewComboBoxCell)this.dataGridView1.Rows[0].Cells[0]).DataSource = dt2;
((DataGridViewComboBoxCell)this.dataGridView1.Rows[0].Cells[0]).DisplayMember = "col1";
((DataGridViewComboBoxCell)this.dataGridView1.Rows[1].Cells[0]).DataSource = dt3;
((DataGridViewComboBoxCell)this.dataGridView1.Rows[1].Cells[0]).DisplayMember = "col2";
((DataGridViewComboBoxCell)this.dataGridView1.Rows[2].Cells[0]).DataSource = dt4;
((DataGridViewComboBoxCell)this.dataGridView1.Rows[2].Cells[0]).DisplayMember = "col3";
modified on Friday, January 16, 2009 12:16 PM
|
|
|
|
|
I made my own Column with combobox in it...
It works...
If smb whant to see sources, i'll publishing them...
|
|
|
|
|
Hello!
I am using icons on a tabPage. I editor the icons looks perfekt and all (32bit) colors a visible. But when I start the application the colors of the icons looks like 256 color settings. I have created a new imageList and changed color depth to 32 bit, my images are 24x24. I also use these images on buttons and inside the toolBar and there all the colors are displayed correct.
Maybe someone of you has the same problem? I have searched for several days and tried a lot but nothing helped.
puny
|
|
|
|
|
I have a two part question. I'm using assembly to pop objects off the stack I've placed there for later acquisition. These are actual commands, i.e. NOP or 90h, and I'd like to take the AX or whatever register I pop it into and execute that register as if it were the said command, i.e. NOP. I know some commands this wouldn't be possible so my next question pertains directly to windows, where as this one indirectly, my issue is if I pop if off the stack I could either execute it now or place it into memory and execute it from there, but I dont know how to do that either. I've tried to execute it from external sources and windows prevents me from doing this. How could I execute from RAM the said instructions from the stack, and I did keep a running count of how many I've placed on the stack so as to avoid overflow. Does anyone have any words of wisdom? I'm certain I've forgotten to mention some important piece of information so please ask if you have questions before answering.
Both questions do pertain to windows because I don't know how windows allocates and controls ram and I don't wish to over write or effect other running or TSR processes (I know TSRs no longer exist, but it's good as an example).
|
|
|
|
|
Hi,
assembly code is not beginner's stuff, and doing it under the wings of an Operating System that is supposed to protect everything makes it even more challenging.
It is still unclear to me what your overall intentions are. Knowing so might help everyone in providing adequate replies.
Here are some pointers anyway:
1.
Putting assembly code (that is CPU instructions) on the stack is a very bad idea. What you can do
is allocate a memory buffer of sufficient size, fill it with a valid sequence of instructions,
then jump to it from within your higher-level language (e.g. a C program).
2.
It is easier to call assembly in an unmanaged environment (as in C or C++/MFC) as opposed to a
managed environment (.NET, C#, ...).
3.
To make it fit in a high-level program, the skeleton of your assembly code should best be identical to
what a compiler in your environment generates for an (almost) empty function.
4.
I strongly suggest you study the code your compiler generates for lots of test cases; turn off
optimization as much as possible (so you can recognize the instructions corresponding to each
high-level statement).
5.
Whatever your final intentions are, start with easy functions; executing a NOP instruction does not qualify since you can hardly judge it. When experimenting with some new interface (e.g. P/Invoke) my typical first functions are: square an int, add two ints, calculate the length of a string, etc.
|
|
|
|
|
Hi all!
In today's newsletter I saw a wonderful tool for creating databound web pages automatically, namely Iron Speed Designer. Does anybody know of a similar application for winforms development?
Thnx!
|
|
|
|
|
CodeSmith is the oldest, MyGeneration is for free, and there are some code-generators that you can find on this site - my favorite being Arebis.
I are troll
|
|
|
|
|
|
|
Quite the demo! Thanks for posting
I are troll
|
|
|
|