VS 2010 Using The Environ() Method To Get The Computer Name?

Aug 4, 2011

I am using the Environ() Method to get the computer name. I have a customer in china where that call is return a non-ascii string (due to language selection I suspect).

I am expecting the method to return an ascii scring but am getting "��=�923c9".

how I can get/convert this to an ascii string?


Difference Between My.Computer.FileSystem.WriteAllText Method And The IO.StreamWriter Method?

Jun 2, 2011

I just need to know what is the slight difference between them so I know which one to use everytime.

View 5 Replies View Related

Environ Variables Setted To Be Used From Batch Files?

Jan 1, 2012

i have tried to apply this to the enviroment variable to be changed from batch files. I have tried to find an definite answers from spesific resource... Then the thing what i tried to be solved is like a obscure mist.

Module Module1
Sub main()


View 2 Replies View Related

Appropriate Method To Get Time Of Server Computer?

Oct 19, 2011

I do have my program running in a network. I have set one main computer as server and installed database system too. My other clients create transaction and saves it to database. Now I need to add date and time of server too in that record

View 1 Replies View Related

VS 2010 What's Equivalent Method In .NET Of Picture1.Scale Method In 6.0

Jun 12, 2011

What's the equivalent method in .NET of the Picture1.Scale (0,0)-(10,10) method in 6.0?

View 2 Replies View Related

VS 2010 Call The Same Method In A Method While Threading?

Jan 29, 2012

I have a Application that Crypts all Files in a Directory and the Subdirectories

Public Shared Sub CryptAllFiles(ByVal crypt As Object)
'check if this dir exists
Dim vDirInfo As New DirectoryInfo(vPath)
If Not vDirInfo.Exists Then Exit Sub
'get all files' sizes in current path


View 3 Replies View Related

Why Doesn't The DeleteDirectory Method Of The Computer.FileSystem Class Work On "special" Folders

Aug 14, 2008

if they choose to use a networked version of my software, I will need the main server doing the authenticating. This is a problem, because from what I understand, it is quite easy to clone MAC addresses. I have looked into using the CPU ID and the HDD ID, but those are not unique, well at least I don't think so. Reason why I say they are not unique is because someone has the exact same CPU ID as me, and the HDD ID changes from partition to partition (same drive). Maybe the HDD ID is a partition ID instead? Anyways, I was thinking maybe I could get the Physical serial number of both the HDD and CPU, but I have not been able to find anything yet.

View 2 Replies View Related

Why Doesn't The DeleteDirectory Method Of The My.Computer.FileSystem Class Work On "special" Folders

Feb 18, 2010

We have a network share that is used for transferring files between users on a daily basis. Every day at 3:00 am we run a vb6 program to clear the directory of this network share.

View 1 Replies View Related

Strongly-typed Generic Method Invokes Its Argument's Base Class Method Instead Of A Shadowed Method In T?

Oct 19, 2010

Consider a MyForm class that contains a shadowed implementation of Show(). It also contains a CreateForm() method, which accepts an instance of the form and calls the shadowed sub:


View 3 Replies View Related

Extension Method Doesn't Work [VB 2010 - VS 2010 RC]

Apr 20, 2010

I have the following extension method. However, when I type "File." this method doesn't pop-up. What did I wrong?


View 1 Replies View Related

VS 2010 Cannot Run Program In Other Computer

Jul 15, 2011

I get this error :

Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: tuto.exe
Problem Signature 02:


View 1 Replies View Related

VS 2010 How To Search For Computer Name In AD

May 4, 2012

I am trying to figure out the BEST way to search AD for a computer name and if it exists change a variable to the next available numberexample if compname = abc123 search Active Directory for compname if exists set compname = abc124 if that exists set compname to abc125 and so on

View 3 Replies View Related

VS 2010 Run VB Project On Another Computer?

May 18, 2012

I have a project built in VB. As any other developer I want my project to run perfectly on any computers. what I need to run my project on another computer. Like what dlls needed, how can I find them, and other things required.

View 11 Replies View Related

VS 2010 Can't Open Forms On Another Computer?

Mar 19, 2012

I've copied a project from one computer to another and while I can open the project and its one module, when I try to open any of the forms, I get this error:

Quote: There is no editor available for 'C:UsersDaBoyesDesktopWattsDBForm6.vb'.

Make sure the application for the file type (.vb) is installed. I can open the forms just fine on their own--I just can't open them from within the project.

View 5 Replies View Related

VS 2010 Download And Save A Xml In Computer?

