Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Using a Button to load a window/form using Run.  THISBACK syntax  
	
		
		
			| Re: Using a Button to load a window/form using Run.  THISBACK syntax [message #44353 is a reply to message #44352] | 
			Fri, 27 February 2015 23:23    | 
		 
		
			
				
				
				  | 
					
						  
						Klugier
						 Messages: 1106 Registered: September 2012  Location: Poland, Kraków 
						
					 | 
					Senior Contributor  | 
					 | 
		 
		 
	 | 
 
	
		Hello Edward, 
 
You should create instance of "Form1Dlg" and run it instead of "Form1": 
GUI_APP_MAIN
{
	Form1Dlg().Run();   // ***** Displays Form 1 perfectly ****
	//Form2Dlg().Run();  // ***** Displays Form 2 perfectly ****
}
 
 
It seems you have unnecessary class "Form1". In this class you didin't define any implementation of "btnForm2" action. So, for me it seems that this is school mistake   
 
Sincerely, 
Klugier 
		
		
  U++ - one framework to rule them all.
		[Updated on: Fri, 27 February 2015 23:25] Report message to a moderator  
 |  
	| 
		
	 | 
 
 
 |  
  
 
Goto Forum:
 
 Current Time: Tue Nov 04 12:06:02 CET 2025 
 Total time taken to generate the page: 0.05701 seconds 
 |