|
Hi, Dear Friends.
How can i lock my keyboard function keys, through C#.NET.
I create a user & login. I want to block entire screen.
If any key is pressing only in that form.
If Mouse is moving then, that should be in with in that form only.
If you know any API function or any other samples pls help me.
I'm using Windows XP 2 , Windows Server 2003
Please Help me
Haridas.R
harisofttech@gmail.com
harisofttech@hotmail.com (online)
harizeenet@yahoo.co.in(online)
"Achievement is not a destination, its a journey "
|
|
|
|
|
Hi
Earlier during win16 there was a dialog style DS_SYSMODAL through which it was possible to make systemwise modal dialogs or forms... but this api is now obsolate, and i think for good reasons.
It is absolutly not a good idea to restrict user to a single window.
|
|
|
|
|
That sort of lockdown is a fundamental part of a kiosk app.
|
|
|
|
|
Lock Windows Desktop[^]
--EricDV Sig---------
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them.
- Laurence J. Peters
|
|
|
|
|
hi there,
I have some files in my network that i have to use,when i run a Windows app it works and system can find the file on the mapped drive but when i run a service to take the role of the app, the system can not find the files,although the user is identical for both the service and the app,
what should i do?
thanks
|
|
|
|
|
Hi.
I have just completed my first add-in for outlook 2003-2007 and installed and tested it on my machine where it works as expected (creates a custom commandbar and adds a button to it which triggers an event).
When i right click my toolbar area i can see that my custom toolbar is checked and available. However when i install the application on other users computers the installation says everything went ok and it finishes, but when i open outlook on their computers its not there and neither is it available under the toolbar menu.
We are using XP Pro and my PC uses the Office 2007 beta 2 and theirs are Office 2002.
All machines have .NET 1.1 installed
Thanks in advance
Johan
|
|
|
|
|
Hi,
I have a VC++ console application that detects bluetooth connections. I need to call these bluetooth funtionalities from a C# application.
So how do i change the VC++ Console application to a DLL?
Secondly how do i consume these bluetooth functions from c# once they are in the form of a DLL?
Pls Help me
Preethi Sathya
|
|
|
|
|
Hello
You don't need to convert it to dll. You can read the output of the console in your C# application. See this post[^] on hot to do it. Don't forget to make the console hidden when it starts.
Regards
|
|
|
|
|
Hi ,
i have build a parser application.it works on windows server 2003 -sp1 and sp2 but on without service pack m/c it gives the error .Net framework 2.0 could not be found. PLease install it to continue.
if i install .net framework 2.0 then it wirks fine on m/c without service packs. Is there any work aroud for this so that i dont have to install .Net framework 2.0 evrytime i need to run this application.
Sankalp Verma
|
|
|
|
|
.Net framework 2.0 is must for the application builded upon it.
So, You have to install .net framework 2.0 on the every machine
to execute the application.
Rahul Kulkarni
|
|
|
|
|
You should only need to install the .NET Framework 2.0 once on each machine. If you need to keep reinstalling it every time you run your application then there is something wrong with the machine.
It is recommended that Servers are kept patched and up-to-date. I wouldn't see it being a problem to state that your application requires Service Pack X in order to run.
|
|
|
|
|
I have a treeview and I want to set another treeview to that treeview
when I set TV1 = TV2 and do a breakpoint TV1 looks to have all the nodes, but it doesn't display. Does anyone know what I might have wrong.
Thanks.
|
|
|
|
|
Hello
TreeViews are reference types. That means that TV1 = TV2 will only copy the reference to the same object, but at the end they are still one thing. If you change anything in TV1, it will be also changed in TV2.
To copy the whole NodesCollection of one TreeView to another
TreeNode[] TV1Nodes = new TreeNode[TV1.Nodes.Count];
TV1.Nodes.CopyTo(TV1Nodes, 0);
foreach(TreeNode Tn in TV1Nodes)
TV2.Nodes.Add(Tn);
Regards
|
|
|
|
|
Hi everyone!
I need to learn abt c#,so can anyone give gud reference to that,it could be gud web site for download the articles.
My other quection is c# and vc# is differet or same thing?
|
|
|
|
|
Indunil_Bk wrote: it could be gud web site for download the articles.
Welcome to CodeProject!
There is a very fine articles section here in CodeProject, with many articles for beginners. If you are stuck with something that you can't find in the articles -search first of course-, or google, you can always come here and ask.
Indunil_Bk wrote: My other quection is c# and vc# is differet or same thing?
Sure they are different languages despite the similarities. IMO C# is by far superior to VB, with all respect to all VB programmers and fans. Yet if you know VB, getting along with C# may not be that difficult. You just need to do you best.
Regards
|
|
|
|
|
Thnak u for all help
|
|
|
|
|
Nader Elshehabi wrote: Indunil_Bk wrote:
My other quection is c# and vc# is differet or same thing?
forgive me if I read this wrong but he asked about C# vs VC#? I'm definitely a noob, is C# and VC# just the different names for the same language?
|
|
|
|
|
Maybe, he meant visual c#?
|
|
|
|
|
I am pretty sure that is what he meant, but, is C# and Visual C# the same language? I think that's what he was asking and I'm curious as well.
|
|
|
|
|
One of my forms for some reason cannot use the mouse double click event. I know it's that form as another of my forms runs its DoubleClick(object sender, EventArgs e) fine when I double click it.
Here's what I did to my form: I made it double-buffered, set form border style to none, and gave it a background image. I also have several timers running on the form that randomly changes text on some of the controls. Could it be that too many timers (3 to be exact) on the form can nullify its doubleclick? What could be going on?
|
|
|
|
|
Hello
Nothing of what you did seems to make the problem. Are you sure you are clicking on the form itself, and not on a child control. Forgive the stupid question, but if you made your background as a Dock.Fill PictureBox for example, sure clicking it is different than clicking the form itself. Timers may downgrade your form's performance, but never to prevent event firing.
Are you sure that you registered the event, and nothing is unregistering it later using -=??
Are your timers going on very short intervals -eg. less than 5 milliseconds-?
Did you make a breakpoint to see if it's not actually firing, or are you assuming that becaue the code you wrote in the handler doesn't work?
Regards
|
|
|
|
|
Thanks, but it appears to be none of the above. Timer events no less than 200 milliseconds, i wouldn't know what could be unregistering it, The event really wasn't firing. I am also pretty sure I am not clicking on any of the controls on the form. But I forgot to include another thing. Because the form is borderless, i put in the following code taken from codeproject to be able to move the form. Could this be the cause? But it is strange because another form with this code works fine.
private void MyObj_MouseDown(object sender, MouseEventArgs e)
{
canMove = true;
x0=e.X;
y0=e.Y;
}
private void MyObj_MouseUp(object sender, MouseEventArgs e)
{
if(e.Button==MouseButtons.Left)
{
canMove = false;
}
}
protected virtual void MyObj_MouseMove(object sender, MouseEventArgs e)
{
if(e.Button==MouseButtons.Left)
{
this.Top+=e.Y-y0;
this.Left+=e.X-x0;
}
}
|
|
|
|
|
Umm... Non of the above should make the problem... In your Form_Load event try to register it manually again, and see if it fires then.
Regards
|
|
|
|
|
Hi,
I'm new to C#. Anyone know how can i create a C# dll which can be called by my delphi program?
What I did so far was create a new Class Library project. My codes are as below:
namespace MyTestDll<br />
{<br />
public class MainTest<br />
{<br />
public MainTest()<br />
{ <br />
}<br />
<br />
public void TestCall()<br />
{<br />
MessageBox.Show("Method is called");<br />
} <br />
}<br />
}
It was then compiled as MyTestDll.dll
In Delphi, i tried using the usual LoadLibrary() and GetProcAddress() function to call TestCall function (in MyTestDll.dll), but it didn't work. Anyone can help me? Thanks!
|
|
|
|
|
Hello
.Net code -exe or dll- is not actually machine code as normal non .net compilers would generate. It's rather an IL -Intermediate Language- that is compiled JIT -Just In Time- in excution. So if you don't use Delphi .Net you won't be able to make calls to a managed .Net dll. Well, not directly.
Regards
|
|
|
|