Dec 27, 2011

I want to download from the web a xml and save it into my computer. How can I do this?

View 1 Replies View Related

VS 2010 Run .exe File On Computer Without .NET Framework

Apr 24, 2012

I am having a few dramas with running my completed project on another computer. I created my project using Visual Studio 2010 (Microsoft Visual Basic 2010 Express).The error messages I get say that the program is unable to access the .NET framework. This is because the .NET framework is not loaded onto the other computer and loading it is not an option.I've done some searching on the internet and I found instructions for going from a dynamic library to a static library and building, rather than publishing the finished product for C++ 2010. So, I assume that I need to do something similar but I haven't been able to apply this to VB 2010 Express.The finished product needs to be self-contained, so that the .exe file has all the libraries and compilation instructions it needs.So, is someone able to tell me how to link up the files I need and re-package my project so that it works on any computer that runs Windows.

View 24 Replies View Related

Installing Vb 2010 Express Project On Other Computer?

Nov 7, 2011

I've managed to produce a simple project in vb 2010 express and to publish it onto a cd. I can install the project from the cdand run it successfully on my windows 7 machine where I developed it but trying to install it onto a windows xp machine produces the message:

"An error occurred while downloading a required file...

Details: http://go.micrtosoft.com/fwlink/?linkid=182805

View 8 Replies View Related

Start A Form When Computer Is Locked (2010)?

Dec 27, 2011

I want to know how i can make my application (which i created in visual basic 2010) start up when the computer is lockedSo as to act as a Lock Screen...

View 3 Replies View Related

VB 2010 - ScreenSaver With A Password To Protect Computer

Nov 18, 2011

OK, so, I made a program that locks the computer with a password, to help you protect data from other people. It's quite simple, you open the program, it shows up in full screen, "To access this computer please type in the password"....etc.

BUT, I want it to have a "Guard". To make it act like a screen saver does. That's my plan: So, you typed in the password, and close the program. And then, if you didn't move your mouse, or press a key, or you're not watching a movie, for more than 6 minutes, I want it to automatically launch the program.Until now, I've just put in Form2.Show in the Form1's (which is the password-protect program) FormClosing class. I also made the Form2 on Full Screen, and it's opacity to 0%. That's where you will move your mouse. I made all the code until now, but I need code for making it act like a screen saver.

View 1 Replies View Related

VB 2010 Express Support The Computer Syntax?

Feb 8, 2011

Next question.Does VB 2010 express support the my.computer etc. syntax? If so what do I have to do to use it? It appears to offer a pretty easy way to use FTP.

View 4 Replies View Related

VS 2010 : Install A Program On Another Computer Without Internet?

Dec 29, 2010

had 3 courses in computer science 10 years ago and decided to go into economics. After a 6 year and continuing career in economics, I decided to dabble in code to assist my economic career. In this pursuit, I have developed some neat things, but I have a simple problem. I code an application, hit build, hit publish, receive a setup and manifest, then put it on my usb drive. Plug the usb drive into another computer. Drag the setup and manifest to the hard drive, hit the button, a graphic regarding Launching Application comes up, then immediately a window comes up stating:

Cannot Start Application.Cannot download the application. The application is missing required files. Contact application vendor for assistance.

The errors stem from the manifest file. It says downloading the file (file path) Hello.exe.manifest did not succeed. It then follows with 3 lines of filepaths for the Hello.exe.manifest.

I am running VB 2010 express. I made a slot machine game for my mother for her birthday one Computer A. I moved the published files to Computer B as described above to test before giving to my mother. The game isn't too important at this point because I tried to test whether the game itself was the problem or if it was my error in lack of knowledge of how to deploy. As such, I created a program called Hello. In Hello, there is simply a form1 and a button1. When clicked, button1 displays a messagebox with some text. Not a rocket science program.

My intention is simply this:Allow the Hello program to be put on another computer via a USB drive and then installed.The two computers are not networked and let's assume the second computer cannot connect to the internet. When I go to the wizard, I select the location I want to publish to. In this situation, my desktop.Next, I select CD-ROM/DVD-ROM instead of UNC path or website. I don't know what UNC path is. I presume CD-ROM/DVD-ROM would be similar to USB drive in that it is a removal data storage item.I chose that the application will NOT check for updates.Finally, I receive this:The application will be published to:


Where I find the files, put them on the USB drive and try to install on Computer B.Also, for more information, I can use those files on the originating computer and they do SUCCESSFULLY install and I can use the application. I have not figured out why it will not install on another computer.

