How open Form2 with button in Form1 i always get error

I am using visual c++ 2010 express and i want to make button in form1 and that button need to open form2
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
Form2::Show();
I do that and i get error this error: error C2653: 'Form2' : is not a class or namespace name 
PLEASE HELP ME OR MAKE SAMPLE WITH THAT

Can you make a sample with that
You have asked this question twice in these forums. The answer in the other thread shows you what you need to do.
People here will not write the whole code for you. They will just try to help you. What you are doing wrong here is trying to call a non-static member function as if it were a static member function. A non-static function requires an object in order to call
it. If you do not understand what this means, then you need to do some studying about object-oriented programming.
David Wilkinson | Visual C++ MVP

Similar Messages

  • I always get error opening the file

    I always get error opening the file Deprecated_ServerBehaviorsPanel_Support.zxp. My mistake I have Adobe Extension Manager DW says it requires 13 or later.
    the truth can not be ...
    Greetings juan manuel
    [spam removed by moderator]

    Do you have Extension Manager for CC?
    Adobe - Exchange : Download the Adobe Extension Manager
    You cannot use .ZXP extensions with any other extension manager.
    Nancy O.

  • I am having problemes opening attachments from adobe reader.  I'm getting error 1606 (an internal error).  Plz HELP!

    I am having problems opening attachments from adobe reader.  I'm getting error 1606 (internal error).  PLZ HELP!

    <http://kb2.adobe.com/cps/402/kb402867.html> might help.

  • Been watching HD TV shows on Apple TV for a month with my 1080i TV. Tonight getting error on TV, "This content requires HDCP for playback". All other media from remote desktop working OK, including 720p movie.  WI-FI network running normal. Help?

    Been watching HD TV shows over home WI-FI from remote desktop using Apple TV for a month with my 1080i TV. Tonight getting error on TV, even on recently watched shows, "This content requires HDCP for playback. Either your HDMI cable isn't properly connected, or your HDMI connection doesn't support HDCP.  Please reconnect the HDMI cable from your Apple TV to your HDTV and try again". All other media from remote desktop working OK, including 720p movie.  WI-FI network running normal at about 4.7 mB/sec.  Any ideas?  Thanks.

    Been watching HD TV shows over home WI-FI from remote desktop using Apple TV for a month with my 1080i TV. Tonight getting error on TV, even on recently watched shows, "This content requires HDCP for playback. Either your HDMI cable isn't properly connected, or your HDMI connection doesn't support HDCP.  Please reconnect the HDMI cable from your Apple TV to your HDTV and try again". All other media from remote desktop working OK, including 720p movie.  WI-FI network running normal at about 4.7 mB/sec.  Any ideas?  Thanks.

  • PC crashed. Attempted to install NEW copy of Elements 10 that I had in reserve. Always get ERROR MESSAGE 400 when trying to open the program. Please advise how I get around this error.

    My PC crashed. I rebuilt it from scratch and tried to install my unopened copy of Elements 10. I get error message 400 when trying to open the program. Windows 8.1 64bit

    if that's a network connection error, Sign in, activation, or connection errors | CC, CS6, CS5.5

  • PDF file won't open after saving it from the web.  get error message file is damaged.

    My PDF files won't open after saving them to Docs from the web.  I get error message file is damaged. Can someone help me correct this problem on Mac Air w Mountain Lion? 

    I wonder if the image is being embedded somehow and there is not enough scratch disk space to render the file. Just a hunch. Check your hardrive to see how much free space is available. Also, check your RAM and see if you can upgrade ( install more, install much more ) to max out as much RAM as possible. At a minimum, check for fragmentation and do a "Correct Permissions" via Apple's Disk Utility.
    But, weird things start happening when a font becomes corrupt. Not that one is, but it may be in your best interest to acquire a font management utility like Font Agent PRO ( if you don't have one already ). A good font management program can detect and disable corrupt fonts.
    CS1 and OSX10.4 should be fairly compatable with the 7500, but you may have gone as far as you can go. Think about upgrading to a G4 or a G5. I believe the 7500 was pre G3 ( which I think is the minimum requirements for CS1 ).

  • Error with Windows 7 Pro Activating I get error: 0x8007010B

    My Windows 7 was activated. Bud after a reboot i get de message that my 'Windows is not legitiem'. Now i can't  activate or change my licence key. I get error: 0x8007010B.
    I try: SLMGR.vbs /ato or slui.exe. Then i get the same error:0x8007010B (The directory name is not valid)
    The software protection service is running!
    suggestion. Thanks!

    You need to post your question in the Windows Genuine forums.  Read the directions below and follow along:
    MGA
    Diagnostic Report:
    To properly analyze and solve problems with Activation and Validation, we need to see a full copy of the diagnostic report produced by the MGADiag tool (download and save to desktop -http://go.microsoft.com/fwlink/?linkid=52012 )
    Once downloaded, run the tool.
    Click on the Continue button, after a short time, the Continue button will change to a Copy button.
    Click on the Copy button in the tool (ignore any error messages at this point), and then paste (using either r-click/Paste, or Ctrl+V ) into your post.
    One
    Issue Per Thread:
    Most Activation and Validation issues look the same, on the surface, but can have many different causes and fixes. This is why we ask for a diagnostic report and this is also why we ask that you create your own thread for your issue (in other words, don't post
    your issue in another person's thread). 
    It just becomes too complicated to try to troubleshoot multiple different issues in the same thread.
    New
    to the Forums?
    Note that if you are new to these forums, you may find that you are unable to post due to a restriction on the inclusion of links and pictures.
    Simply delete the only lines that contain links -  this will allow the remainder of the report to upload (and those lines are not generally
    critical to the report anyhow)
    Please do not read this sentence. Please ignore the previous sentence.

  • When i open my itunes of recent edition , i am getting error as  "itunes.exe has been set to run in compatabiltity mode " Though i reinstalled it several times from last days ,the problem is not solved. Please provide the solution asap.

    When i open my itunes of recent edition 12.0, i am getting error as "itunes.exe has been set to run in compatabiltity mode " Though i reinstalled it several times from last days ,the problem is not solved. Please provide the solution asap.

    Try iTunes for Windows: How to turn off Compatibility Mode.
    tt2

  • HT5706 I am trying to set up Apple TV with my Uverse WiFi, but I get errors when entering my password.  One site said that Apple TV doesn't work with WPA which Uverse uses.  Is there anyway around this or will Uverse and Apple TV just not work together.

    Trying to set up Apple TV with ATT Uverse.  I get errors when trying to enter my WiFi password.  One site says that Apple TV doesn't work with Uverse because it uses WPA for encryption.  If true, does that mean Uverse subscribers cannot use Apple TV?

    Spurs63 wrote:
    does that mean Uverse subscribers cannot use Apple TV?
    No, that's a rather silly conclusion.
    There are two options:
    stop using the crappy router provided by the ISP.
    Physically connect the ATV to the router via Ethernet.

  • Having problem loading Aol mail with Firefox ver 4. Keep getting error 8 msg. Any ideas?.

    INstalled Firefox 4 and now cannot laod the aol mail website. I can use ms explore with no problem. Get error msg 8 Problem loading application. AOL itself loads fine, just not mail.

    INstalled Firefox 4 and now cannot laod the aol mail website. I can use ms explore with no problem. Get error msg 8 Problem loading application. AOL itself loads fine, just not mail.

  • When I try to open the iMessage from my iPod I always get a message that the password is incorrect

    When I always open the iMessage from my iPod it always says that the password is incorrect and doesn't open

    iOS: Troubleshooting FaceTime and iMessage activation
    iOS: Troubleshooting Messages

  • JDev902: how open form with empty JTable?

    Background: Using the wizard I have created a number of JClient forms pulling their data from a BC-layer. However, some forms fill only very slowly because of the large number of rows of the underlying tables. Sometimes it would be better to open a form with an empty JTable and let the user formulate a query and pull in the desired data.
    Question: How do I open a form without automatically filling its JTable from the BC-layer? The old method of setting "...WHERE 1 = 0" seems rather - well - old! Is there a more elegant way?
    Thanks for any help!
    Sten Jones

    You can bring up the panel that the JTable is contained in without executing the query on it (remove executeQuery()) call. See JClient component demo on the JDeveloper HowTo pages on how to detail data-binding and query execution. Basically what these panels do is not setup the UI till it's displayed and then perform the binding. You can take it a step further by also not executing the query and executing it only after the user says so.
    Another way would be to "force" the startup to be in find mode. So, instead of executing query for the panels, you may want to set the table in find mode so that the user is able to enter query right up, when the UI comes up.

  • Opening browser with button on applet

    I'm writting an applet and I want to open another page written in html with a simple click on a button on my applet. I found a class BrowserLauncher and this works in an application but not in an applet.
    Can someone help me with my wish to be able to open a new html page from my applet?
    Greetz

    That was the big problem. I couldn't use showDocument because I used different JPanel to show my applet. I couldn't take my applet as a parameter of my constructor of my JPanel. Now I decided to use AppletContext as parameter of my JPanel. But is stil doesn't work I get a MalformedURLException. Nothing to do with my applet of course.

  • How can I open FireFox with the 'Find' box/bar always open?

    When FireFox opens, click 'Edit' and 'Find'. This opens the box/bar at the bottom of the screen. I use it so often, I would like FireFox to open with the 'Find' box/bar already open.

    You are welcome. Happy New Year, Aivas.

  • How to relogon with button? [SOLVED]

    forms10g, db10g
    I'd like to do the "relogon" (logoff and logon with different user in the same form in runtime) on button click. Is this possible without using on-logon trigger?
    I made this with syntaks LOGON(muser,mpass||'@'||mconnect) on WHEN-BUTTON-PRESSED but it doesn't work. Compiling is OK.
    thanks for help
    m.
    Edited by: marussig on Jul 7, 2010 4:22 PM

    Hi,
    You have to logout first. Try,
         LOGOUT;
         LOGON('<user_name>, <password>@<connection_string>', FALSE);Regards,
    Manu.
    If my response or the response of another was helpful or Correct, please mark it accordingly

Maybe you are looking for

  • BDC for ME21 Po create

    Hi ALL, Iam Creating BDC Program bu using ME21 for Uploading PO. Iam getting error at Income term2 in the Second Screen of ME21. Iam Passing this value through Excel Sheet But event then it is not picking. When i check in debugging the value of incom

  • Does Aperture have a salt and pepper filter

    I have scanned around 3000 photos and imported into iPhoto.  On enlargement many have dozens of small white spot and tiny hair imperfections.  In iPhoto these can be deleted individually by using the retouch tool.  Does Aperture (or hidden in iPhoto)

  • R11: ICO FLOW issues

    Hi guys I'm trying to perform the simplest interco flow transaction. Org 1 (in legal entity A) ships good to customer from org2 (in legal entity B) Everything works until I try to create the intercompany AR invoice on org 2. I get the following error

  • ClassNotFoundException...works in JSP???

    I have a JSP page that for now is doing validation of a user logging in. This works fine...checks the data against the db and redirects to a page based on whether valid or not. I have built a servlet(better way I assume) to do this now. I am getting

  • Do I need and how to secure the Unix/Linux agents authentication and communication to RMS?

    Hi everybody We have an environment including SCOM 2012 SP1, 10 windows server, 40 linux servers and 10 HP-UX servers. all of them are joined a trusted domain. I know the authentication method between windows agents and management server is kerberos.