alina.nazchowdhury 0 Newbie Poster

i made on screen keyboard program with visual basic 2008, i run it, its working great, i save it and then i wanted to open it again to review it, but its only showing me the code, i can not run it anymore.
Anybody give me an answer to my problem?

Dani AI

Generated

For 's on‑screen keyboard, the symptom described (Visual Studio showing only code and not running the app) usually means the wrong file was opened or a designer/project file is missing. Common causes: the single .vb source file or the compiled .exe was opened instead of the Visual Studio solution/project, the form's .Designer.vb was lost or corrupted, or the project startup object is not set.

Quick run checklist (Visual Studio 2008):

  • File -> Open -> Project/Solution and choose the .sln or .vbproj in the project folder (typically My Documents\Visual Studio 2008\Projects\ProjectName).
  • In Solution Explorer, right‑click the project -> Set as StartUp Project.
  • Project -> [ProjectName] Properties -> Application -> check the Startup object (main form or Sub Main).
  • Debug -> Start Debugging (F5) or Start Without Debugging (Ctrl+F5).

If the form opens as code and "View Designer" is disabled, check that both FormName.vb and FormName.Designer.vb exist and declare the same partial class (and namespace) and that the form inherits from System.Windows.Forms.Form. Example of the minimal expected declaration:

Partial Public Class Form1
    Inherits System.Windows.Forms.Form
End Class

If the designer file is missing or corrupted, recreate the form (Add -> Windows Form) and copy the code into the new form, or add the existing files back into a new project and ensure each .vb file's Build Action is set to Compile in Properties.

If only a compiled .exe is available and the original project files are gone, the original source cannot be recovered directly. Decompilers (ILSpy, dotPeek) can produce readable code but not always the original project structure or designer resource data; legal/ownership considerations apply. Regular backups or source control prevent this problem in the future.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.