View 4 Replies View Related

VS 2010 : List All User Profiles On A Computer?

Nov 20, 2011

I have vbscript code that enumerates user profiles from this registry path:

HKLMSOFTWAREMicrosoftWindows NTCurrentVersionProfileList.

How can this be done using Visual Basic 2010? Is there a class or method that I would use to accomplish the same thing or would I have to read the registry path into an array as you do with vbscript? My application will be ran on the local computer just so you know this information is not being gathered from across the network. I have been looking for awhile and haven't found anything that will work so far.Once I have the user profiles from the computer, I will populate this list into a drop-down combo box.

View 2 Replies View Related

VS 2010 App Doesn't Start On Client Computer?

Feb 2, 2012

I made a setup for my project using installshield, I installed the app on another computer but It doens't start.

View 18 Replies View Related

VS 2010 Attach MDF File To Client Computer?

Jul 23, 2011

I have an app that uses an SQL Server Express 2008, .mdf file.On my computer where i've coded the app all work's fine using this

If conexiune.State <> ConnectionState.Open Then
conexiune.ConnectionString = "Data Source=.SQLEXPRESS; AttachDbFilename=" &


View 16 Replies View Related

VS 2010 Getting The JAVA Version That Is Running On The Computer?

Apr 17, 2010

I am currently working on creating a environment variable editor which will analyze your JAVA version and add/edit your class paths accordingly.I wanted to know how I would go about getting the JAVA version that is running on the computer. So I will basically have a button that is clicked then the java version will be displayed in text box 1.

View 1 Replies View Related

VS 2010 - Project Running On Other Computer Chopped Off By The Screen

Jul 9, 2010

Ok i got my application, put it on my other computer which has a smaller screen. And i have my controls in a panel but it still gets them chopped off by the screen. the part highlighted in yellow is the bit that gets missed off, what can i do here as i still want the search to be on the right. How can i make the controls fit in the screen even on a smaller screen.

View 11 Replies View Related

VS 2010 How To Close External Tab When 'save As' Has Popped Up From Computer

Aug 8, 2010

I have webbrowser1 whihc is used to download files on my server in the background (invisible)but when its an external link (which could be any filesharing site eg, rapidshare, mediafire etc)a new tab shows called "external link" with the webbrowser1 visible, and of course mediafire, rapidshare visible/navigated.how can i close this "external" tab when "save as" has popped up from computer?i cannot do it any other way as all filesharing sites are different.i already know how to close the tab, just need some sort of event handling on this part.

View 1 Replies View Related

VS 2010 Read From File Using My.Computer.FileSystem Namespace?

Nov 26, 2011

I'm trying to read a file line by line. Right now I have...

My.Computer.FileSystem.OpenTextFileReader(strList).ReadLine() But I keep pulling the first line, not the next line and so forth, anyone know how to do this? I want to stay with the My.Computer namespace because it is thread safe.

View 5 Replies View Related

VS 2010 Excel Method Find In VB2010 - Convert Excel Macro In A Exe File Using Visual Studio 2010

Oct 25, 2010

I decided to to convert my excel macro in a exe file using visual studio 2010. In excel macro method find is present like this:


View 9 Replies View Related

Sockets - Check That If Another Computer In The Network Send Some String Data To The Listener Computer?

Mar 19, 2012

i have a task to create a TCP Server (a program that is listening on its network card interfaces for incoming data stream).I have search on the internet and i found that i can use two methods : Socket or TCPListener class.I have created an example for Socket class, but i wondering how could i test it? I need to check that if another computer in the network send some string data to the listener computer , then this message should be displayed.Here is the example from microsoft that i am using for TCP Server using Socket:

Public Shared Sub Main()
' Data buffer for incoming data.
Dim data = nothingc[code]....

But it does not work because of the PORT setting.If in the TCP Server i have "Dim localEndPoint As New IPEndPoint(ipAddress, 0)" the client crashes, but if i change the port from any (0) to 11000 for example,the client works fine.Do you know why?

Later edit2:Maybe i should have started with this question:Which method is recommended for my scope?asynchronous or synchronous method ?

View 2 Replies View Related

Developing A Computer Application Designed To Monitor The Network And CPU Statistics On A Computer?

Jan 29, 2009

I am developing a computer application designed to monitor the network and CPU statistics on a computer remotely. The monitored computer would have my program installed and the monitoring computer would display, in a form, the information being sent from the remote client.The application does not send any information regarding packets, user names, passwords, etc. It is solely meant for monitoring CPU performance and Network resources remotely.

