|
akr0 wrote:
okay here is my problem, i have asked this question about a million times, and everybody keeps giving me the same answer...
So everyone is wrong and you are right. Congrats to you.
Enlighten everyone and write an article.
|
|
|
|
|
hehehe
Mark Nischalke wrote:
So everyone is wrong and you are right.
i did not say that. what i meant was this, look at james' post, he also makes reference to the manifest file and the flatstyle of controls... this is all fine and well. it gives the illusion of a themed application. but do this and place a tab page control on the form. add two or three tabs.
then run the app, right click on your desktop and goto properties. look at the difference between the actual pages (not the tabs, the page colors)... this is where you need the uxtheme.dll...
Mark Nischalke wrote:
Enlighten everyone and write an article.
there is an idea, i have discovered some things in the last week on how to access normal DLL's and API's... which will enable me to access uxtheme.dll
|
|
|
|
|
akr0 wrote:
then run the app, right click on your desktop and goto properties. look at the difference between the actual pages (not the tabs, the page colors)... this is where you need the uxtheme.dll...
The page color issue is an acknowledged bug by MS.
I'm sure there are other controls where this is a problem though which is why you'll need to P/Invoke to get around it until MS fixes it.
akr0 wrote:
there is an idea
Please do I always look forward to new articles, especially on new topics such as this.
James
Sonork: Hasaki
"I left there in the morning
with their God tucked underneath my arm
their half-assed smiles and the book of rules.
So I asked this God a question
and by way of firm reply,
He said - I'm not the kind you have to wind up on Sundays."
"Wind Up" from Aqualung, Jethro Tull 1971
|
|
|
|
|
I know that this topic was discussed, but no-one wrote how to compile manifest as a resource (into the EXE file). So I ask how to do it?
|
|
|
|
|
I'm just about to leave again, but I figured I'd throw this out so you can look at it while I'm gone.
Assuming you are using VS.NET, add the .manifest file to your project as an "Embedded Resource" and see if that works. If not add it as "Content". This option is accessed in the build property for the file.
Let me know if either of those work. I know its possible to do it in VS.NET I just need to remember how.
James
Sonork: Hasaki
"I left there in the morning
with their God tucked underneath my arm
their half-assed smiles and the book of rules.
So I asked this God a question
and by way of firm reply,
He said - I'm not the kind you have to wind up on Sundays."
"Wind Up" from Aqualung, Jethro Tull 1971
|
|
|
|
|
I've already tried it and it works neither "Embedded Resource" nor "Content". I think it should be compiled as a Win32 resource and C# compiles it a little bit different (resx). But I'm not sure.
|
|
|
|
|
Who knows how to link all DLL's which an C# app need into one EXE file staticaly. In VS C++ there is a choice called "Use MFC in a Static Library" and then the c++ app runs on every system, but how to do it in C#???
|
|
|
|
|
Which DLL's?
If you mean the .NET framework stuff, then you have to distribute the framework with the application.
Michael
|
|
|
|
|
If you are referring to .NET framework (you mentioned MFC), well, you can't: you have to redistribute dotnetfx.exe (~20Mb) and install on each client machine.
Crivo
Automated Credit Assessment
|
|
|
|
|
It's me again...
I want to add scrolling to a control I've wrote.
Is there a scrolling component like JScrollPane in java, or must I write it all by myself?
10X,
Inbal
|
|
|
|
|
There are several classes you can inherit from: ScrollableControl, Panel, or ContainerControl. The documentation recommends inheriting from Panel or ContainerControl but you can inherit from ScrollableControl if you wish.
James
Sonork: Hasaki
"I left there in the morning
with their God tucked underneath my arm
their half-assed smiles and the book of rules.
So I asked this God a question
and by way of firm reply,
He said - I'm not the kind you have to wind up on Sundays."
"Wind Up" from Aqualung, Jethro Tull 1971
|
|
|
|
|
10x, but how do I register for the scrollbars events? As far as I could see, these events wasn't accessible to a ScrollableControl like myself.
What I used to do back in java was to override Paint and draw only the clip rectangle it gave me. That represented the viewport area out of the big I should have drawn without scrollbars.
Is there any component like that (JSrollPane) out there?
Inbal
|
|
|
|
|
Hi,
I want to add a large number of nodes to a tree-view, but such operation halts the app.
I've tried using a separate thread, but the framework won't allow it, because the thread I've created it's the one that holds the control's windows handle.
Is there a way to pass that handle?
10X
Inbal
|
|
|
|
|
First call Begin/End Update on the treeview that should speed up the process a bit because it won't try to redraw after every addtion.
Then instead of calling the actual methods on the treview object you need to use the Invoke method on the object, which will marshal your calls to the thread that owns the handle.
The documentation will have to be your guide on on using Invoke because I've got another 2-3 days before I'm about to tackle the same thing in my app :-P
HTH,
James
Sonork: Hasaki
"I left there in the morning
with their God tucked underneath my arm
their half-assed smiles and the book of rules.
So I asked this God a question
and by way of firm reply,
He said - I'm not the kind you have to wind up on Sundays."
"Wind Up" from Aqualung, Jethro Tull 1971
|
|
|
|
|
10x,
I've tried it, but the result was the same. 'Invoke' calls my method on the main thread, which means that the app stucks all the same.
I need means of calling AddNode from a completely different thread, so that my main thread can still listen to user mouse clicks etc.
Inbal
|
|
|
|
|
you should go down to TVN_GETDISPINFO in a WndProc override
|
|
|
|
|
modified 1-May-21 21:01pm.
|
|
|
|
|
I want to know too!
Thanks
http://www.svstar.com
|
|
|
|
|
this.Close();
Mazy
"So,so you think you can tell,
Heaven from Hell,
Blue skies from pain,...
How I wish,how I wish you were here." Wish You Were Here-Pink Floyd-1975
|
|
|
|
|
this.Close();
Mazy
"So,so you think you can tell,
Heaven from Hell,
Blue skies from pain,...
How I wish,how I wish you were here." Wish You Were Here-Pink Floyd-1975
|
|
|
|
|
That is assuming you wish to close a windows form and it is the top-level form object.
If you wish to exit out completely from a windows form application, System.Windows.Forms.Application.Exit(); .
I'm not sure how you would exit out of a console application.
James
Sonork: Hasaki
"I left there in the morning
with their God tucked underneath my arm
their half-assed smiles and the book of rules.
So I asked this God a question
and by way of firm reply,
He said - I'm not the kind you have to wind up on Sundays."
"Wind Up" from Aqualung, Jethro Tull 1971
|
|
|
|
|
how can I add controls to a listview subitems in a specific column, like TextBox,CheckBox,ListBox,ComboBox,TreeView and maybe another ListView ???
Thanks
|
|
|
|
|
How Can I write my own web Browser control, do I have to read the source of the html file and display the formatted thing in the control ? if yes can you tell me how do this ? plz, thanks
|
|
|
|
|
You could create your own web browser control; but you'd be in for an awful lot of work. For an idea of the amount of work take a look at the Mozzila project.
Why not just use the AxWebBrowser control? There's even an article on doing just that: Using the WebBrowser control in .NET
James
Sonork ID: 100.11138 - Hasaki
"I left there in the morning
with their God tucked underneath my arm
their half-assed smiles and the book of rules.
So I asked this God a question
and by way of firm reply,
He said - I'm not the kind you have to wind up on Sundays."
"Wind Up" from Aqualung, Jethro Tull 1971
|
|
|
|
|
Just checking but...
Previously I would write COM components in VB, insert them into MTS and call those components from ASP. The purpose was to avoid putting lots of code into ASP pages not to mention other benefits.
My question is that if I wanted to do the same in .NET with C#, MTS, by compiling my C# into a dll and inserting it into MTS much the same way ( maybe putting a SOAP interface into my C#) Does this architecture still apply in .NET ? Am i on the right track ? I shouldn't have a problem with C# as I do know Java. I'm just trying to figure out if I'm on the right track or not at this point ..
I must say at this point I'm a bit overwhelmed by all that .NET has to offer. Can anyone recommend a book for exactly these types of applications ???
Thanks in advance..
Dato.
|
|
|
|