R
R
Roman2015-01-26 08:43:01
SQL
Roman, 2015-01-26 08:43:01

How to implement a SQL connection in a new form?

Who worked with databases in the studio more professionally than me, please enlighten! There was an idea. There is an MdiContainer in which a form with a table is dynamically created (in which a programmatic connection to the Access database and a selection of all rows). And here the most incomprehensible thing happens -
newMDIChild.MdiParent = this;
newMDIChild.Show();
Appears for half a second. And disappears.
newMDIChild.ShowDialog();
Everything is fine. But that doesn't fit. The form is initialized beforehand. I saw exactly the same example with sdf databases - everything works well in a container there. What's the problem, toaster? Hope for help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Papin, 2015-01-26
@Exotic33

Appears and disappears - abnormal behavior. Cling to the debugger and see step by step what the problem is.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question