What would be the best method to send this information over to my host machine?I am programing in Visual Studio 2008 on windows XP. The client machine is also XP. I know this sounds a little shady, but it is required for my little business (http://www.iquorum.net) to monitor what and when something happens on our machines when I and my employees are away.

View 2 Replies View Related

VS 2005 : Dial A Computer From Another Computer Using Modem For Sending Files And Message?

Jul 11, 2009

I am trying to dial a computer from another computer using Modem for sending files and messge.Follwoing is the code done in dialing computer

Text1.Text = "Test string from App1 "
Number$ = InputBox$("Enter phone number:", "Number$")
If Number$ = "" Then Exit Sub
Temp$ = Status


But after the dial tone, i am getting the exception "CTL_E_GETNOTSUPPORTED " at the line MSComm1.Output = Text1.Text?

View 6 Replies View Related

Access The Data Coming To The Computer From The In-built Bluetooth Module Of A Computer On Windows Platform?

Feb 4, 2011

i have encountered a problem, i want to access the data coming to the computer from the in-built bluetooth module of a computer on windows platform, thisdata has been sent by a remote bluetooth module say a by an autonomous device (just like a bluetooth mouse connecting to the computer). The to be sent is in the form of numbers and i need these to manipulate on the computer.

View 6 Replies View Related

VB - Desktop Computer With Cable Connection On Back Allows To Watch TV On Computer Using Windows Media Center

Jun 12, 2010

I have a desktop computer with a cable connection on the back that allows me to watch TV on the computer using Windows Media Center. I had the idea of writing a program that would access this feed and send it to another computer (laptop) via my network. That way I would be able to watch TV from anywhere that my network spans. I have no idea if this is possible or how I would even do it,

So I have three questions.
1: Is it possible?
2: How would I go about access the feed?
3: How would I send it over the network?

My original thought was doing it in Flash, but I'm not very good at Flash so I wanted to do it in VB.Net.

View 2 Replies View Related

VS 2010 - Setting Default Location To Computer For Loading Photo

Dec 9, 2011

Just started using the Windows Browser in one of my forms so the user can select a photo they need to load. This was surprisingly easy (This seems to be the norm in Basic, if you think it will be hard it isn't and visa versa). What I am struggling with is how to set the default location to 'Computer' rather than a disk letter and directory name. The photo is most likely to be on a card reader or Memory stick so the drive letter is likely to change.

I am guessing the command will be:
OpenFileDialog1.InitialDirectory = ???????

View 4 Replies View Related

VS 2010 Computer.FileSystem.GetFiles - List Files Without Their Paths?

Feb 15, 2011

This has to be simple, but can't find the answer.I want to display a list of all files from a folder in a listbox. Easy..., but I want to display only the filenames without their paths.

For Each foundFile As String In My.Computer.FileSystem.GetFiles("C:My Folder")
This gives me list looking like that:
C:My Folderfile1.txt
C:My Folderfile2.txt


View 1 Replies View Related

VS 2010 Make Each Read Operation Faster Than Using My.Computer.Registry?

Nov 13, 2009

I need to perform a huge amount of registry read operations, and I'm trying to figure out a way to make each read operation faster than using My.Computer.Registry.

If I used APIs directly to do it, it should be faster, right?

View 1 Replies View Related

VS 2010 Project - Make A Movie Center Where To Got All Movies On Computer On

Jul 30, 2010

I am trying to make a movie center where I got all my movies on my computer on. Little hard to explain in english cause it's not my native language. Well I've got some problems. 1. I don't know how to make a browse button to work. In detail, I don't know how to code it so that it will select a whole map. Well I don't even know how to code it so it can browse.
2.How do I code so if one pressed a button it will come up a new form?

View 3 Replies View Related

VS 2010 Track Progress Of Download, Using Computer.Network.DownloadFile?

Jul 4, 2010

Im using My.Computer.Network.DownloadFile(OnlineLocation, FullLocal) to download a file, how can i check when its done and also i want to track the progess with a progressbar. How do i do this?

View 25 Replies View Related

Copy A File From A Local Computer To A Remote Computer On The Network?

Dec 19, 2006

I need to copy a file from a local computer to a remote computer on the network, if i try to use File.Copy without logon i get the following error:"Logon failure: unknown user name or bad password."How do I provide user name and password for file copy?

View 2 Replies View Related

Copyrights 2005-15 www.BigResource.com, All rights reserved