I'm trying to create a combobox with lists of radio stations in it so when user selects lets say "rap" it will play rap radio station which I have put in the code ( I did something liek this for VB6 long time a go just wanted to knwo if any one can make this code work for VB2008 ) .
I am converting a VB6 program to VB express and am having a couple of problems. One of them is a difference in String use. "Result=string$(32,0)" doesn't compile and I tried the trim function, but when I cannot use the "0" with the trim function the program shuts down with the error "Argument 'Start' is not a valid value." I need to replace the "Result=string$(32,0)" with a valid vb express line.
Super newbie here and I recently signed up just to address my problem. Please help me convert or at least tell me what to do on the following code to my vb2008.I saw this listing on a website and I like its simplicity. It was written in vb6.
here's the snippet:Design the form. Create a Command Button named as Command1 and copy that and paste it 11 times. This will create a control array.Then assign the text naming it 0-9 plus (.)dot and they are under one control array. Likewise create cmdOperator control array for the operators Add, Subtract, Multiply and Divide. One button for equals and one for clear. All in all 17 buttons. 1 textbox serves as input and output.
Sorry if I'm in a rush here( I am already) but vb2008 its hard for me to learn control array. I have read a few post awhile here dealing with arrays in vb2008 but I'm overwhelmed with info and confusing for me to grasp the idea.
I created a windows form in VB 2010 and I am trying to view it in 2008, but I get the error message "The selected file is a solution file, but was created by a newer version of this application and cannot be opened".
Is there anyway I can re-save the 2010 project(similar to Microsoft word) in order to be able to open in older version?
I want a program a very simple program, a software that will let you enter a name and then you click "Create". This will create a program and when you click it it will show "Hello! *the name*"
I new in vb. Currently im using vb2008 to run a program.Dim notepadID As Integer = Shell("C:\Program Files\Motvik\wwigo\wwigo.exe", AppWinStyle.NormalFocus)This is the code is use but it keeps show "file not found exception was unhandled.
I edited the development copy of a cherished program beyond restore by CTRL+Z, the original version which I want to recover is already published and it is in the c:/deploy folder but I dont know how to open such files for editing. How can I open this deployed program to edit and add some methods. I was cautious enough to save the program before editing but I was suprised that the original was over written by the edited copy.
Published VB program will not run on another computer yet works fine on the computer the program was written on. Message window during set-up on the other computer reads "Cannot download the application. The application is missing required files." The set-up file is being run from a flash drive.The entire error summary is included below. A recurring line in the error message summary is "+Downloading file:///C:/Documents and Settings/username/Desktop/Application Files/filename_1_0_0_6/filename.exe.manifest did not succeed."The word "filename" is the name of my program. "username" is the computer's owner.Interestingly, the "manifest" file on my computer is kept in C:UsersusernameDesktopApplication Filesfilename_1_0_0_6filename.exe.manifest" I'm running Windows7; the other computer is running Windows XP.How do I get my program to run on another computer?
PLATFORM VERSION INFO Windows : 5.1.2600.196608 (Win32NT) Common Language Runtime : 2.0.50727.3625
I am making a program for me and I told my friend about it and they said that they would like to test it. The only problem is that they don't have VB2008, and there seems to be no way to compile my program so that another person WITHOUT VB can use it. Does anyone have any tips, or perhaps I'm missing something? Let me know ASAP
I have a 4 table database and need to query at least 2 tables (the single table query works fine). The output goes in textboxes / labels on an existing form.
I'm trying something like this:
Private Sub AddCustomer_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
I decided give up vb6 and begin use vb.net.And I'm going to update my old vb6 code.I used write a vb6 program to update my program.it's a simple program:I have a webside,I put a file in the webside,this file it's just a document(.txt),only include version number.my program use "inet" download this file(address like this [URL]and compare the version number,if this document number it's bigger than this program number,than told user you need update your program.like this:
dim ver as string ver=Inet1.OpenURL(http://www.sample.com/info/ver.txt)
[code]....
But,In vb2008,I don't know how to write those code.I search the local MSDN,it said I can use:""my.network.download" to download files,but it's only can download a file and save it as a file,I want to download a file and save it as a variable(type is long),I don't know how to write those code.
I have a fully functional multi-threaded VB2008 console application that I need to convert to a windows forms application. I am doing this to add additional functionality at a later time. How would I go about doing this?
I want to write a program that if ping www.microsoft.com is success,than caption title it's "ok,connected Internet",if ping it's failed,the program "caption" title is "sorry,not connected",but I don't know how to write those code
i am trying to use the sleep command in vb 2008 multiple times to constantly change back color but am told, Unable to load DLL 'Kernel 32': The specified module could not be found. (Exception from HRESULT: 0x8007007E). i tried it with another program and one sleep(1000) and it worked so is there a way to use this multiple times or any other command.ian hendry
I have a PictureBoxMain on my form. I have 6 buttons. When I click a button, I want the picture box to display an image that relates to the button I've clicked.
Public Class FormPipe1 Private Sub ButtonBranch_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonBranch.Click
When i run the program everything works fine. I want the textboxes to keep the data in them till the next time i run it. Right now when i shut it down (with data in the textboxes) then start it up i have lost all the data.
Heres my code
Private Sub TextBox2_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox2.KeyPress 'Numeric values only If Not Char.IsNumber(e.KeyChar) And Not e.KeyChar = Chr(Keys.Delete) And Not e.KeyChar = Chr
I have built up an interface in VB2008 with many textboxs and labels on. When I click "New", I would like to clear all the textboxs and labels, i.e. each with a NULL value. Meanwhile, I also would like to clear all the arrays behind the program, i.e. the arrays which are not shown on the interface but is important for the calculation.The only way I could find out now is to clear the textboxs, labels and arrays one by one. So if there are 100 textboxs, 100 arrays, I have to write 200 lines in total. Obviously, it is not expected. Is there any other quick ways to directly reset everything to the beginning when the interface is just opened?
This is going to be a lot to ask, but I'd like to convert my old GW-BASIC program to a command line program with arguments. I'd like it to operate as follows:
elapse [drive:][path]filename This is my old code.
5 CLS 10 OPEN "G:Calc.txt" FOR INPUT AS #1 20 WHILE NOT EOF(1): INPUT #1, A$, B$ 30 IF MID$(A$,3,1)=":" THEN C$="DOUBLE DIGIT":GOTO 50 40 IF MID$(A$,2,1)=":" THEN C$="SINGLE DIGIT":GOTO 120
I'm trying to get a VB2008 multi thread application working that connects to a local server program using sockets. Server requests for this particular system can be more quickly handled by a number of connections, so I've written some code to run any number of data request threads that I choose. The problem that I'm having is that the data returned from the server is getting mixed up and is often returned to a different thread/socket than the one that requested it. Other than that, it seems to work okay. If I use just one thread, then the system works as it should. Pls. see incuded code, which is heavily edited to remove all the other fruit salad. Is there any way to set up the sockets so that data returned to the socket/thread that requested it?
Module StaticDeclarations Public WithEvents g_SD As New SocketDataClass(New MainThread.MTCallback(AddressOf MainThread.MTResultCallbackSub)) Public WithEvents g_MT As New MainThread(New SocketDataClass.SDCallback(AddressOf SocketDataClass.SDThreadResultCallbackSub))
how to save a file to "program files\xyz\folder" using VB2008.here the sample code that i've try but i dont see any files that created on those folder.
private Click Button1_Click(ByVal.... If CheckBox1.Checked = True Then Dim A As New System.IO.StreamWriter("C:\Program Files\xyz\folder" & "test1.xml") Dim w As Integer
[code]....
* If i save it to others places its works fine and i can see the files. but when i try save it to Program Files, The file is not appear in the folder.
I have a few questions reguarding converting a Access program to a sql/vb.net program. I know these are vague questions, so feel free to give vague answers.
NOTES: I have a solid unstranding of SQL and VB.net. i have little Access experience, but i would be working with the individual who created the access program. I also don't have alot of experience in converting on program from one language to another. Most of my experience is in new programing.
[Q1] Is their a general rule of thumb when converting/recodeing on how long it should take? i.e. if this project would take me 40 hours to write my self from scratch it would take me 30 hours to recode into another language?
[Q2] What type of problems do i need to look out for when working on projects of this nature and being inexperinced?
how to enter a data that i enter in textbox to a datagridview... for example i enter in the textbox is round and when i click add it will go to database... im using ms access database
I have developed some programs for processing and issue-coding electronic documents. I am teaching myself how to work with SQL Server because I want these programs to work with electronic documents imported into SQL Server as opposed to messing around in a folder stuck on the desktop, for example. From there I want to expand on the program so that it is a network enabled program.
I'm trying to convert a program from VB6 to DOT NET. In my original program I have a menu array which was simple to create.I simply named each menu element the same name and assigned each a different Index property.In DOT NET, there is no Index property and trying to create a second menu item with the same name generates an error. I have been unable to find any info that helps me transfer the functionality to DOT NET.
Can someone help with my struggle to make the leap to DOT NET?I'm also trying to convert use of the MSHFlexGrid in VB6 to the DataGridView tool in DOT NET and this is driving my to distraction. I've figured out some things already with lots of web searches but selecting a column to sort and sorting it still eludes me.
I have this code that gets the hostname,IP and MAC address of computers under a certain domain name. but it is in C#. i am required to run the code under vb.net.[code]...