|
Thanks for the suggestion, I'll have to look at it tomorrow.
I'll let you know how I get on.
Thanks alot for your support
Martin
|
|
|
|
|
I've finally sorted it!
I used some suggestions from your last post which helped. But I decided to tackle it from a different angle, eventually i came up with doing a valueCount
If (Count != 3)
{
create the keys
}
then copy values of each.
Works perfectly.
Thanks alot for your support Henry
Best regards
Martin
|
|
|
|
|
Hi friends,
I have a checkedlistbox control on my windows form. Now when Application runs, every item is unchecked and user checks the items as per his choice. I want that - next time when user runs the application - checkedlistbox should be loaded with the same items checked. Meaning no need to recheck those values.
How do i do that?
many thanks,
Jeet
|
|
|
|
|
havejeet wrote: How do i do that?
Store the checked items in a persistent store (database, file).
Read the stored values and load them when your form loads.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
You might use a file or the registry for storing your application settings.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Hello Experts!!
I am using following code inwhich instead of current value it takes null.I am using it at cell leave event of datagrid.
<pre>int ind = dataGridView1.CurrentRow.Index;
if (call == 1 ||call==2)
{
arr[x++] = (string)dataGridView1.Rows[ind].Cells[1].Value; //Error here
call++;
}
|
|
|
|
|
Let me turn my mind reader on...
trying to read error...
dense object detected...
error: can't read mind, shutting down now.
What error do you get?
What's the code supposed to do?
What does it do?
And what is your question?
|
|
|
|
|
KIDYA wrote: current value
Define "current value" in the context of the code you have shown. There is nothing in the code called that. The nearest is "CurrentRow".
KIDYA wrote: arr[x++] = (string)dataGridView1.Rows[ind].Cells[1].Value; //Error here
What sort of error? At a quick glance there are at least 8 possible points of failure on this line.
Man who stand on hill with mouth open wait long time for roast duck to drop in
|
|
|
|
|
Sorry there!!
i am using above error code in cellchange event of datagridview,i have three columns namely srno.,cust no.,name when i entered value into cust no. then in cell change event of custno value must be shown into arr[x++].but it cant show.
What to do???
|
|
|
|
|
Hi there,
I'm building a windows application using Visual Studio 2005.
1- I built the GUI and the database table needed.
2- I biult a SQL table with the fields needed.
3- I used the VS2005 wizards to establish connection and to create the dataset and table adapter.
4- I added a gridView to the form bound to the defalut data source enerated by VS.
5- I added a button with this code inside the click method:
/////////////////////////////////////////////////////////////////////
surveyTableAdapter.Insert(q1.ToString(), q2.ToString(), q3.ToString(), q4.ToString(),
q5.ToString(), q6.ToString(), q7.ToString(), q8.ToString(), name.Text, email.Text,
phone.Text, address.Text, post.Text, comments.Text, mailList.Checked.ToString());
this.surveyTableAdapter.Fill(this.surveyDataSet.Survey);//this is to populate the gridview upon a click
MessageBox.Show("Thank you for your participation in this servey.");
/////////////////////////////////////////////////////////////////////
6- The problem is that when I click the button I see the changes in the gridview, but when the program is re-executed, nothing is found in the table.In other words, changes are not saved.
7- I built a MS-Access database and connected it to the GUI, but the same thing happened.
I want to reiterate that i'm using the default cod and settings of the VS2005.
Can anybody help me in that?
Thanks in advance.
Zohair
|
|
|
|
|
EW!!!
Here's some help..
Zohair83 wrote: MessageBox.Show("Thank you for your participation in this servey.");
servey = survey.
|
|
|
|
|
cum onn.. this has nothing to do with the problem, it's a mistype, man!
|
|
|
|
|
Have you called Update on the TableAdapter and AcceptChanges on the Table in the DataSet?
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
NO, how are these set?
Thanks
|
|
|
|
|
|
hello
this is shikha, i m new in programming in Com Port, Actually my previous i did one project in which i have to receive/send SMS using COM1,
now the Device changed and it is supporting the Com3, Sending is working perfectly but unable to recive SMS using Port3.. here i m using Third party DLL. GSMCOMM DLL..just i m struck here,
one event is there "GsmComm.GsmCommunication.MessageReceivedEventArgs" is not firing, it should fired when message is recive BY the Port 3.. i m just unable to understand how to reslove the problem, i tried a lot, searched a lot....
<br />
AT page Load I set Properties like.. <br />
1) Port Number 3;<br />
2) Baud Rate 9600;<br />
3)TimeOut 300;<br />
<br />
i am using GsmComm library, there is a Event which is fired when message Received.. Previously it is working Perfectly with "POrt1"..but now port is Changed Port 1 to port 3, so it's stop working, but still Sending SMS is Happening but Receiving is not happening??<br />
<br />
"CommSetting.comm.MessageReceived += new MessageReceivedEventHandler(comm_MessageReceived);"<br />
<br />
<br />
plzzzzzzz help me!!!!!!!!!!!
modified on Wednesday, June 10, 2009 8:34 AM
|
|
|
|
|
sahu.shikha wrote: please Help me!!!!!!!!!!!!!
Do you think any one will have time to go through this lengthy code.
Better, pin point the problem so that people can help you.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
I don't read unformatted code; use the PRE tags (e.g. through the "code block" button under the edit box.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
hi all,
i was making a asp page with C# where i have display a data for a month or week for morning 8 am to 8 pm
for this shake am looping for whole month between 8am to 8 pm
can somebody suggest me something good as this logic looks like costly..
Thanks
vikas da
|
|
|
|
|
tasumisra wrote: asp page with C#
you need to first understand difference between asp and asp.net
tasumisra wrote: for this shake am looping for whole month between 8am to 8 pm
shakesake
tasumisra wrote: can somebody suggest me something good as this logic looks like costly..
Do you want to display the data or you want to create task which collects data between this time?
try to explain your problem clearly
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
woooow nice answer
suppose i am having a label x i want to assign the value that i have retrieved while executing the sql query for each day
so i want to do
x.text=retrievedvalue.Tostring()
vikas da
|
|
|
|
|
if you didnt understand my problem yet i can explain you with example..
vikas da
|
|
|
|
|
A formal analysis of the Algorithm you suggested would be O(n) which isn't so bad.
|
|
|
|
|
Thanks Ennis for your reply i will working with same piece of code
vikas da
|
|
|
|
|
Hi!
I want to catch all messages of an external application in my application. For exp. if user is using Microsoft word and if he/she clicks on file menu, my application should catch the message that File menu is clicked. I searched on SetWindowsHook API but could not get any C# sample similar to my target. Can anyone have any idea how to do it in C#?
|
|
|
|