|
Thanks. I will wait for the updates.
Surya
|
|
|
|
|
I need to get the Coordinates of the x-Axis from the Joystick. I already installed the DirectX SDK but I really couldn't find out how I do this.
Are there some good tutorials around or can someone tell me how it works? That would be grrreat
|
|
|
|
|
|
Hello.
How to detect when new device (disk) is added ?
How to do things, those described in "Detecting Media Insertion or Removal" in MSDN, but using .NET C#?
Thank you.
|
|
|
|
|
delemur wrote:
How to do things, those described in "Detecting Media Insertion or Removal" in MSDN, but using .NET C#?
Check this out: Trapping windows messages[^]
Best regards
Dennis
|
|
|
|
|
I create a web service with an DelItem() method to delete a record of a table in SQL2000 database via a store procedure.
It works correctly itself but when i call it in my web app. an error (UNAUTHORIZED) occurs.
Whats the problem?
---------------------------------------------
Exception Details: System.Net.WebException: The request failed with HTTP status 401: Unauthorized.
Source Error:
Line 59: [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://localhost/webservice/wsns/delitem",RequestNamespace="http://localhost/webservice/wsns",ResponseNamespace="http://localhost/webservice/wsns",Use=System.Web.Services.Description.SoapBindingUse.Literal,ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
Line 60: public string delitem(short code) {
Line 61: object[] results = this.Invoke("delitem", new object[] {
Line 62: code});
Line 63: return ((string)(results[0]));
Source File: D:\Inetpub\wwwroot\WebApplication\Web References\localhost\Reference.cs
Line: 61
------------------------------------
thanks alot
|
|
|
|
|
How can I find he the x and y location of a window if I have the handle to it? Also how can I get the x and y size of it?
/\ |_ E X E GG
|
|
|
|
|
I don't know what you mean by "If I have the handle to it," but use this code (examine the comments!!!). place this code in the Form1_Load event( yes, all of it)
string x = this.Location.X.ToString();<br />
string y = this.Location.Y.ToString();<br />
string height = this.Height.ToString();<br />
string width = this.Width.ToString();<br />
textBox1.Text = x;<br />
textBox2.Text = y;<br />
textBox3.Text = height;<br />
textBox4.Text = width;<br />
|
|
|
|
|
thanks, but I mean any window that is not YOUR program. Say for istance... The MSN Messenger window. How can I find the x y location and the x y size of it??? What I'm ultimatly trying to do is, take a screen shot of a window, and have it displayed to my form. Although, I am having trouble finding the code... it seems so simple. I will even provide the handle!!
/\ |_ E X E GG
|
|
|
|
|
|
eggie5 wrote:
How can I find he the x and y location of a window if I have the handle to it? Also how can I get the x and y size of it?
I agree with Stefan that you could use GetWindowInfo()[^]. However since the only information you were asking for is WINDOWINFO.rcWindow you could also just call GetWindowRect()[^].
[DllImport("user32.dll")]
static extern bool GetWindowRect(IntPtr hWnd, out RECT lpRect);
[Serializable, StructLayout(LayoutKind.Sequential)]
public struct RECT
{
public int Left;
public int Top;
public int Right;
public int Bottom;
}
Best regards
Dennis
|
|
|
|
|
Hi, I'm bruno
I need a help because, I don't know how play to mp3 files in C#.
How I do it?
thank's.
bruno
|
|
|
|
|
|
How to make a property look like a list without being an ENUM or BOOL
I.E --> using a dynamically allocated array as a property and viewing it as a drop down list - such as the TextAlign property in the TextBox
|
|
|
|
|
Its xmas so i dont have much time... but off the top of my head i think its called UITypeEditor. Its a designer thing that you have to do. Google and you shall find.
This posting is provided "AS IS" with no warranties, and confers no rights.
Alex Korchemniy
|
|
|
|
|
You can overload the TypeConverter, StringConverter in your case to pass back a StandardCollection value that is an array of values as opposed to a string and it will seen as a drop down list.
|
|
|
|
|
I wanna know how can i merge THE CELLS of DataGrid ..
&&&&&
How can i change the style of the COLUMN HEADER such as splitting the header cell into two cells and changing the height of the header regardless of the font size ...
THIS IS URGENT
|
|
|
|
|
recently i saw an article about implementing syntax coloring in a rich text box however im having a hard time finding it. i was just wondering if someone could point me to that article or articles thank you
|
|
|
|
|
|
nope the one im looking for had some screen shots if i remember correctly
|
|
|
|
|
Guys,
I am working on a desktop management application.
I want to display a newly created desktop hide the default desktop, restricting users from accessing task bar, and start menu (as a part of access control management). Any thoughts on this will be highly appreciated.
Riyaz
|
|
|
|
|
|
I appreciate your comments about setting the group policies, and it addresses the second phase of my development plan.
But, I still have the big question about, how we would create a new desktop using C# (managed or un-managed code). In fact, that is the main question I had in mind when I posted this question.
Thanks
Riyaz
|
|
|
|
|
msmriyaz wrote:
I appreciate your comments about setting the group policies, and it addresses the second phase of my development plan.
Now I'm curious about your project. If it isn't confidential I'd really like to know more about the program you're making because I still think the common approach is to have a non-privileged account. I mean why would you want to have a privileged user to log into the system and then start a program to provide a non-privileged desktop?
msmriyaz wrote:
But, I still have the big question about, how we would create a new desktop using C# (managed or un-managed code). In fact, that is the main question I had in mind when I posted this question.
You're right. Sorry about that. As far as I know you can't do this with the .NET Framework. However you can do it with some PInvoking. I guess the most important function would be CreateDesktop()[^] (see also Window Station and Desktop Functions[^]). There is even a CP article titled Desktop Switching[^]. Okay, I hope that you now have everything you need to get started. If not feel free to ask and sorry again for not answering your question in the first place.
Best regards
Dennis
|
|
|
|
|
Thank you very much for your feedback.
In fact, this project is about developing an application for internet cafés, where we would have a server side application (to manage the clients as well as the POS activity) and a client side application.
Client Side
The client system would be logged in by administers of the café, but, it will still have a desktop waiting to accept a login to surf the internet.
Once the user is placed on the new desktop, he/she should not be allowed to use Task manager (potentially can kill the application), launching unwanted applications through start menu, where it could be used to bypass the time monitoring/client management activity.
Hope I gave some idea about the application.
Best regards,
Riyaz
|
|
|
|