Modifying UserControl from main Form1.cs

Hi Friends, Much obliged for the help I have received thus far. I have come across a new problem which I do not understand. In Form1.cs I have created this event. public void TabControl1_SelectedIndexChanged(Object sender, EventArgs e) { UserControl1 instance = new UserControl1(); instance.TabChange(2); } The TabChange method then does this: public void TabChange(int tabno) […]

Closing interrupted FtpWebRequest

Hi all, Here is my question: How can determine if I've lost connection with the server through a FtpWebRequest? My FTP client is nearly done, but I'm experimenting with my client in the following ways: Disabling the internet adapter while a file is being downloaded. Stopping vsftpd instance on the server while a file is […]

Using iTextSharp, can’t change /Contents of annotation (x-post StackOverflow)

Link to StackOverflow question here. I'm trying to change the text in some PDF annotations using iTextSharp. Here is my code: void changeAnnotations(string inputPath, string outputPath) { PdfReader pdfReader = new PdfReader(inputPath); PdfStamper pdfStamper = new PdfStamper(pdfReader, new FileStream(outputPath, FileMode.Create)); //get the PdfDictionary of the 1st page PdfDictionary pageDict = pdfReader.GetPageN(1); //get annotation array PdfArray […]