|
Have sorted it out
UserControl has a property called 'AutoScaleMode'. Setting this to 'None' prevents the usercontrol from being resized when added to a container control.
|
|
|
|
|
hi ,
i am going to create a counter app, to count the number of pages the user printed, no matter where to print(for example from office or notepad or paint and... just print!)
is there any way? is there any unmannaged code?
|
|
|
|
|
|
but these didn't help me so much, i need sth like (PrintStart event) to handle!
|
|
|
|
|
They don't have any events, you're right about that. One possibility could be using WMI, but that's not so familiar to me. When I answered I was thinking if you could for example pause the queue and just let those jobs through which you have already recorded.
|
|
|
|
|
I am realy Confused
|
|
|
|
|
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).
|
|
|
|