Hi all, I have a name of a windows form in string type. I would like to generate it in runtime. How can I succeed this? ex: //my form class is MainPage let's say. //I have : string nameOfPage = "MainPage"; //I am searching a way of generating a form of type MainPage by just using variable nameOfPage Thanks a lot!
ayca
Posts
-
Generate a form by using form name as string -
we missed the shortcuts after implementing keypressed handlerHi, We had the shortcuts in our program. However, after implementing the keypressed handler, we cannot use the shortcuts. We will be very glad if anyone proposes a solution. Thanx in advance,
-
Need Urgent Help for a listener catching tooltipsI must urgently develop a listener which will catch tooltips (or focus) and will return their text/information to me. The thing I want to do is to get the text and use it to identify where my current tab/mouse/focus stands. Using MFC but any application sample/code/suggestion is acceptable. Thanx in advance.
-
Selecting the file names in open file dialogI overrided the open file dialog handler. I want to get names of files inside the file selecting area simultaneously while navigating through files with arrow keys. I see that domodal function opens the dialog but i cannot find how i can do the things above.Thanks for helps coming. (MFC)
-
In MFC, which event works when user clicks on close button?OK, I did the same. The window closes there is no problem with that. But the problem is; I am using a process which uses soundcard inside the program, I play some voice on soundcard, and I want to stop it before user presses close button and closes application. I have the function that closes my process, I implemented an event handler to the exit event on exit menu item, and it worked. I wanted to do the same for event that works when close button is pressed, but this time my application window closes but the process does not, it still works. And when I hook up Task Manager i see that my application is also still working, which shows me that my window is destroyed but the application is still running.
-
In MFC, which event works when user clicks on close button?Nope, it didn't work out:(
-
In MFC, which event works when user clicks on close button?I need to handle and override the event that works when user presses the close button on the upper right (on the left of minimize and maximize buttons)? Thanks;)
-
MFC: How to get name of file openedThanks! It worked.
-
MFC: How to get name of file openedI have created a single document application with MFC wizard. I want to capture file name being opened when user selects a file and opens it through the file open dialog box. How can I do this? Thanks