[RESOLVED] I dont know why my form doesnt show anything, even though it compiles
I attached my project files, i would be very grateful if anyone could help me check /correct why the form just shows without any values. Thanks in advance
Re: I dont know why my form doesnt show anything, even though it compiles
Originally Posted by RobDog888
Is your startup object Form1?
I dont understand what you meant by form1. I know that in order to display the form has to load, that i did. I have just one form, no instances, but have lbl and txt controls
Re: I dont know why my form doesnt show anything, even though it compiles
If you go to Project|Project1 Properties you'll see what Rob is talking about. However you should be OK. I downloaded your zip file from post #1 and when I extracted the files and ran the app your form showed up just fine.
Re: I dont know why my form doesnt show anything, even though it compiles
Originally Posted by MartinLiss
If you go to Project|Project1 Properties you'll see what Rob is talking about. However you should be OK. I downloaded your zip file from post #1 and when I extracted the files and ran the app your form showed up just fine.
Did it show with values on the txtboxes, cos mine showed without any values?
Re: I dont know why my form doesnt show anything, even though it compiles
Oh, I think I see what your talking about. You are wondering why the fields on the form are blank. The reason for that is that you are not putting anything into them. For example you should do something like
txtStartTime(0) = StartTime
at the end of your QC Sub.
Also I don't know where you got your code from but it looks like some of it doesn't belong. Rob pointed out Class_Initialize and there is also Sub Main which is something that is normally in a code module and not a Form module.
Re: I dont know why my form doesnt show anything, even though it compiles
"Must have a start up form or Sub Main()"...thats the error i got when i changed the project type to Standard Exe. Then when changed to ActiveX DLL, the compiler said:"No Public user control detected, press F1 for more info"...i dont understand whats going on here.
is it because i used class's (Public Property Get and Let subroutines)?
Re: I dont know why my form doesnt show anything, even though it compiles
Originally Posted by okaka
"Must have a start up form or Sub Main()"...thats the error i got when i changed the project type to Standard Exe. Then when changed to ActiveX DLL, the compiler said:"No Public user control detected, press F1 for more info"...i dont understand whats going on here.
is it because i used class's (Public Property Get and Let subroutines)?
What type of project do you want? If you want a standalone application (which is what you have now) then leave it as it is. Look for the topic called Choosing a Project Type and Setting Project Properties in help for an explanation.
Re: I dont know why my form doesnt show anything, even though it compiles
Originally Posted by MartinLiss
Oh, I think I see what your talking about. You are wondering why the fields on the form are blank. The reason for that is that you are not putting anything into them. For example you should do something like
txtStartTime(0) = StartTime
at the end of your QC Sub.
Also I don't know where you got your code from but it looks like some of it doesn't belong. Rob pointed out Class_Initialize and there is also Sub Main which is something that is normally in a code module and not a Form module.
Ok i have been trying to get this to work,thats why i added the Sub Main, cos of the error message. I even added what you asked me to, but still no changes
could you help me debug it and post it as zip in its working state cos i have exhausted all i knew at the moment?
Re: I dont know why my form doesnt show anything, even though it compiles
Originally Posted by okaka
Ok i have been trying to get this to work,thats why i added the Sub Main, cos of the error message. I even added what you asked me to, but still no changes
could you help me debug it and post it as zip in its working state cos i have exhausted all i knew at the moment?
Okay I don't know what you want the goal of your project is so this is as much as I can do. Look for 'new for my changes.
Re: I dont know why my form doesnt show anything, even though it compiles
Originally Posted by MartinLiss
Okay I don't know what you want the goal of your project is so this is as much as I can do. Look for 'new for my changes.
Thanks a bunch it works like magic, but only starttime has value others are blank...I have to figure out how to resolve that...i really appreciate it, 5 stars for you
Re: I dont know why my form doesnt show anything, even though it compiles
Now that we've helped you, you can help us by pulling down the Thread Tools menu and clicking the Mark Thread Resolved button which will let everyone know that you have your answer.
Re: I dont know why my form doesnt show anything, even though it compiles
Originally Posted by MartinLiss
Now that we've helped you, you can help us by pulling down the Thread Tools menu and clicking the Mark Thread Resolved button which will let everyone know that you have your answer.