Hi, thanks for the reply. I'm sorry that it was my problem i added the event handler twice inadvertently.
Strength is life, Weakness is death. --- Swami vivekananda
Hi, thanks for the reply. I'm sorry that it was my problem i added the event handler twice inadvertently.
Strength is life, Weakness is death. --- Swami vivekananda
Hi All, I am handling keypress event for a RichTextBix control on my windows form. But, when i press a key on it, why its entering two times into keypress event code instead of once.?? I have added event handler only once on my form. could anyone please suggest me how can I overcome this problem? Thanks, Durga.
Strength is life, Weakness is death. --- Swami vivekananda
Hi All, I have a RichTextBox and two buttons placed on the windows form. Where user can type the text he wants, and inserts any picture by clicking "insert picture" button. Whenever he clicks the "EXPORT" button, i want to retrieve all the text from the Richtext box to a string variable. Now, my problem is that, i can save the text but if there is any picture inserted in the message, it is indicating as "space" in the text. I want to insert a special character ( like any character between 127 - 255 in ascii table) in the place of that picture. How could I do that? could any one please guide me.. I'm really lost in this issue since 3 days! :(( Here i'm posting my code here!: pic = ImageSelect.pbSelected[i].Image; InsertImage(pic); private void InsertImage(Image pic) { Bitmap myBitMap = new Bitmap(pic); Clipboard.SetDataObject(myBitMap); DataFormats.Format myFormat = DataFormats.GetFormat(DataFormats.Bitmap); maskedTextBox1.Paste(); if (richTextBox1.CanPaste(myFormat)) { richTextBox1.Paste(myFormat); } else MessageBox.Show("cannot paste"); } private void btnExport_Click_1(object sender, EventArgs e) { //richTextBox1.SaveFile("D:\\b.txt"); strMessage = richTextBox1.Text; MessageBox.Show(strMessage); } Thanks, Durga.
Strength is life, Weakness is death. --- Swami vivekananda
modified on Wednesday, February 20, 2008 1:57 AM
Hi all, I have a textbox control in my windows form, where user can type the message and insert any picture he wants and export it. If he selects any picture, i am appending the message like "Picture picno Inserted" to the textbox. Now, my problem is, if he uses backspace key to delete anything in the message, the "Picture inserted" message should not get deleted. Means, that particular string has to be greyed out & disabled in the textbox. So, that i need not get bothered about calculating length for each keypress event. Could any one please tell me how can I achieve this? Meanwhile, i tried of selecting the text & changing the color of the selected text but didn't get how to disable that particular text... And also i tried of using RichTextBox too but in vain. Thanks in aDvance, Durga.
Strength is life, Weakness is death. --- Swami vivekananda
Hi, you can go through this link http://nishantpant.wordpress.com/2006/11/02/exporting-data-to-excel-from-a-windows-forms-net-application/[^] Regards.
Strength is life, Weakness is death. --- Swami vivekananda
Hi, thanks for replying.. I am using .net 2.0 & yes i got SSLProtocols. but didn't find any "usessl" or "enablessl" method... if you are aware of anything, plz help me out... Thanks.
Hi All, I am trying to develop POP3 application in C# and have successfully managed to create a connection with POP3 server on port 110. here is the sample code ihv written for this: Server = new TcpClient(POPServ.Text, 110); NetStrm = Server.GetStream(); RdStrm = new StreamReader(NetStrm); Inorder to retrieve messages from a service such as Gmail, i need to enable the SSL. I don't want to use any pre-built component. Is it possible to use SSL functionality without using any 3rd party components?? if so, could anyone please assist me on this... Meanwhile, I have tried to connect to gmail server using the port 995. Its connected successfully, but my application getting hanged at particular line of code: (bolded below) Server = new TcpClient(POPServ.Text, 995); NetStrm = Server.GetStream(); RdStrm = new StreamReader(NetStrm); plz help me on this issue... Thanks in Advance.
Is it showing any error??
Thanks for the kind help Pallavi.. My problem solved now..:-D
Hi, yup.. it worked very well now...Thank youveryyy much, once again thanks a lot..:-D
I have tried it already, but it doesn't show up anything.....:confused:
Hi Hirdesh, thanks for replying... I have included the where condition but its showing.. "Syntax error (missing operator) in query expression '[Sno] = Sno[1]'." here is code snippet: int i = dgRow.RowIndex + 1; str = ((TextBox)myGridView1.Rows[dgRow.RowIndex].FindControl("txtPartNo")).Text.ToString(); strQuery = "UPDATE [RfqInfo] SET [Partno]= '" + str + "', [mfg] = '" + str1 + "', [qty] = '" + str2 + "' WHERE [Sno] = Sno[" + i + "]"; plz help me...
Hi Murali, i hv tried using EditItemTemplate as u said... but itisn't showing any textboxes there...:confused: fyi, i'm a girl..:laugh::laugh: Thanks, Durga.
Hi Pallavi, thanks for reply.... I have tried it by debugging. oh but still, same problem.. the value gets stored in the last row position only...:rolleyes: can u plz give me any other advices..... Thanks, Durga.
Hi Everyone, I have 4 columns GridView.. One is BoundField This column is binded to Sno field from my Access Datasource.. 2nd, 3rd & 4th columns are TemplateFields (PartNo, Manufacturer, Qunatity) .. In this Template Fields, I have textboxes./. Now, Below this Gridview i hv a Button (btnSubmit). What I am trying to do is when user enters values in to textboxes & click on Submit button, all the values should get update in the database.. To achieve this, i have written the following code: _______________________
Hi Navneeth, Thanks for the help! this piece of code solved my problem! thanks once again!:)
Hi, Thanks for the help... should I write it in "button_click" event..?:confused: & also kindly plz tell me how to use the Update command to update database.... plz.. thanks in advance!
Hi, I'm designing a online purchase form... i'm using gridview for this: here is my source code: below this i hv a "submit button". whenever user enter values in the textboxes & click on sumit button values should update in the database... how could I do that??.. Any one please help me. its urgent... Thanks in Advance.
here is my source code: Is that UpdateCommand true??