Windows Forms Control Not Showing Up - winforms

I'm trying to create a loading screen in my Windows Forms application (written in C++). I create a class "LoadingScreen" which adds a label to itself in its constructor. I then create an instance of it and call Show(). When I run the application, the form displays except the control appears as a transparent gap in the form.
Any ideas why this is?
Thanks in advance.
EDIT: Also, when I try the same code in another application it works. My main application splits the code across a header and a source file. Is it possible this is where my error is?

Related

After adding a tab control and copying and pasting the text fields + buttons into a tab my windows form no longer works

I'm a C# noobie and have recently made a CRUD app with windows forms and decided to upgrade it a little by adding a tab function to add new functionalities to it but after copying and pasting the design of my windows form into the TabControl field, the design shows up but the CRUD system itself no long works.
I feel like I might need to call the TabControl in the form design code but have no idea how I'd do that. All of my CRUD code was made directly on the WinForm design class.
As #Idle_Mind mentioned in the comments, after pasting controls into the new tab all the events wired to them were wiped. After rewiring them the problem was solved!

How do you run a VTSO Word project in the same solution as the start-up project during run-time and pass variables to the content controls?

In short I want to pass variables to a vsto project from my windows form project and I don't know how.
I currently have a windows forms project that is near completion with one major piece missing. I have been searching for about two work days for a way to open a VTSO word project in the same solution with a procedure in my windows form project. I know I can code my project to open the word document and my code for default values for the content controls in the "ThisDocument.vb" display correctly. I have added references to my VTSO project to refer to my forms project in an attempt to use variables previously collected to fill in my content controls text, but I have no clue how to do this. Will I have to open the word document and use interops to modify the document separately? I would prefer my answer in VB.Net but if C# is what ya know, I'll take anything to help.

Error when creating crystal report in WPF application

I have a WPF application, PRISM + Unity, and have created a ReportingModule.
As of yet this is proof of concept.
My module simply has a single report that I want users to be able to select and view. I have the report.rpt file created and can preview the report, seeing data, however when I try and run my application I get an error
"The type or namespace name 'ReportingModule' could not be found (are you missing a using directive or an assembly reference?)". If I comment out the code behind the .rpt file I can run my application. Why would simply creating a crystal report file break my application????
Confused.
Add a using directive to your code or add a reference to your project to be able to use Crystal Reports. And if you add your sample code you may even receive more concrete help.

Question about changing dialog box layout

Hey, I just got started designing dialog boxes and windows forms, and I had a basic question.
When you use something like a windows installer, it has a next button, and when you click it the dialog completely changes layout in moving on to the next step. My question is, is this done by loading a completely new dialog box and getting rid of the previous one. Or is there some way of making a dialog with multiple pages/states (not sure what to call them).
Thanks in advance for any help.
Wizards are usually made using the property sheet control from the Common Controls library. They do not create a new dialog, but use something similar to tab pages instead.

windows application user control in wpf

I have created a user control in windows application and used it in wpf.
The user control is in a seperate project and solution than that of wpf.
I have exposed some properties in the user control and tried to use it in a wpf form.
I have used it in the WindowsFormsHost element and also added WindowsFormsIntegration reference.
I am facing the following problems:
I am able to see the user control in the toolbox but it is disabled.
I am able to design the user control in xaml and give values to properties. I am also getting the properties in intellisense but the same is not getting reflected/applied during design as well as run time.
I am not able to see the control in the properties window even after selecting it. I am just able to see WindowsFormsHost in the property window.
I am not able to find any sample project or explanation of this in code project. If there is any then please do let me know.
Also I am able to use this user control in a windows application very easily and it is working fine. Am i missing anything for wpf?
I can give the source code if required but i dont think it will be of much help as i have not done anything fancy.
Is the control project compiled or just added in the solution?
Is the control project compiled as Debug or Release?
What language is the control compiled in?
"Walkthrough: Hosting a Windows Forms Control in WPF"
Possible help:
http://social.msdn.microsoft.com/forums/en-US/wpf/thread/2fd0d9dd-eaa9-494d-8ec4-d896c33732d6

Resources