|
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
|
|
|
|
|
I want to get another data in the web browser where a data is already in it.i want to change the data dynamically? how can i done this? Please help me.
MURALEEKRISHNAN.K
|
|
|
|
|
This is Windows forms forun not Web Forum.
MuraleeKrishnan wrote: I want to get another data in the web browser where a data is already in it.i want to change the data dynamically?
Please give some more details...
what data?
|
|
|
|
|
web browser is a tool in the windows apllication in c#.net. I donot mean the web browser like IE And others
MURALEEKRISHNAN.K
|
|
|
|
|
MuraleeKrishnan wrote: web browser is a tool in the windows apllication in c#.net
Tool or control?
Anyways, you still did not specify what do you mean by dynamically.
No web browser updates the page automatically. The web model itself is based on request and response.
Still, if you want to update the page in web broswer control; you may run a timer which will request the server after certain time.
|
|
|
|
|
This gets my award for hardest to understand question of the year.
What data. You mean another page ? If you have a web browser control, you can set the URL to whatever you like.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
I doing the work on the C#.net 2005 Windows Application. In Windows Application their is control named web browser which is i used.
I want to get another data(Value) in the web browser where a data(Value) is already in it.i want to change the data(Value) dynamically(I mean update the webbrowser according to the click happend in the data grid view)? how can i done this? Please help me.
MURALEEKRISHNAN.K
|
|
|
|
|
Hi all,
I am trying to provide security for my code. My requirement is
when ever someone builds my code then it should prompt for password , someone is using .pfx file for thise can anyone help me how to use it and how to make it work.
Thanks,
Manoj
|
|
|
|
|
Are you serious, every time, the tool would last about 3 compiles and be ejected with extreme prejudice. I have no idea how to acheive this but I really think you should retink your security model.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
hi,
thanks for u r reply the use is u can provide security to your code with some password and if you code is taken by some one else they cant build it until they know your password.
|
|
|
|
|
My issues is with the frequency of entering the password, if I had to enter a password every time I compiled a program to meet your copy protection requirements I would not use the software, not a chance, nope never, even if it was essential to our needs, I would reverse engineer the dammed thing to get rid of the requirement.
Look into some other form of protection!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
how to go from one form to another form,in C# windows applicatin
|
|
|
|