Super Updated Version, Part 2

In my early attempts, which I unfortunately did not document, I just had the code insert the word “Exhibit” plus a counter, all at a hard-coded font and size. It took me a while to figure out how to make iText7 do that. Of course, it would be far better to give users the choice…

Continue reading Super Updated Version, Part 2

Super Updated Version, Part 1

I’m realizing how difficult it is to go step-by-step, documenting everything! I’ve made some big changes and added a bunch of functions. I’ll explain everything in detail, and of course, you can download the code at the end. Here are the application settings. They are bound to the controls of some of the forms. The…

Continue reading Super Updated Version, Part 1

Adding a Single-record Form

So far, we have a form that displays clients in a read-only grid. Now we need a CRUD form, that is, a form that will let us create, update, and delete clients. We’ll create one from the GenericForm template and call it ClientForm. Notice that the form’s Text property, which is reflected as the form’s…

Continue reading Adding a Single-record Form

Let’s Run!

At this point, we have dropped a data source onto the form, and Visual Studio has done its code generation thing. We should be able to run the application and, even though we haven’t entered any data, we should at least get an empty form. So press F5 or click on the Start button. Hey,…

Continue reading Let’s Run!

Adding a Data Source to the Form

Create a new Data Source based on a database. You’ll need to add a new connection too. Since you installed dotConnect, SQLite should appear as an option when you add the new connection. Locate and select the database TheBooks.db. Save the connection as TheBooksConnectionString, if you’d like. Then select the Clients tables and call the…

Continue reading Adding a Data Source to the Form

Copying a Form

You know, that was a pretty cool form we made. The DGV can display rows from a table, and the sidebar on the left can have buttons and links. It seems like it could be used in different places. Can we keep it and just use a copy? In C#, you can base a form…

Continue reading Copying a Form