|
If he would have spent half of this time(posting 3 posts) in Google, I bet he would have got the right solution on the very first page it self.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
I'm afraid he still hasn't learn anything from these posts.
Giorgi Dalakishvili
#region signature
my articles
#endregion
|
|
|
|
|
Most of the times I see that people don't even read all the responses to their posts.
This is nothing but negligence.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Simplest approach would be to use the Windows Task Scheduler.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hi All,
Iam using WMI to get the required printer job information.Here Iam using "Select * from win32_Printjob" from ManagementObjectQuery. In this Iam using thread.sleep for 10 seconds to get the pages,size.
Without thread.sleep Iam getting pages, size as 0.
But this sleep for 10 sec mechanism works only for small documents.
When I get large document It is unable to get the no.of pages,size(just showing them as 0).
1.Is there any way to get the correct pages,size of print document?
2.Is there any way to know that a document came for printing is totally read by spooler?
3.I think after reading all the data only it will go for printing.,am I right or wrong?If right,then how to know that status ready for printing?
Kindly help me
Thanks
|
|
|
|
|
Hello,
Can anybody point me to some information on creating a databound control like the DataGridViewComboBoxColumn? I've been trying to format the DataGridViewLinkColumn like the ComboBoxColumn where the cell is linked to a seperate table that is referenced by cell's ID value. The reason for doing this is because I want a friendly text displayed instead of the unpleasent id value showing. The problem is that the DGVLinkCell does not behave like an html link where you can store the url and the text seperately.
Any help would be greatly appreciated,
Richard
I've used up all my sick days, so today I'm calling in dead.
|
|
|
|
|
Hi,
Inherit from the DataGridViewComboBoxColumn, add necessary information to private fields (for example reference to dataset holding values, selected key value and so on), use tag property to link user selected text to the actual object or row.
Hope this helps,
Mika
|
|
|
|
|
I can't really use that option because I'm not wanting the UI of a combobox. If I knew how the combobox implemented the DataSource property, it would help.
I've used up all my sick days, so today I'm calling in dead.
|
|
|
|
|
Oh I see, sorry about the misunderstanding. One place to start is to take a look at ComplexBindingPropertiesAttribute Class[^] Also there are lots of articles in MSDN concerning data binding.
If you want to take a look at ComboBox implementation, you can use Reflector[^]
Hope this helps,
Mika
|
|
|
|
|
Great info. I have reflector but never tried to decompile MS code.
I've used up all my sick days, so today I'm calling in dead.
|
|
|
|
|
Glad it helped
Mika
|
|
|
|
|
I have a windows form Which has a listView.I allowed users to select some columns from listview.Then,I get those selected items to listviewcollection object.I don't know how to get different columns from that collection.Please help me to do that.
Thank You.

|
|
|
|
|
How to insert multiple records into a database table that are entered into a datagridview. With a single shot of Save all the records in the datagridview should be updated using C# . Can any one help me in this regard.
Please tell me the solution as i have wasted near about whole day on this. I did not find help in google search.
Any help appreciated
|
|
|
|
|
What did you search for in google? Try this[^]. Or try searching CodeProject articles. The second item in the google search was this CP article[^].
Hope this helps.
|
|
|
|
|
Presumably your datagirdview has a datasource, hopefully a table, when you create a new row in the DGV this creates a new row in the underlying datatable with a rowstate of ADDED.
When the user saves loop through each row testing the rowstate and deal with the added/modified rows
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hi all,
I have written a windows service which will delete the files from the respective folder.
Now I want to make my service only to run at every day night 6.00PM.
How to achieve above?
Kindly guide me...since new to these concepts
Thanks In Advance
|
|
|
|
|
balu12345 wrote: How to achieve above?
Windows Scheduler
|
|
|
|
|
Windows service is not needed here when it needs to work only at a specified time. You can write a console application which deletes file and quits automatically. Schedule this program using windows scheduler to run at specified time.
|
|
|
|
|
Hey guys,
I'm trying to format a DataGridViewLinkColumn like an html link where the text can be different from the url. For example the user sees: "Products" but the url is: "http//:www.mysite.com/products". My biggest problem is that the specified record is the item's ID, not the actual item name. How can I use databinding like the DataGridViewComboBox column?
Thanks,
Richard
I've used up all my sick days, so today I'm calling in dead.
|
|
|
|
|
Dear All,
I am using 2 listboxes, 1st containing values and 2nd to hold values selected from 1st listbox. On double clicking in 1st listbox selected value moves to 2nd listbox.
Requirment is after movment of selected value to 2nd listbox countrol should be back in 1st listbox and next or previous item (of moved value)should be selected unless their remain some item in 1st listbox.
Kindly guide,
Yawer
|
|
|
|
|
when performing this action, store the SelectedIndex of your item.
then remove it
then reselect the index-1 item in the list using SelectedIndex property (make sure to check first if there are still items in the list)
|
|
|
|
|
I cheat with this one, create a table with a selected column set to 1 or 0 depending which LB you want it in. I then have a loadgrid method that filters a dataview based on the selected col and loads into each LB (I use listviews). Double click changes the selected value and the LBs are reloaded.
A couple of caveats, each dataview need to be a copy of the table and the table should be quite small.
Benifit, the items are sorted by the dataview when you reload.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hi everyone, i've been facing this problem for some time now, hope someone could answer..
I have a user control A i wish to supply others, which wraps another Control B.
i want users to be able to put my control in the toolbox and use it.
to compile it they don't need assembly B, only for runtime.
but...
if i want to add A, i have to add B first for some reason, and when i drag A to the canvas, a reference to B is added automatically (!?)
of course - when manually removing reference to B everything is working, but i don't want this kind of behavior. Is there anything i can do?
Thanks a lot
Yanai
|
|
|
|
|
yanairon wrote: I have a user control A i wish to supply others, which wraps another Control B.
Is this control B written by you or part of .Net SDK or you have the source code of it?
|
|
|
|
|
It's a 3rd party product which i have the code for
|
|
|
|