473,395 Members | 1,761 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Invoking WinUI Controls

I know that we should use the Invoke method to access the methods of a
windows control when we are on a different thread than the main UI thread.
But what about properties? They are internally methods for CLR but we can't
create a delegate for a property. Do we have to implement wrapper methods
for properties? Thanks for replies!
Nov 15 '05 #1
2 1409
Button1.GetType.GetProperties works for me.

"Pierre" <pi*************@gmx.net> wrote in message
news:OC**************@tk2msftngp13.phx.gbl...
I know that we should use the Invoke method to access the methods of a
windows control when we are on a different thread than the main UI thread.
But what about properties? They are internally methods for CLR but we can't create a delegate for a property. Do we have to implement wrapper methods
for properties? Thanks for replies!

Nov 15 '05 #2
Hi Pierre,
You do can create delegate for the get or set accessor of a property. But
the easiest way is to create a wrapper method(s)
--
HTH
B\rgds
100

"Pierre" <pi*************@gmx.net> wrote in message
news:OC**************@tk2msftngp13.phx.gbl...
I know that we should use the Invoke method to access the methods of a
windows control when we are on a different thread than the main UI thread.
But what about properties? They are internally methods for CLR but we can't create a delegate for a property. Do we have to implement wrapper methods
for properties? Thanks for replies!

Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Prasad | last post by:
We are invoking a SQL DTS component (lets call it Comp1) built by us in another component (Comp2).Comp1 was built by creating the DTS package using the SQL DTS wizard and then saving it as a VB...
0
by: evilhanz | last post by:
I am using Mr. Lebans' RTF2 Control v1.4. I have managed to spell check its contents but it's a terrible kludge. Here's how I do it: 1) Put a textbox on the same form as the RTF control and...
4
by: Joanna Carter \(TeamB\) | last post by:
I am trying to invoke an event using reflection. ////////////////////// public class Test { public event EventHandler NameChanged; public void CallEvent() {
0
by: Lance Geeck | last post by:
I am trying to move from VB6 to .NET. I have the enterprise version of VS.NET. I want to be able to build an application using the Enterprise templetes. These include projects for...
0
by: Eric Sabine | last post by:
OK, I'm trying to further my understanding of threading. The code below I wrote as kind of a primer to myself and maybe a template that I could use in the future. What I tried to do was pass data...
25
by: MuZZy | last post by:
Hi, I'm currently rewriting some functionality which was using multithredaing for retrieving datasets from database and updating a grid control. I found that the grids (Infragistics UltraGrid,...
2
by: Ganesh Muthuvelu | last post by:
Hi, I have a web serivce created that contains several methods that are NON-PRIMITIVE types - meaning I cannot test it directly from the browser. So, I thought of devloping a client application in...
2
by: Oitne.Inside | last post by:
Hi there, I'm trying to make a basic app in asp.net written in C#. I managed to get it working in a appliaction, but when i make inside an webapplication, it wont work. Any ideas? private...
3
by: Thijs | last post by:
Hello everybody, I´ve got a problem that´s slightly complicated (at least to me it seems) so I will try to state it as clearly as possible. At a certain point in time, I start a second thread...
0
by: Jon | last post by:
Hi, "THREAD_UI" = thread under which the UI controls were created. "THREAD_XX" = another thread. "FUNC_UI" = function that needs to run on THREAD_UI. From THREAD_XX I need to start the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.