when I run my project then a msg was shown:
"object doesn't support this property or method"
but when I press ok then the project run. no problem occurred.
Now what I need to do?
abu taher
34
Practically a Posting Shark
Recommended Answers
Jump to PostHit CTRL+Break and see which/where code is highlighted. Do you have Option Explicit (Require Variable Declaration) turned on?
Good Luck
Jump to PostOkay, first future reference. In VB's IDE, goto the menu>Tools>Options and put a check in the box next to where it says Require Variable Declaration.
Okay, now for your problem. You are checking Form1's windowstate and setting form2's. Is form2 even loaded? If not then the problem may be …
Jump to PostJust noticed something, you have typed the word "from" and not "form". Did you happen to misspell this?
Second, in design view, are you sure that the form you want to open is named form2?
Third, try...
If Form1.WindowState = vbMaximized Then Load Form2 Form2.WindowState …
All 11 Replies
vb5prgrmr
143
Posting Virtuoso
abu taher
34
Practically a Posting Shark
vb5prgrmr
143
Posting Virtuoso
abu taher
34
Practically a Posting Shark
vb5prgrmr
143
Posting Virtuoso
abu taher
34
Practically a Posting Shark
Vineeth K
10
Posting Whiz in Training
abu taher
34
Practically a Posting Shark
vb5prgrmr
143
Posting Virtuoso
abu taher
34
Practically a Posting Shark
abu taher
34
Practically a Posting Shark
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.