|
I heard somewhere that this can happen if controls are hidden.
Paul Watson wrote:
"At the end of the day it is what you produce that counts, not how many doctorates you have on the wall."
George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
|
|
|
|
|
There is a bug where a Form can't be closed if you remove a control that has the current focus.
James
"It is self repeating, of unknown pattern"
Data - Star Trek: The Next Generation
|
|
|
|
|
Thank you !
Setting focus to another control solved my problem.
i'm only pointer to myself
|
|
|
|
|
I'm very new to programming in general but if I get a push in the right direction I think I will manage. I'm trying to build a windows application that will output a sequence of keyboard/mouse presses. What I need to know is where in C# do I find the functions that outputs the pressing?
|
|
|
|
|
Not the only option but probably the easiest. Consider DirectInput, part of the DirectX 9 SDK[^].
Of course, the downside is that anyone who wants to use your software needs the DirectX 9 runtime, which is a 32Mb download. But if that isn't a problem, DX9 will do the job.
Paul
Pleasently caving in, I come undone - Queens of the Stone Age, No One Knows
|
|
|
|
|
I was wondering if anyone has input on howto
pass SafeArrays into .Net assemblies ???
Example:
Create a Javascript file which creates then passes in an Array
to a C# .Net assembly (assembly is set to use COM interopt)
-------------------------------------------------------
Begin js code
-------------------------------------------------------
var javascript2csharp = new ActiveXObject("MyCSharpComp.DoIt");
anArray = new Array();
anArray[0] = "Weeee";
anArray[1] = "Arggg";
javascript2csharp.PassArray(anArray);
-------------------------------------------------------
End js code
-------------------------------------------------------
Any help would be great !!!!
Thanks
|
|
|
|
|
HI,
I am writing an application which actually connects to a oracle db hosted on a unix machine. There will be around 1000 desktop clients(win XP) hosting the application. Right now the database username and pwd are stored in app.config to connect to db. How can i hide these details from client mahine user? I mean how can i prevent desktop user to know the db passwords from config file..?
encryption is taking very big maintenance work, every time they change db password...each time they need to change the config file with encrypted passwod.
Webservice scenario doesn't work in this context as there are no web servers.
please help me finding someway
regards
sudhakar
|
|
|
|
|
Is it possible to send message to instant messengers using c# and asp.net
|
|
|
|
|
|
Thanks a lot for your response. My actual requirement is that I need to send alerts to the subscribers via various channels like mail, IM etc. In lieu with that, is there a possibility of sending messages to Windows messenger or the MSN messenger using the Interop feature or a built in feature of the .Net. The application would be on ASP.NET and C#. Is there any reference for the same.
|
|
|
|
|
|
|
Is is possible to take ownership of a file using c#. (Like when you right click on a file in explorer, click properties, securities, and then the take ownership button).
Anybody have any c# examples on how to do it and what namespace should you use.
Cheers in advance
Satvinder
|
|
|
|
|
OK , I managed to get a answer but the example is in VB6.
The article for all who want to know is a MSKB article 318744, which I will try to convert to C#.
http://support.microsoft.com/default.aspx?scid=kb;en-us;318744
|
|
|
|
|
I am new to C# and am trying to call some old legacy C stuff that accepts as input a pointer to a struct that has several fields that are pointers to large byte arrays. I am able to get a clean build but am not able to run without getting an exception that says something like unable to marshal structure field of this type (it's referring to the array pointer (reference) fields). I have even tried unsafe mode but have had problems taking the address of an array. I am using the Beta-2 Visual Studio. tfbriscoe@msn.com
Tom
|
|
|
|
|
tfbriscoe wrote:
I am using the Beta-2 Visual Studio
Well, not sure of the exact changes in the Marshal class, however why don't you post a little code so everyone can take a look at what you are doing.
Nick Parker
You see the Standards change. - Fellow co-worker
|
|
|
|
|
Hi Nick. Thanks for your willingness to help! I solved the problem yesterday in both managed and unsafe modes. Just had to do a little more research about unsafe mode, "fixed" code groups, and structure layout attributes!
|
|
|
|
|
I'm working on a desktop toolbar type application, much like a suped-up
taskbar. I would like to take advantage of the dockable feature to dock the
bar with the desktop, is this possible or will I have to do it manually.
Another feature I would like to implement is the ability for the bar to
slide in and out of view, much like the tasbars ability to auto-hide. My
initial thought for this sliding functionality was to move the bar's x-y
position off the screen using a SetDesktopLocation(...) loop, finishing at
the bar's width. However, a form at (0, 0), of width 70 pixels docked on the
left side of the desktop shifted to (-70, 0) does not shift off the desktop
completely, I need to shift to about (-120, 0) for the form to disappear. Am
I using the correct function, or even the correct idea?
Thanks in advance,
-e
|
|
|
|
|
Rather than shifting the position of the toolbar, you may try resizing it to a width of 0 pixels. This should result in the desired effect.
You could perform this action with some pizzaz by animating the resizing of the control. If you're interested, check out ActiveWare Solution's AWControlAnimator at http://www.ActiveWareSolutions.com
-msf
|
|
|
|
|
Anonymous wrote:
Another feature I would like to implement is the ability for the bar to
slide in and out of view
I have actually been working on something like this for a while, however with classes a lot of my "projects" go into a hibernation mode. I found something like the following works well. The reson I resized to a width of 2 was that allowed for a white line to be drawn and shown along the edge of the form similar to the edge on your task bar when you look really close.
void HideMe()
{
while(this.Width > 2)
{
this.Width -= 1;
Thread.Sleep(10);
this.Refresh();
}
}
Nick Parker
You see the Standards change. - Fellow co-worker
|
|
|
|
|
Nick Parker wrote:
however with classes a lot of my "projects" go into a hibernation mode.
Too bad. Your presence is a good value to us all.
|
|
|
|
|
.S.Rod. wrote:
Too bad. Your presence is a good value to us all.
<Hoping your not being sarcastic>
I'll still be around, editing articles and bugging you about that LoadLibrary() API...
Nick Parker
You see the Standards change. - Fellow co-worker
|
|
|
|
|
Nick Parker wrote:
bugging you about that LoadLibrary()
This is hardcore.
|
|
|
|
|
.S.Rod. wrote:
This is hardcore.
Hey, I gotta keep you busy and on your toes.
Nick Parker
You see the Standards change. - Fellow co-worker
|
|
|
|
|
I should have been using the Form.Location property instead of SetDesktopLocation(...), I now have a nice sliding motion but: When hiding the bar with a sliding motion the animation stutters as the window under the receding bar is being redrawn. This does not happen when the taskbar hides itself. Any ideas on preventing this?
Also, when the bar is hidden, moving the mouse to the edge of the desktop should trigger the bar to be shown. Can an event be triggered when this happens or even on any mouse move. The Form.MouseMove event won't work as this only occurs when the mouse moves over the control, but the control will be hidden.
Thanks again,
-e
|
|
|
|