This is what I have been using, I'm not sure if it's different in VB and VB.Net, it may be exactly what you're doing. Under what circumstances would it return "CONSOLE"? Perhaps I need to consider this in my code. Thanks
' get the workstation name...
machinename =...
I created an app that runs fine on my computer, but when I install it on another machine, I get the following error when I try to run it.....
System.Net.Configuration.WebRequestModule Handler, System, Version=1.0.500.0,Cultute=neutral,PublicKeyToken=b77a5c561934c089 does not implement...
I tried doing the same code in Dreamweaver and it didn't have a problem with it. Is there something I need to load into my project in VS.net to get all of the proper functionality?
I am trying to edit data in a datagrid from a web form to save into a database. I have found several resources that use ItemTemplate and EditItemTemplate to edit settings of the columns. When I use these two categories though, they have the wavy line underneath them and it says 'The active...
I think a found a way to do it.
Dim net
net = CreateObject("WScript.Network")
net.AddWindowsPrinterConnection("printername")
net.SetDefaultPrinter("printername")
Let me know if there are problems with this.
Thanks
Is there a way to install a network printer on a local machine with VB.net? I found code that will set the default printer to a local printer, but I would like to automatically set up a network printer.
Thanks
Unfortunately, that still returns the terminal server name. I know you can get the thin client name from a command prompt if you type echo %clientname%, is there a way I can work this into my code? I'm really new to programming so forgive me if this sounds stupid.
Thanks
I need to use the name of a thin client machine in an application. When I use the Environment.Machinename class, it returns the name of the Terminal Server. Does anyone know a way to return the name of the thin client machine instead?
Thanks
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.