Click here to Skip to main content
15,885,771 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I call a formC from formA and from formB, from formB it works but not from formA.
If you step through it form_load works, but nothing displays after, and the main form just becomes unclickable.

I call the forms by using frmGenP0053.ShowDialog().

Any help or advice ?

Thanx
Posted
Comments
CPallini 21-Jul-14 4:53am    
Without seeing the code is very difficult to provide help.
KaushalJB 21-Jul-14 5:00am    
Update your question with your code that you have applied in formA and formB..
Asgard25 21-Jul-14 5:24am    
The code is fairly basic, from where I call it "frmGenP0053.ShowDialog()"
And the form that is called only got this code on form_load, for now

If Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6.Printers.Count > 0 Then
'Iterate through all the installed printers
For Each prThis As Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6.Printer In Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6.Printers 'PrinterHelper.Printers
lstPrinters.AddItem(prThis.DeviceName)
Next prThis
End If

lstPrinters is a listbox
It's basically stuck on the previous(is this case formA) screen.
Mohammad Reza Valadkhani 14-Sep-14 8:07am    
did you add any changes to from initialization !?
i mean this :
public Form1()
{
InitializeComponent();
}
but still if you didn't share your code we couldn't notice what's wrong !

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900