Displaying Variables In New Form

Hi to all, I am having trouble displaying a variable in a new window via the use of a button so when it is clicked a new window is opened and then the varibale is displayed in a label on the new window. Currently i can get it to open the new window but not displaying the variable value,when I display it on the main window in a label it works fine again via the use of a button, just does not seem to work with the extra step of opening a window and displaying it in the nwe window. I have provided the code that I have used below: -

1
2
3
4
5
		case btnSystem:
			DialogBox(hInst,MAKEINTRESOURCE(IDD_System),hWnd,DialogFunc2);
			OperatingSystem();
			SetDlgItemText(hdwnd,lbl_Operating_System,OperatingSystemVersion);
			break;

Thanks in advance!!!!
No Problem Guys ive got it sorted thanks anyway :D:D
Ive got the new forms to work but i also have a back button on there which takes you back to the main window but you cannot seem to get back into the window once you are out nor access any other the code that i am using is shown below: -

1
2
3
		case IDCancel: 
			EndDialog(hdwnd, wParam); 
			break;


Thanks for you help again :D
Topic archived. No new replies allowed.