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?
View 2 Replies
ADVERTISEMENT
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
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.
'Console.vb//console.exe
Module Module1
Sub main()
[code].....
View 2 Replies
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
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
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
[Code]...
View 3 Replies
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
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
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:
[Code]....
View 3 Replies
Apr 20, 2010
I have the following extension method. However, when I type "File." this method doesn't pop-up. What did I wrong?
[Code]...
View 1 Replies
Jul 15, 2011
I get this error :
Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: tuto.exe
Problem Signature 02: 1.0.0.0
[code]....
View 1 Replies
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
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
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
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
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
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 cd and 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
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 locked So as to act as a Lock Screen...
View 3 Replies
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
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
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:
file:///C:/Users/ComputerA/Desktop/
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
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
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
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
Try
conexiune.ConnectionString = "Data Source=.SQLEXPRESS; AttachDbFilename=" &
[code].....
View 16 Replies
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
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
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
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
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:
[Code]...
View 9 Replies
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