Creating a Calendar control dynamically?

willisgt

Active Member
Licensed User
I have a need to create a Calendar control dynamically (e.g., at runtime). I'm looking for something like AddCalendar. Can't seem to find any such thing.

Is this possible?

Gary

:sign0163:
 

specci48

Well-Known Member
Licensed User
This is not possible. :sign0013:
As a workaround you can set the visible property to false and then set it to true on runtime when you really need the calendar control.


specci48
 

willisgt

Active Member
Licensed User
Well then, I guess it's time for another cheezy hack...

:sign0148:
 

Cableguy

Expert
Licensed User
there are lots of callendar controls dlls...
try to google them...
they can / must be added in runtime...
 

willisgt

Active Member
Licensed User
I certainly wouldn't want to start sounding like a newbie on the forum again, but...

Do you mean that we can use non-Basic4PPC dll's in our programming?

If that's the case, would one of the experts provide a little more information?

Gary
 

agraham

Expert
Licensed User
Do you mean that we can use non-Basic4PPC dll's in our programming?
Usually only with a wrapper or interface DLL. In general there are three types of DLLs.

"Normal" dlls that are just native code packages of precompiled functions with a list of entry points. Most of the Windows API dlls are of this form. These can be called by a .NET program using what is termed P/Invoke (Platform Invoke) which is similar to "Declare" in previous versions of Visual (and earlier) Basic. These dlls cannot be called directly from B4PPC but can by means of an intermediate library - like my Flite device speech library.

COM (Component Object Model) or ActiveX dlls are more complex beasts which support some object oriented programming features such as memory managment and reference counting. They can only be called from a .NET app via what is termed an "interop" assembly so they too need an intermediate library. My desktop speech library calls the "Microsoft Speech Object Library" which is such a COM dll.

.NET dlls or assemblies are precompiled .NET code like all the B4PPC libraries. In theory some might be usable directly by B4PPC but it will depend upon how they are organised. I have to admit I don't know exactly what the requirements are as I have only ever used .NET dlls that I have written myself.

P.S. My ControlsExDesktop library has a DateTimePicker that looks like the B4PPc calendar. You can add that at runtime. It is only for the desktop though as the library name implies.
 
Last edited:
Top