|
Map modes are a GDI thing so the .NET equivalent is the stuff found in GDI+. In this case the Graphics object has a PageUnit and PageScale property as well as Transforms for doing more complicated things.
If you have Petzold's Programming Windows with C#, chapter 7 of his book is the chapter to look for regarding that.
James
Sig code stolen from David Wulff
|
|
|
|
|
Thanks. My problem is that I have to take display data generated by an Visual C++ ActiveX control using a mm_Anisotropic transformation and display that same data in exactly the same way in a .Net Windows form control.
I'm not a real reverend, I just play one on CP.
|
|
|
|
|
No. The entire point of the project is to get rid of the activex control altogether.
I'm not a real reverend, I just play one on CP.
|
|
|
|
|
Hi.
Is it possible to chage the ForeColor in a ReadOnly TextBox? I haven't succeeded. If I set ReadOnly=false it works, but otherwise the text just comes out in black.
Regards
/EnkelIk
|
|
|
|
|
Hi again.
Using RichTextBox in stread of an ordinary TextBox seems to solve this but if I want to print out different parts of the text in different color and font style -how can I do that? For example I would like to write mark certain lines of text to draw attention to them.
Regards
/EnkelIk
|
|
|
|
|
You have .SelectionColor and .SelectionFont to change things under current selection (and of course you can program selections as well). Check out the "simplepad" sample from the .NET framework SDK.
sometimes it helps to look at the IL generated code
a MS guy on develop.com "answering" .NET issues
|
|
|
|
|
Does anyone out there know how (if possible) to write an automation model for an application in .NET. The application in written in Visual C++ with MFC. I want to be able to drive the application in the same way as one van drive the office products. At the moment we only have a COM automation model.
|
|
|
|
|
automation is now legacy. You still think about COM and automation when a raw (unmanaged) C++ app is going to execute commands on an automation server.
But that's not how you do things with .NET, as long as both client and servers are written using .NET :
- on the server side, you write an assembly project using whatver .NET language.
- on the client side, referencing assemblies is the equivalent of including the header files, iid and clsid declaration. Then doing a new Word.Application() is like doing a C++ CoCreateInstance("..."). etc.
And if you are intending to expose a .NET assembly to a raw (unmanaged) C++ application, then you'll have to use [ComImport] attributes in your .NET code, and use the tlbexport.exe tool (or regasm.exe which both creates a type-library and registers it).
Good luck!
sometimes it helps to look at the IL generated code
a MS guy on develop.com "answering" .NET issues
|
|
|
|
|
Does one need adminstrator rights to install the .NET framework?
Also, does the use of .NET controls in IE requires administrative rights?
Best regards,
Paul.
Jesus Christ is LOVE! Please tell somebody.
|
|
|
|
|
First question answer is yes. dotnetfx redist[^]
sometimes it helps to look at the IL generated code
a MS guy on develop.com "answering" .NET issues
|
|
|
|
|
First thanks for the response and the link.
Best regards,
Paul.
Jesus Christ is LOVE! Please tell somebody.
|
|
|
|
|
For question 2, this depends on what you exactly mean by ".NET controls in IE".
Regarding the official issue with .NET 1.0[^], one cannot expect much without full control (which is a shame by the way).
I believe as a general rule that administrative rights, and low-security IE level is required. After all, .NET controls in IE are activeX bridges.
sometimes it helps to look at the IL generated code
a MS guy on develop.com "answering" .NET issues
|
|
|
|
|
Second again, thanks for the response and the information.
Actually, I am expecting the same effect. However, a customer is claiming otherwise, so I needed to confirm this since I have not actually started using .NET custom controls in IE yet.
We ship ActiveX GIS engine to this customer, they use it to create Active Document for an intranet application for a big company and this is installed on a server. Individuals are to download the files and install. But they are not supposed to exercise admin rights on their machines - personally hoping administrative handling of MSI could handle the problem.
We wanted to configure the ActiveX GIS to allow non-admin registration, but the customer claims .NET is the way to solve their problem
With no active document in .NET, they are most likely going to create .NET custom/user control to be used in the IE. Hoping this will solve their problem, we are under pressure to give them a .NET version
I, therefore, have no choice but to arm myself with more information
Best regards,
Paul.
Jesus Christ is LOVE! Please tell somebody.
|
|
|
|
|
Paul Selormey wrote:
personally hoping administrative handling of MSI could handle the problem.
You can programmatically request for temporary local admin rights. Discuss it with the MIS in your company.
Paul Selormey wrote:
the customer claims .NET is the way to solve their problem
I have the right article [^]for you.
sometimes it helps to look at the IL generated code
a MS guy on develop.com "answering" .NET issues
|
|
|
|
|
StephaneRodriguez wrote:
I have the right article for you
Thanks, but have you read it? I could not help myself after reading the summary:
In the past, Web developers often used ActiveX controls if they
wanted customized client-side functionality incorporated into
their Web applications. Now, they can build objects supported by
the Microsoft .NET Framework which are more compact, lightweight,
secure, and seamlessly integrated.
Best regards,
Paul.
Jesus Christ is LOVE! Please tell somebody.
|
|
|
|
|
Read it thoroughly Paul. There is everything you need there.
In summary,
- the client must download the .NET run-time, and install the .NET run-time
- he must use the .NET framework control panel to ensure that .NET controls hosted in IE (with IEHost.exe) will work
- to ease end user configuration and approval, in much the same way than with standard ActiveX, you'd better sign them : create a .snk file (public key).
- of course, if your component does a certain r/w access on the filesystem, your component may require the end user to further slide down the IE security level.
I guess what would be fine for you is .NET controls running on the server-side, while being displayed on the client-side. I am not sure about whether it is possible. However I am pretty sure that you'll probably need in the ideal case a deep ASP.NET integration.
Have you tried MS KB and product support ?
sometimes it helps to look at the IL generated code
a MS guy on develop.com "answering" .NET issues
|
|
|
|
|
StephaneRodriguez wrote:
There is everything you need there.
Yes. It is a well written article. Just the part "compact, lightweight" in the summary makes it interesting
StephaneRodriguez wrote:
...However I am pretty sure that you'll probably need in the ideal case a deep ASP.NET integration.
I have done much work with .NET controls in a prototype product here, but 1% on ASP.NET so far - mainly playing with simple samples. I will be looking into this possibility too. Also, the server-side control running on the client will be a great idea - will search more on this.
StephaneRodriguez wrote:
Have you tried MS KB and product support ?
The last time I tried MS product support was with MS Fortran PowerStation 4.0 - guess the year! student days
In our company, there is one in charge of this, I will discuss these points with him. I tried the KB and could not get far, may be my search strings were not informative enough. I have being using the MS product newsgroups on .NET related issues to find some way out.
Thanks for your support too.
Best regards,
Paul.
Jesus Christ is LOVE! Please tell somebody.
|
|
|
|
|
How do I create a "latest news article" viewer, which are very common. The CodeProject home page has one on the right side. I need it to basically show the last X articles, read from the database of course. It should show the first Y characters of the article. Thanks in advance.
|
|
|
|
|
Basically you just need to post an http query (WebRequest )and get the HTML response (WebResponse.GetResponseStream() ) from it. That's what this[^]CP article does.
You usually have a text file, or xml file, listing all URLs, such like in here (web resource provider)[^].
Because it is HTML, you may have to strip all the formatting, such like in here (html parser)[^].
if you start putting in too manay features, it no longer remains useful for beginners
quote in a CP article comment, shiraz baig
|
|
|
|
|
I guess my question is more basic. What control do I place on my ASP.NET web form page?
|
|
|
|
|
I don't know. Try the "Web development" forum. Or Asp.NET[^]
if you start putting in too manay features, it no longer remains useful for beginners
quote in a CP article comment, shiraz baig
|
|
|
|
|
That's way too hard. All the work is already done for you if you use the CP WebService.
Norm Almond: I seen some GUI's in my life but WTF is this mess
Leppie: I made an app for my sister and she wouldnt use it till it was colorful enough
Norm:good point leppie, from that statement I can only deduce that this GUI must be aimed at children
Leppie:My sister is 25
-Norm on the MailMagic GUI
|
|
|
|
|
Client-side and server-side are different things, right ?
sometimes it helps to look at the IL generated code
a MS guy on develop.com "answering" .NET issues
|
|
|
|
|
Yeeeahh... But I don't think he specified where the processing had to take place did he?
Norm Almond: I seen some GUI's in my life but WTF is this mess
Leppie: I made an app for my sister and she wouldnt use it till it was colorful enough
Norm:good point leppie, from that statement I can only deduce that this GUI must be aimed at children
Leppie:My sister is 25
-Norm on the MailMagic GUI
|
|
|
|
|
What has to be done to create a new key in local_machine in the registry? I've given unlimited rights to my assembly, but that only gives me access to Current_User.
Any help would be greatly appreciated.
-Steve
|
|
|
|