|
-
May 15th, 2007, 12:00 AM
#1
Thread Starter
Member
[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.
-
May 15th, 2007, 01:21 AM
#2
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.
-
May 15th, 2007, 03:20 AM
#3
Thread Starter
Member
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
-
May 15th, 2007, 03:22 AM
#4
Re: [2005] Problem!
What happens if you delete the 'bin' and 'obj' folders under your project and then try running it again?
-
May 15th, 2007, 04:32 AM
#5
Thread Starter
Member
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.
-
May 15th, 2007, 04:42 AM
#6
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.
-
May 15th, 2007, 06:49 AM
#7
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.
-
May 15th, 2007, 06:51 AM
#8
Thread Starter
Member
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?
-
May 15th, 2007, 06:53 AM
#9
Re: [2005] Problem!
 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
-
May 15th, 2007, 06:54 AM
#10
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.
-
May 15th, 2007, 07:14 AM
#11
Thread Starter
Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|