Dear Members,
Greetings of the day...
I am facing an irritating problem with CrystalReportViewer (CRV). in a winform there are some textboxes and command buttons. when i click a button for view a crystal report, it pops up on the form hiding the other controls behind itself.
my problem affects me at the time of coding. when I want to see or change (size or place) the control, the CRV always remain on front (like it 'Bring to Front' applied) of the controls. so, I can not see the controls (textbox etc.)
Is there any way to create the CRV at runtime by coding like I do the same with DataGridView. Please note that the CRV remains hidden at the time of the form load as I have wrote the code that way. a buttons click event shows the CRV. but at the time of coding, it appears continuously...
Please see the codes I have searched and wrote...
the library I have added is..
using CrystalDecisions.Windows.Forms;
//the code.
CrystalReportViewer crvOne = new CrystalReportViewer();
crvOne.Height = 350;
crvOne.Width = 650;
crvOne.BringToFront();
crvOne.Show();
crvOne.Height = 350;
crvOne.Width = 650;
crvOne.BringToFront();
crvOne.Show();
but it's not working. any help would be appreciated.
Thank You.
Mayank Jani

Amit GuptaRank #190 · 12.8K reputationPosted Mar 19, 2018, 6:06 AM EDT
Amit GuptaRank #190 · 12.8K reputationPosted Mar 18, 2018, 11:18 PM EDT
Mayank JaniRank #2,449 · 575 reputationPosted Mar 19, 2018, 5:21 AM EDT
Amit GuptaRank #190 · 12.8K reputationPosted Mar 18, 2018, 8:55 AM EDT
Mayank JaniRank #2,449 · 575 reputationPosted Mar 18, 2018, 10:03 PM EDT
Mayank JaniRank #2,449 · 575 reputationPosted Mar 19, 2018, 4:28 AM EDT
crvOne.Height = 350;
crvOne.Width = 650;
crvOne.BringToFront();
crvOne.Show();
Amit GuptaRank #190 · 12.8K reputationPosted Mar 19, 2018, 4:40 AM EDT