|
|
AFAIK they removed the original form border and created custom stuff for their form
|
|
|
|
|
Yep, but HOW...cause since the design mode I can't do it, the form properties don't allow me to do this things.
|
|
|
|
|
Set FormBorderStyle to none and draw the window yourself. Search for overriding WndProc and handling NC_HITTEST to make Window handle resizing/moving on a self-drawn form.
|
|
|
|
|
Hi,
Please help me …. I got a weird problem. I finished my project, everything was working fine. Recently my Win XP was updated by automatic update and I am not sure if my problem is related to this new update or not.
My problem:
In my win application, I have some MDI windows. Now, when I was running my application, I found that, some MDI Children is not being loaded, and 1 or 2 MDI children are being loaded. I could not understand why! So In my Visual Studio 2005 Professional, I clicked the Forms which were not being loaded. And I discovered that, I can’t open those windows anymore in the design mode. Nor even I can’t open them in the Code mode. Very frustrating! And Strange that, Some times when I tried to view the window in Design mode (VS 2005 Professional) instead of showing my Window Design, I used to get an Error Screen, some message was like “ License Manager …locked.. canot change the lock status….” Etc…etc…. I have no idea, from where this License Manager come….. Can you please help me..
Thanks and regards//…
|
|
|
|
|
The task is to do something when my USB-device gets plugged or removed.
I already created some working code using an (invisible) NativeWindow that processes the WM_DEVICECHANGE messages. This has already been covered in several articles.
My Windows.Forms Testapp works fine. The WM_DEVICECHANGE messages are trapped by my window and i can react to it.
But could I do the same thing from a console-app??
I am able to create and register my invisible Window for notifications but the
NativeWindow.Wndproc() method I have override never gets called.
I guess I am missing something very basic here!
Any hints in every language (not tied to c#, I will find my way around) are very Welcome.
Thanks for reading
Eberhard Fahle
|
|
|
|
|
I am just guessing that you might need a message pump, like you get when you call Application.Run in a Winforms project.
If you must use Console rather than Windows forms project type then you can add an Application.Run statement into your program (once you add the relevant namespaces) and then you will receive messages.
Just a hunch...
|
|
|
|
|
Hi All,
My multithreaded app seems a little slow, and i'm not really sure where the cpu time is going. I suspect that i'm wasting time waiting for locks etc, and could probably structure the code a little better.
but are there are tools that help you analyse what threads are doing?
- how much cpu time each thread is using
- how much time each thread spends blocking on a lock object
etc.
trying to diagnose the issues without better tools is going to be hard.
Thanks
Jon
|
|
|
|
|
i have the same problem and currently downloading intel Vtune evaluation copy
lets see if it helps
|
|
|
|
|
Hello, is it (Vtune) really useful for C# code ? I di not see any feature in VTUNE so that i Know exactly which code segment is taking more CPU time ? I know VTUNE support C language, but I did not see any C# supports. When I tried to see the code, VTUNE exposed me the ASSEMBLY code for the given EXE file. Obviously seeing Assembly code will not make any sense for me to debug High Level C# code, aint i right ?
would you Please let me know if I can make it useful for c# ?
|
|
|
|
|
bashiwala wrote: Obviously seeing Assembly code will not make any sense for me to debug High Level C# code
Why?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
its working now its integrated in vs ide and it shows the code and lots of other information i need to study more what it shows but its working perfectly with c# however it require more ram and processor speed so it will be better to increase virtual memory before hand
to know how it works please read the tutorial attached with VTune demo it is of about one hour
|
|
|
|
|
I try starting it after installing but my system get crashed every time
please let me know if you get a better option
|
|
|
|
|
For figuring out the CPU time used by each thread, I'd suggest using Process Explorer[^]. It allows you to drill down into threads and watch CPU time.
To find the contention rate among threads, you can use Perfmon (type perfmon.msc at the command prompt). The ".NET CLR LocksAndThreads" Performance Object has "Total # of contentions" and "Contention Rate/sec" counters, you need to just add them, making sure you select your process from the processes list on the right.
Hope this helps.
|
|
|
|
|
Hi, what about Rational PurifyPlus ?
Regards
|
|
|
|
|
hi all
I have made a exe file in c# but when ever i try to execute it gives me the error The application failed to initialize.error code (0xc0000135).
Kindly suggest me he soution for the same thanks a lot in advance.
Thanks and regards
Sankalp Verma
|
|
|
|
|
sanki779 wrote: Kindly suggest me he soution for the same thanks a lot in advance.
Why don't you type the same into your favourite search engine. I did and I got the answer on the first hit: "the most likely cause is that the machine you are using does not have the Microsoft .NET Framework installed"
|
|
|
|
|
Thanks for such a promt reply.,,,,,,,,,,,,,
so does that means that where ever i need to run the that exe i need to install the .net framework first os there any otherwork around?
i m saying this because i need to run this exe on around 500 computer and it is not a easy job to install .net framework on all of them.
Kindly suggest some workaround?
Sankalp Verma
|
|
|
|
|
You will have to install the .NET framework on all of them.
|
|
|
|
|
sanki779 wrote: m saying this because i need to run this exe on around 500 computer and it is not a easy job to install .net framework on all of them.
Kindly suggest some workaround?
To run a C# / .NET application, you need the .NET framework installed on all machines that run the app.
There are some very expensive products that will link the .NET framework into your app, do a google for .NET linker.
|
|
|
|
|
there are some ads over here of grasshopper see it if they can help
|
|
|
|
|
Or rewrite it in a none .NET language.
If it is to run as a Windows Form app on .NET, then you need the .NET runtime installed.
Alternatively, you could develop it as an ASP.NET application which would only need the .NET runtime installed on the web server.
Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world."
Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that."
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
I'm sure it can't be too difficult but I can't seem to figure out how to invoke an instance of Internet Explorer from my application in C#.
I would also then need to kill the instance of IE after a certain event in the main program.
Any advice please?
|
|
|
|
|
starting IE is simple,
Process.Start("iexporer");
or if you want e certain URL
Process.Start("http://www.codeproject.com");
but this will open the page in your default browser
Opening IE using an url
Process.Start("iexporer", "http://www.codeproject.com");
I thought IE runs in a single process, so killing IE will not only stop the 'started' instance, but the entire IE process. (I don't know if this also counts for IE7, haven't got it installed) so killing er certain instance of IE will be a more difficult story. Do you only want to kill the started instance, or the entire IE process??
- - - --[ i love it when a plan comes together ]-- - - -
|
|
|
|
|
Good grief! Could you believe that it turns out to be that easy!?!? I almost feel stupid now for even asking the question, but thanks.
As for killing the instance, it doesn't really matter. Come to think of it, I would actually prefer if the entire IE process is killed.
|
|
|
|