HOW TO: Use the Windows Operating System Controls

  • Thread starter Thread starter John Smith
  • Start date Start date
J

John Smith

HOW TO: Use the Windows Operating System Controls

I can't use the Framework Controls as I wish
Is there a simple and fast way to use the Windows Operating System
Controls instead?
 
* John Smith said:
HOW TO: Use the Windows Operating System Controls

I can't use the Framework Controls as I wish

Why not?!
Is there a simple and fast way to use the Windows Operating System
Controls instead?

Windows Forms controls /are/ Windows "operating system" controls.
 
Herfried said:
Why not?!
Because they are not well behaved controls
Windows Forms controls /are/ Windows "operating system" controls.
I am sorry to disagree, the Framework Windows Forms Controls act as
inherited controls.
For instance, you can't use the Operating System SendMessage to Set the
Items from a List Control (ListBox or ComboBox) and then use the
Items(i) to retrieve them.

-----------
I am looking for something like Forms 2.0 controls that seem to agree
with the Operating System. I believe that Forms 2.0 controls can't be
distributed with a VB application.

Do have any URL about this? Even if it is for C++?
 
John,

John said:
Because they are not well behaved controls
LOL...

I am sorry to disagree, the Framework Windows Forms Controls act as
inherited controls.

Yes, but internally, they are based on the Win32 controls.
For instance, you can't use the Operating System SendMessage to Set the
Items from a List Control (ListBox or ComboBox) and then use the
Items(i) to retrieve them.

That's maybe a synchronization problem between the operating system's
management of the control and the .NET wrapper.
I am looking for something like Forms 2.0 controls that seem to agree
with the Operating System. I believe that Forms 2.0 controls can't be
distributed with a VB application.

Forms 2.0 were /not/ operating system controls and they must not be
distributed.
Do have any URL about this? Even if it is for C++?

Have a look for 'CreateWindowEx', the 'NativeWindow' class, etc., in
MSDN, but I don't think this will make you lucky.
 
Herfried said:
John,




Yes, but internally, they are based on the Win32 controls.



That's maybe a synchronization problem between the operating system's
management of the control and the .NET wrapper.



Forms 2.0 were /not/ operating system controls and they must not be
distributed.



Have a look for 'CreateWindowEx', the 'NativeWindow' class, etc., in
MSDN, but I don't think this will make you lucky.
I think you are right about it.
Developing controls from 'scratch' takes a long time.

Tnaks anyway
 
* John Smith said:
I think you are right about it.
Developing controls from 'scratch' takes a long time.

What exactly do you want to do, why do you need p/invoke? Maybe there
is a better solution...
 
Herfried said:
What exactly do you want to do, why do you need p/invoke? Maybe there
is a better solution...

I want to enhace simple functionalities like the full word search for a
listbox (you type part of a word and it becomes selected)

Want to use the ItemData for any List Control

Want to be able to avoid Text Change in a ComboBox when you drop it down.

I already implemented partially those functionalities but there is
allways something missing.
 
Back
Top