Results 1 to 11 of 11

Thread: [2005] Problem!

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2006
    Posts
    63

    Resolved [2005] Problem!

    Hey I've got a problem, and its been really annoying, I've tried to fix it for a while now but no luck.

    This is a simple explain.
    I have a form and when i put a button on the form then build it and run it the button doesn't appear.

    The button is visible in the properties, this doesn't only happen with buttons but with all the other objects. I hope there is a simple solution because this has been limited my project for school that i am doing. I have even redone the project twice, but each time i encounter the same project after I've done like 50% of the work.

    Another example is when i added this code into of the the form loads.
    Code:
    Me.Height = Screen.PrimaryScreen.Bounds.Height
            Me.Width = Screen.PrimaryScreen.Bounds.Width
    If I'm not incorrect it should make it so the application fills the screen.
    But this isn't working. (this could be another problem)

    But if anyone can help, i would be very thankful, i need to try and finish my project.
    Thanks
    Last edited by Wulfgur; May 15th, 2007 at 04:36 AM.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2005] Problem!

    If controls are disappearing without any help from you then you IDE must be corrupt. I would suggest a reinstall in that case.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Member
    Join Date
    Oct 2006
    Posts
    63

    Re: [2005] Problem!

    I have re-installed, but it still did not work. I am using the Visual Basic Express Edition.
    Do you have any other suggestions?
    Its not that they disappear, i have multiple buttons on the form. Its just after a while when i try to add a button it doesn't 'appear on the form'.

    So i have a few buttons say "X" and "y"
    when i run the program i can see x and y.
    But now when i try to add "z"
    it appears in design view
    But when i run the program it doesn't appear on the form.
    (its as if the program isn't receiving the update)

    Thanks if you can help

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2005] Problem!

    What happens if you delete the 'bin' and 'obj' folders under your project and then try running it again?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5

    Thread Starter
    Member
    Join Date
    Oct 2006
    Posts
    63

    Resolved Re: [2005] Problem!

    Hmm i did that and the project isn't building, the build is 'failing'
    It says 'build failed' at the bottom left.

    Visual studio cannot start debugging because the debuf target "C:\....\debug\project.exe is missing, please build the project and retry or set the Outputpath and AssemblyName properties appropriately to point at the correct location for the target assembly.

    I tried to rebuild and build the project but it says 'build failed'

    Hmm, just reopened the project again, and it somehow re fixed itself.

    Thanks for the help, i appreciate it very much. Will let you know if it comes up again.
    Last edited by Wulfgur; May 15th, 2007 at 04:35 AM.

  6. #6
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2005] Problem!

    You probably weren't seeing your controls because the build was probably failing and you were just running an old version. The IDE warns you by default so if that was the case it wasn't warning you then you must have turned that warning off.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  7. #7
    Frenzied Member Phill64's Avatar
    Join Date
    Jul 2005
    Location
    Queensland, Australia
    Posts
    1,201

    Re: [2005] Problem!

    Might be a bit late pointing this out, but you should use more appropriate topic names, not just "problem!" a lot of people will ignore your thread for that.

  8. #8

    Thread Starter
    Member
    Join Date
    Oct 2006
    Posts
    63

    Re: [2005] Problem!

    Yea i didn't know what to call it, could you give me an example of what i could call this thread?

  9. #9
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2005] Problem!

    Quote Originally Posted by Wulfgur
    Yea i didn't know what to call it, could you give me an example of what i could call this thread?
    Controls Not Visible When Debugging
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  10. #10
    Frenzied Member Phill64's Avatar
    Join Date
    Jul 2005
    Location
    Queensland, Australia
    Posts
    1,201

    Re: [2005] Problem!

    hmm, perhaps something like

    Control not visible at runtime
    Button not appearing after build
    Button in designer, but not in build

    Something along thsoe lines is fairly descriptive. Even "Control problem" would be more descriptive than just problem.

  11. #11

    Thread Starter
    Member
    Join Date
    Oct 2006
    Posts
    63

    Re: [2005] Problem!

    Ok thanks, from now on i will try make the topic more specific.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width