Database Reference
In-Depth Information
txtRetrieveText.AppendText("\n");
txtRetrieveText.AppendText("\n--- last 100 characters in text -----\n");
charsRead = dr.GetChars(1, textSize - 100, textChars, 0, 100);
txtRetrieveText.AppendText(new String(textChars));
return true;
}
else
{
return false;
}
}
6. To set the LoadText form as the start-up form, modify the Program.cs
statement.
Application.Run(new LoadText());
to appear as
Application.Run(new RetrieveText());
Build the project, and run it by pressing Ctrl+F5. You should see the results in
Figure 17-9.
Figure 17-9. Retrieving text from a table
 
Search WWH ::




Custom Search