Create A Form Instance???

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am interested to learn if anyone knows of a method to dynamically create an
instance of a form by use of the form name? This would be apposed to the
standard method of Set frmVar = New_MyForm.

An example of what I would like to do is something like this:

Function OpenFormInstance(strFrmName as string) as Boolean

Dim frmVar as Form

Set frmVar = New ?strFrmName?

....

At present I have a similar function that uses a select statement for all
forms that I know I would like to open as an instance.

Example:

Function OpenFormInstance(strFrmName as string) as Boolean

Dim frmVar As Form
Dim bStatus As Boolean

Select Case strFrmName
Case "MyForm1"
Set frmVar = New Form_MyForm1
bStatus = True
Case "MyForm2"
Set frmVar = New Form_MyForm2
bStatus = True
End Select

'if(bStatus) then Add frmVar to MyInstanceCollection
....
 
Devlin,

You're still not complying with the request you were given so nicely
yesterday. You asked this question TWICE just in the group
microsoft.public.access.modulescoding, now you're also asking it here. You
have the same folks going through each of these groups and their having to
sort through your same question multiple times when they could be helping
other folks because your question has been answered elsewhere, but they
don't know that.

1) Please pick the most appropriate group for your question and post it
there ONCE. Allow 10-15 minutes for your question to show up in the group
(the servers that these groups are on are very busy and it takes a while for
the posts to show).

2) If you believe that you MUST post to more than one group, add all of the
groups to the address list AT THE SAME TIME. This saves you from having to
post your messages multiple times and also allows all replies to go to all
of the groups at the same time so that folks who may be browsing through the
groups in a different order can see that you've already gotten a reply from
another group.
 
Hello Wayne,

First, I don't know what request you are talking about. Second I only
posted this question today. Third, I post in any category that is
appropriate. Some folks that might well have an answer to a question, don't
check every category. Most people don't live here and don't read every
single entry.

So with all due respect, thanks for the input, but I will will continue to
operate how I like. If you don't wish to read or answer my question - then
don't.

Hate to say it, but you come off as pretty offesnive, and you have certainly
offended me. And by the way, who died and made you the custodian chief of
the newsgroups anyway?

Sorry pal!
 
I found the message you so courteously informed me about. I have to say that
it was little more diplomatic than the one you left for me here. I
appologize if I have operated in some fashion that others here don't like. I
will look into options for making my posts available in each relevant
category. Keep in mind though... I don't have to "COMPLY" with anything
stated by you or anyone other than the people who make this site available.
So please, next time consider your words a little more carefully so that you
might not appear so abrasive.
 
I don't have to "COMPLY" with anything
stated by you or anyone other than the people who make this site
available.

No, you don't. and we don't have to have to answer any questions you might
have either.

There is at least one response to a question you posted yesterday informing
you that multiposting is considered bad, cross-posting good. You chose to
ignore it today (but maybe you didn't find all of yesterday's responses
because you forgot how many places you posted questions?). By doing so, you
run the risk of being ignored yourself. Consider that crossposting is less
work for everyone than multiposting. *Including you*. You are quite free to
make whatever choice you wish.
So please, next time consider your words a little more carefully so that
you
might not appear so abrasive.

Pot, meet kettle.
Devlin, meet my "ignore posts from" filter.
 
Hello fellows,

I don't know about you guys taking all this so seriously that you feel you
have to leave the messages you have. I'm not trying to offend anyone here.
I have operated the best way I know to do on this site. I wasn't aware of
the ability to "Cross-Post". However, there is no law governing this site
that says I can't do what I have in the past. I come here with a wealth of
knowlege to share with you and others, and in excange if there is something I
don't know, I get the same help back.

I don't care what you have to offer, it doesn't give you the right to speak
to me or any other member on this site like you have here. Further, I've
already said that I will look into the advanced options/cross-posting. I
also made my appolgies. So please, give it a rest already. Let's all be
friends here.

Thanks
 
Right, "a wealth of knowlege", except that you're clueless about netiquette.
You are the rudest person I've seen post in this group.

Apology - An acknowledgment expressing regret or asking pardon for a fault or
offense.

You have neither expressed regret nor asked pardon. In fact you defend your
behavior and tell others they have no right censure you for your actions.

"Let's all be friends"? I think not.

Plonk.
 
Devlin,

As you just stated, you "found" the message I was talking about. This proves
my point for me. You had so many unlinked message out there that even you
couldn't keep track of all of them. If you're going to send to more than one
newsgroup (and there are times that it is appropriate to do so), please send
to them all with one message so that the messages are linked. You will still
get the replies from all of the newsgroups that you post the messages to,
but you won't have to check and find all of the messages you posted because
they are linked. This is a simple request that will still let you post to
multiple groups is you wish, but then make it easier on everyone involved,
including you.

As far as not complying with anyone except for the folks who run this
newsgroup, please read their newsgroup etiquette page.
http://support.microsoft.com/default.aspx?pr=newswhelp#usenewsrules
http://www.microsoft.com/windows/ie/using/howto/oe/newsgroups.mspx#EDC
 
Hello Wayne and Others,

Looks like I really started something here. I do appologize if I operated
incorrectly to achieve information here. It surely wasn't something
intentional to piss people off. I do stand corrected. Forgive me for feeling
a bit offended by your message and please forgive my first message out to
you. If I was offensive any other time then again, I apologize.

Best To All
 
Devlin said:
Hello Wayne and Others,

Looks like I really started something here. I do appologize if I operated
incorrectly to achieve information here. It surely wasn't something
intentional to piss people off. I do stand corrected. Forgive me for feeling
a bit offended by your message and please forgive my first message out to
you. If I was offensive any other time then again, I apologize.

Best To All

Well if you're going to get all mature and reasonable on us then you definitely
don't belong in these groups.

(I'm kidding of course)
 
Thanks for dropping in there R*D (RUDE). Not that this was any of your
business, but what do you know about etiquette? Tell ya what.... Find a
passifier, stop your whining and find another way to impress your boyfriend.
And by the way, don't bust a vein trying to hand out your wealth of knowlege!
You'll only hurt yourself. Plonk!!!

Have A Great Day :)
 
I like your attitude!

Have a great one!

D.

Rick Brandt said:
Well if you're going to get all mature and reasonable on us then you definitely
don't belong in these groups.

(I'm kidding of course)
 
Back
Top