I have a custom title bar that I simply made from a label. My form is fixeddialog so I can get that raised effect. Everything looks great until I minimize my form to the taskbar. When I do this, I only see the corresponding icon and not the text. This is because my borderstyle isn't "none." And to have a fixeddialog form without a titlebar, you must make the text "". Therefore, I came up with this: When I minimize my form, I change the borderstyle and text so that it appears in the taskbar. The trick now is to get it to restore without the Titlebar. Essentially, I just need to do the opposite of what I did when I minimized the form.
So, my question, do I have access to the "restore" event handler that is called when you either click or right-click on the item in the taskbar? If not, does anyone have another solution to this problem? Thanks in advance.
I had tried googling but didn't found the answer to my case.
This problem is about PeakWorkingSet property of System.Diagnostics.Process class. This prop store the maximum amount of memory used by process during run time, but this property is inaccessible after the process has exited.
One workaround I used is to start another thread to monitor this property, but this is not well enough because some of processes I started exited too fast. ( They started and exited immediately).
Does anyone know how to get PeakWorkingSet property after process exited? or better workaround to this kind of problem.
I think there r again HashTables contained within the HashTable. That is why, it again prints System.Collections.Hashtable with output. Plz tell me the way to retrieve the values from Hashtables within Hashtables.
ur method to print inner Hashtables worked out very well. They printed all the key value pairs in them. Plz tell me how I can print a particular key value pair from those key value pairs. If possible send me the code.
I want to use common source files (my toolbox) in different projects without creating a library. How can I add this sourcefile, to my project, placed in a common files folder, "by reference" an not as a copy of it ? The IDE always copies the selected file to the project folder.
The Link file option does the trick. When you add the common source files via "Add Existing Items", don't click the Open button in the "Add Existing Item" dialog. There is a tiny control to the right of the "Open" button, which when clicked, opens a context menu with the "Link File" option.
I'd be happy if someone could give me some input on an idea I've been juggling with for some time:
I've got a single instance WindowsForms application (.NET 1.1) that's been working fine for quite some time now.
Now I'd have to make some of the functionality available for COM clients, but I can't seem to figure out how to start.
I know how to create a class library with COM visible classes, but instances of these classes will be created inside the calling process, so I can't call methods in my application to show some dialogs, for example.
As far as the idea has evolved, I'd have to make my application an out-of-process COM server, but I'm afraid I don't know how to achieve this.
Any input would be highly appreciated.
I have a flash object on a form and I have added a Class to my app.
I want to call the SetVariable() method of the flash object from the class and get some info from the flash obj.
there is a FScommand related to the flash obj when the SetVariable() is called flash transfers the data to the FScommand event of the flash obj inside my form.
Its all fine when I use the SetVariable() method from inside the form but when I call it from the class it just passes the command and nothing happens.
What should I do to get the FScommand event to work from the Class I have.
Using Microsoft.ink...I have to draw a image in the form and save that image in .jpeg format.....So i haveto install Microsoft Tablet pc.....
so finally I installed ... and i did a program with 2 buttons in the form namely SAVE and EXIT......
so now when i run this program..i can able to draw a image of my own in the form..now when i click save button...i should be able to save the image in .jpeg format.. BUT I couldnt save.. when i click the SAVE button..and give a name for the image .... an error is shown...
System.NullReferenceException: Object reference not set to an instance of an object.
at InkImage.Form1.button2_Click(Object sender, EventArgs e) in d:\inkimage\form1.cs:line 144..
ie, error in the last line of this program [ DrawArea.Save( sfd.FileName, format );]
public class Form1 : System.Windows.Forms.Form