|
I'd like to build an app that can retrieve the name of the computer a user is logged onto based on their user name. So let's say jjohnson1 is logged onto the network, I want to be able to launch my app and feed it jjohnson1, the program would then query something and spit back the computer name. Does that make sense?
It seems like it should be easy to do but I haven't found anything online about it.
I thought it would be in AD but I'm not so sure anymore. Any ideas?
|
|
|
|
|
Could you not have the client send the computer name to your server when the user logs on and have the server store that? You can use Environment.MachineName on the clients computer to get a computer name.
|
|
|
|
|
That would probably work, but would require me to put some code locally on a couple thousand PCs on our network.
I work in a help desk and often we need to remotely connect to their PCs to fix whatever they broke. Unfortunately, half of the call is spent showing them how to get their computer's name. That, of course, is only after they stop laughing at the thought of a computer having a name - which let me tell you gets a little old. : )
So I thought it would be cool, while we're getting their vitals (i.e. name from which we can derive their username) we could plug that username into some simple little app (maybe even a console app) and discover the PC they're currently logged onto. Doesn't it seem like that should be possible?
|
|
|
|
|
Maybe this article help you.
Best regards, Alexey.
|
|
|
|
|
I have been using Org.Mentalis.Security for desktop applications and it is very helpfull. However when I tried to use it to run pocket PCs application it didnot work. I tried to use source code to make a pocket PC version but it is driving me crazy. If anyone has an idea how to do that or knows another library that runs security features like SSL for pocket PCs please help.
By the way Org.Mentalis.Security is a great open source security library available on http://www.mentalis.org/soft/projects/secserv/download.qpx
Thanks
-- modified at 15:10 Wednesday 24th May, 2006
|
|
|
|
|
i want to use this in my application
new Microsoft.CSharp.CSharpCodeProvider().CreateCompiler()
where can i gind csc.exe compliler? Can i add end distribuite it freely in my software?
|
|
|
|
|
1. Go to msdn.microsoft.com. Search for Microsoft.CSharp.CSharpCodeProvider.
2. Hit the keys Windows+F. Type in csc.exe.
www.logifusion.com
|
|
|
|
|
Hi!
The C# compiler is part of the .NET framework and can be found somewhere under %WINDIR%\Microsoft.NET
So if you have a .NET framework installed on the target machine (which you need for your app to run), you'll also have csc.exe.
Regards,
mav
--
Black holes are the places where god divided by 0...
|
|
|
|
|
How to create customize buttons easy?I need help quick can enybody help me!?!
nemanja
|
|
|
|
|
Hi All !
I want to terminate my Application in a specific Time .for example after 3 days , myApplication is locked .thanks a lot for any help !
Regards ,
s_mostafa_h
|
|
|
|
|
As much as some of us like to answer questions on C#. This kind of question is scary. Are you saying your app locks up after three days and you want to terminate it or are you talking about some kind of licensing thing where you want the application to stop working for the user?
www.logifusion.com
|
|
|
|
|
Try this:
You'll have to define a stopTime globally and load it when you load the app (I've just done it in the first form load event)
DateTime stopTime;
private void Form1_Load(object sender, System.EventArgs e)
{
stopTime = DateTime.Now;
}
Then you can add a timer and set it to check every so often
private void timer1_Tick(object sender, System.EventArgs e)
{
if (DateTime.Now > stopTime)
{
Application.Exit();
}
HTH
|
|
|
|
|
thanks for ur reply .
MCSD-Gandalf wrote: Are you saying your app locks up after three days and you want to terminate it
ofcourse , this is an example ...
Regards ,
s_mostafa_h
|
|
|
|
|
I have a windows app that requires I use the Microsoft Datagrid.
My users would like to be able to select multiple rows using the Shift and Ctrl keys, and the datagrid has the selection funtionality built-in, BUT
I can't seem to get the datagrid to respond to the KeyUp event for those keys on the datagrid correctly. It appears that it only fires if I do click on the margin/control area OUTSIDE the rows. I have the same code in a MouseUp event and that event seems to fire correctly, however although I have a breakpoint set in the KeyUp event, it never appears to enter this event.
Does anyone have an idea of what I'm doing wrong, or an example of some KeyUp event at the datagrid level?
Thanks
|
|
|
|
|
I am new to c# and am trying to build my own tabbed web browser.
I have a search bar at the top that has a text field.
I am trying to create a button to highlight the text in the search box field on the current loaded web page.
Kinda like the google search bar does.
Thank you for your time.
|
|
|
|
|
Use the
Document<code> property of the WebBrowser, this will provide access to a class representation of the HTML code. Once you have found the element which you need then you can select the text by using a method inside the object representing the html tag. (I think, sorry I'm in the middle of rebuilding my development machine so can't check this out). <br />
<br />
<hr>You know you're a Land Rover owner when the best route from point A to point B is through the mud.<br />
<br />
Ed
|
|
|
|
|
Thank you for the info. I tried
webpage.Document.Body.InnerHtml.Replace(searchMe.Text , "replaced");
But it doesn't seem to have worked.
I can do what I want with
webpage.Document.ExecCommand("BackColor", false, "Yellow");
but I have to manually select the text.
Anyone know a way I can automattically select text on a webbrowser control?
|
|
|
|
|
If the search box has an ID associated with it then you can use:
WebBrowser.Document.All["id"].InnerText = searchString
Basically this retrieves the HTML element with ID "id" and replaces the text with searchString .
To select the textbox you can use the Focus method of the HtmlElement class to move the focus to the TextBox. To select all the text, perhaps the easiest solution would be to use SendKeys to press Home, Shift + End which will select all the text.
You know you're a Land Rover owner when the best route from point A to point B is through the mud.
Ed
|
|
|
|
|
Has anyone actually accomplished this before? If so, can you lead me the way to get it done. I don't need a full blown OCR server or API that cost hundreds or thousands of dollars I just basically need to know if I can parse out a section of printed text on an enrollment form. An id is assigned to a mailing and when the form comes in the person keys in the id on the screen and the image is pulled up. I want to eliminate the need for them to even key it in to prevent from keying a wrong number. Thanks in advance and all I'm looking for is an answer of yes this can be done.
|
|
|
|
|
It's certainly do-able, but you'll spend a lot of time in development, and I'm willing to bet the results will never be 100% perfect.
My advice is to rethink. I've actually worked on projects like this before (speeding up data entry), and the quick, cheap, easy solution is to use barcodes. When the letter is generated, a barcode is printed along with the number, then all the data entry monkey has to do is point it at a barcode scanner upon reciept and hey-presto you're done.
HTH,
Martin.
-- modified at 14:52 Wednesday 24th May, 2006
Typo.
|
|
|
|
|
Thanks Martin, I will definitely look into doing it the barcode way.
|
|
|
|
|
Hi guys, Im looking to create a chat app, based around using webcams - Anyone know where I can find out about this, any guides or tutorials about webcams and streaming to other pcs etc?
Cheers, Ben.
|
|
|
|
|
Maybe the following may help:
WebCam C#
WebCams through WIA
BTW, I just searched for "WebCam +C#".
Regarding streaming maybe VideoLan may be worth a look.
You know you're a Land Rover owner when the best route from point A to point B is through the mud.
Ed
|
|
|
|
|
Cool thanks
|
|
|
|
|
Hallo guru's,
can somebody give me a short hint what the difference is between the TreeView-Control and the TreeView-Class?
Thanks for your help
|
|
|
|