473,322 Members | 1,259 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,322 software developers and data experts.

Need example of using WinAPI "CreateWindowEx" in c#

Need example of using WinAPI "CreateWindowEx" in c# any help would be
appreciated.
Nov 17 '05 #1
2 9793
I am really curious as to why you would want to call CreateWindowEx, but
nonetheless here is your answer.

You need to use a DllImport attribute. i.e. -

[DllImport("user32.dll")]

Of course there is going to be some data marsheling involved to convert clr
types to native.

A good resource for this is www.dotnetinterop.com

Take care!

Nathan Neitzke
Embry Riddle University
Daytona Beach, FL

"Patrick Blackman" wrote:
Need example of using WinAPI "CreateWindowEx" in c# any help would be
appreciated.

Nov 17 '05 #2
I wanted to create a richtextbox using the msftedit 4.1 dll instead of the
riched20.dll which is hard coded in the VS 2003 & 2005

"Nathan Neitzke" <Nathan Ne*****@discussions.microsoft.com> wrote in message
news:68**********************************@microsof t.com...
I am really curious as to why you would want to call CreateWindowEx, but
nonetheless here is your answer.

You need to use a DllImport attribute. i.e. -

[DllImport("user32.dll")]

Of course there is going to be some data marsheling involved to convert
clr
types to native.

A good resource for this is www.dotnetinterop.com

Take care!

Nathan Neitzke
Embry Riddle University
Daytona Beach, FL

"Patrick Blackman" wrote:
Need example of using WinAPI "CreateWindowEx" in c# any help would be
appreciated.

Nov 17 '05 #3

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

Similar topics

2
by: René Kjellerup | last post by:
Hi' all, just a short question, How do you color a button, created with the CreateWindowEx() API call I'm using the raw Windows API, and I don't intend to use MFC just yet. Not before I've...
1
by: Flack | last post by:
Hey guys, Here is whats happening. I have a StringBuilder, a TextBox, and a TabControl with one TabPage. On my main form, I created and displayed a fairly big maze. While the app is solving...
6
by: Yehia A.Salam | last post by:
Hello, I'm trying to create my own control derived from ScrollableControl public partial class qViewer : ScrollableControl{ public qViewer() { VScroll = true; AutoScroll = true; } ... }
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.