|
IIRC i recall something about this happening because the way it create handles. What happens here is the handle of the form is destroyed and hence the commands probably dont reach them.
top secret xacc-ide 0.0.1
|
|
|
|
|
Hi!
Is there any chance of a workaround?
Thanks,
Daniel
---
SharpPrivacy - A free OpenPGP Implementation in c#
http://sharpprivacy.sf.net
|
|
|
|
|
The only remarkable differences i can see between my version and yours is:
a) I use Image contained in an ImageList.
b) I dont call the base class when overriding those to methods for very specific reasons, namely this prevents someone from "altering" the gfx from an event as the event will not be generated, and secondly, it prevents windows from doing something it shouldnt (u know that WTF? moments). Sometimes as with some methods the base methods should be called.
top secret xacc-ide 0.0.1
|
|
|
|
|
Hi
when I try to go in designer mode. I get an error it says:"An exception occurred while trying to create an instance of 'MyMainClassName'. The exception was "Constructor on type 'MyMainClassName' not found.
My class has the constructor.
I rebuild the project, but nothing is changed.
Please could you tell me what the problem is?
|
|
|
|
|
The designer expects a default constructor iow one without any paramters.
I was in fact writing this just 2 minutes ago:
throw new Exception(string.Format("default constructor expected on {0}", ppa.Type));
top secret xacc-ide 0.0.1
|
|
|
|
|
|
How can I convert a string that contains Ascii-characters to ANSI? In the Windows API there is a function OemToAnsi. How would I do this in C#/.NET?
thanks, Bruno
|
|
|
|
|
|
hi all, i just want to ask for suggestion
i create a windows form program mainform.cs, and in this mainform i created instance of all classes that will be used.
then i have another form that will only be created when user click a button on mainform.
the second form itself have some functionality, when user click on button, it will call a function.
I found doin this(multiple forms) slow down my program 100% instead of just using one mainform and call the function when user click on the button of the mainform directly.
If this is true that C# windows form very slow when i did this, it's very bad right?
i used to program with multiple java frame(window) and it doesn't matter at all.
Is there something wrong i did?
|
|
|
|
|
vcorn wrote:
Is there something wrong i did?
It sounds like it because I've never had any slow down in speed when dealing with one, two or more forms.
Can you describe more accrurately what you are trying to do, because I can't work out what you're doing to get it to slow down.
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar
The Second EuroCPian Event will be in Brussels on the 4th of September
Can't manage to P/Invoke that Win32 API in .NET? Why not do interop the wiki way!
My Blog
|
|
|
|
|
i feel weird too,
it's basically just call a function of an object when user click on a button.
indeed this function deal with active directory(creating user in active directory).
when i switch to call this function from mainform button, it execute just well.
but when i change it to call this function from the second form(show as dialog with mainform as parent), it slow down, i have to wait 2-3 minutes to get it finish executing creating a user.
so i think there is nothing wrong in the code that slow down the performance,am i right?
|
|
|
|
|
Hi.
I search to add descriptions into the "intellisense" when i wrote a class or functon etc...
Thanks a lot
Alex
|
|
|
|
|
Check the following lines before class definition and chage it to meet your needs:
public class Info ..........
|
|
|
|
|
Use the various XML documentation tags to document your source code.
See the help for "XML documentation" for more information on this topic.
www.troschuetz.de
|
|
|
|
|
thanks to all
it's exactly what i search
|
|
|
|
|
How kan I make a button without borders that popups?
I kan make popup button but when the mouse isn't
over, the button still have border.
|
|
|
|
|
|
Thank you very much!
Is it not possible to be made directly in C#
without a class in C++?
|
|
|
|
|
Yes, but the concepts are usually the same. Almost every Windows Forms control (including the Button ) merely encapsulates the Windows Common Controls, so what's possible when handling messages is the way it's typically done in .NET (taking into account, of course, that much functionality is already exposed in methods, properties, and events - so don't redo what's already been done).
If you search CodeProject for buttons in the C# and .NET categories, you're bound to find a better example of this.
Also, read about the Button.FlatStyle property (inheritted from ButtonBase ) in the .NET Framework SDK to see if that will do what you need.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Thank you very much ))
|
|
|
|
|
I would like to switch off with code the autorun function
when I put a new CD in the CD drive. I have to read
information from my programme for the files on the CD
without interupting from the autorun function.
How can I do this?
|
|
|
|
|
I don't understand. You want to write a program to switch off the autorun feature so you can insert a CD without it auto running? Why not just press the shift key while inserting the CD?
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar
The Second EuroCPian Event will be in Brussels on the 4th of September
Can't manage to P/Invoke that Win32 API in .NET? Why not do interop the wiki way!
My Blog
|
|
|
|
|
This would be an option if it was only one cd; but the program that I'm building is for cataloging several cd's and it is not so practical to hold down the shift key for several seconds every time i want to add a cd. Keep in mind also that not all of my users will be aware of this option so i prefere to "temporary" disable the autorun function while using the program
|
|
|
|
|
As the Microsoft Powertoy TweakUI allows you to disable the Autorun function of drives, I think this can be done by manipulating the registry.
Don't know a concrete key for this, but maybe you could get this info in some forum which deals with Windows and stuff like that
www.troschuetz.de
|
|
|
|
|
Thank you very much.
The problem is that if I do this with windows registry
I have to restart my computer and I would want to do
this without restarting the computer.
Have you other idea?
|
|
|
|