I created a windows form application using Visual Basic Express Edition 2008 but I did not know I could not use it on the web, which is what I wanted but being new to VB I just got a lot of headaches trying to figure this out. It works fine as a windows app but now just recently I installed Visual Web Developer 2005 to so I could create a web application from the windows app.
It is a simple windows application of a datagrid but now I want to run the same design application I made in Visual Basic to Visual Web Developer Express 2005. Is this possible? And, what do I need to do? I have all of the associated files in my project folder in Visual Basic Express folder.
I found that when group by multiple values does not work well with VB.NET, but it works well with C# ,here are my code, is there something wrong with my VB.NET Code? Here is my VB.NET code:
I have an application that requires data be entered, and after entering, a button is clicked to process that data. Clicking the button works just as it should--the data is processed properly. In constructing a test module, I provide a set of data values, followed by:
btnWhatever.PerformClick()
Nothing happens. I have used this syntax for years, and it has always worked flawlessly. I have triple checked everything else and isolated the problem to the failure of the PerformClick(). The PerformClick() is in a test subroutine that does nothing but fill textboxes and labels with default data, then calls the PerformClick() on the button to begin processing. Again, the button works fine, the data is entered as it should be, but the PerformClick() does not fire the click event.
I have a form that works on my local Machine I created into. I have Office 2007 on this machine. I created the Form with the Excel 12 Reference. I move the Entire conetence of the Project folder to my work computer. Which has Office 2003. Do I need to recreate the form with the Excel 11 reference. I could not get the form to work on work computer. IT has a com error. I am acessing the EXE for the debug folder w/in the Bin Folder.
I'm using vb2008 with DB MSA2007 (save it to MSA2003) on Seven(7)System After I create my project I build it(make exe). then I took the file of project (application) and the DB from Debug Folder.
I tried to run this application with DB on another computer it's system is seven and MSA2007 and work very well. then I run it on pc it's system XP and MSA2003. it showed this error
Application Error THE APPLICATION FAILED TO INTIALIZE PROPERLY (0XC000135). Click on OK to terminate the application
I'm building a VB(2010) program to create the graphics for my laserprojector.The program works when I debug it in VB, but when I run the EXE program in the release directory, it doesn't work. The problem in the EXE program is theat I can't draw/view graphics in the picturebox..I coppied my whole program to a new VB project, but I'm having the same problem...In the original project, where the program works, there are no warnings or errors.
how does look-up work in Visual Basic, I have done research on this but it does not explain. I have a Form1 called( Booking form) with 2 ComboBox's and 1 TextBox. each called (Destination_FromComboBox) and (Destination_ToComboBox) and (FareTextBox)and another form2 called (Fares Form) with 3 TextBox's each called TextBox1 (FromTextBox), TextBox2 (ToTextBox2), TextBox3(FareTextBox).So when I select (Booking Form) and Insert or select a Destination from (Destination_FromComboBox) and Insert or select a Destination To (Destination_ToComboBox) I want to read from (Fare Form/Fare Table) and give me the fare in FareTextBox on the Booking Form. Also on the booking I have 3 Radio Buttons
If the time is Between 05:00 & 23:59 then normal time should be used If the time is Between 00:00 & 02:00 then time & half should be used If the time is Between 02:00 & 05:00 then Double time should be used
I have watched loads of video's and looked through forums and other codes for the combination of the above, without success?
I have this great way to use VB6 I treated my project like a .exe file.Say I want to work on c:work directory.I just save as the .vbp file to c:work directory
All the other files (.frm,.bas,.cls) files are in a special directory called library ALL of my .vbp files, in c:work1, c:work2, c:work3 refer to that one same directory.How can I do that in vb.net?
Why this is important? Bugs always happen all the time. If I just run .exe file, when bug happen, I cannot do a thing. However, if I run the project file and run the program in debug mode, when bug happen I can figure out what happen.
I am a CS grad, but haven't had much to do with programming since my school days as I went the BA route.Anyways, there are a few things that I do manually on the computer and thought that I could probably save time by creating an application for them.But I'm not really sure how to start.I'd like to be able to keep a history of Completed eBay listing so that I know when the price point is good and when it is too high.I noticed that eBay has an RSS feed, so I think I can do it. Just a couple of quick questions:
1 - Can I instruct VB.net to open a web browser and read an RSS feed, or would I need to manually do this myself and then run the application?
2 - What is the best way to work with RSS feeds? Should I convert the data into XML first?
I am trying to get a percentage that just does not seem to work.I am using WMI to get the Total Physical memory of my system and then the Free Physical Memory. Then get the percentage.
2147483648 - Total Memory 838028 - Free memory
According to Task Manager my physical memory is 59%. This is the code I am using but I can not get 59% or 41% that is free.
I have a simple application:Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
#If DEBUG Then lblDebug.Text = "Debug" #Else lblDebug.Text = "Not in debug" #End If
Now when I run it in VS, it prints "debug" like it should, but if i run the .exe, it still prints "debug". What do i have to do to get this to work right?
I'm working with VB.net.I'm having problems while I connect my application to my database today so I wanted to add an error handling to close the form.The problem is that when I put Me.close in a form, this form still open. I used the Form.Closing event handler to verify that it was called, and then ran my application in step by step which showed that the event handler was called, but the application continues and the errors appears to the user.how to close a form properly without closing the application?
I am modifying a couple of fields of a datarow and immediately calling AcceptChanges on this datarow. Technically, after calling AcceptChanges, the RowState of the datarow must be "Unchanged", but it is still "Modified". Why is this so?
I am using visual absic 2008 express edition. I am trying to produce two (FromNode, ToNode) random numbers and store in an array (ArrayTo(NoConnections)). The array should not have same values at the same time and the aary should not have the same number or the other way around. For example, The array should not have numbers like 22, 55, 66Šetc If the array has 13 and 45 then 31 and 54 is not allowed in the array and vise versa.
I recently moved over to a Windows 7 computer and I can't get databases to work with VB.net.Before I moved I used to do an Access database and connect it to VB through the ODBC thing. However, I don't have Access on this computer (open office) so I'm not sure how to create a database and connect it.I have tried to use the SQL Compact Edition that comes with Visual Studio but I not sure how to get it to work. Also would something like mySQL work with VB? I have looked at the mySQL workbench and like it, what else would I need to download to be able to use the databases created with it in Visual Studio?
I am trying to put in a datagridview in my program, and when I add the connectionMiscrosoft SQL Server Database File as the data sourceand i have a .mdf file for the database..when I click OK it says it couldn't login my computer account, i tried putting my login name and password, and it still didnt work.
A VB 2008 program that I am developing suddenly has a problem when trying to debug with breakpoints. I set a breakpoint, but the program does not stop there. A small yellow icon appears by the breakpoint bullet and says (when moving the cursor to it) "The breakpoint will not currently be hit. No symbols have been loaded for this document". Other applications debug ok with Visual Studio, so I suspect there is some setting for this one application that has gotten messed up.
I can't seem to get a FileSystemWatcher to work, this is what I currently do.
Private Sub FileSystemWatcher1_Changed(sender As System.Object, e As System.IO.FileSystemEventArgs) Handles FileSystemWatcher1.Changed MsgBox("Directory has changed") End Sub
I have the filesystemwatcher path in my desktop. But when I create, re-name or delete something in the desktop it dosn't do anything, not even giving an error. I filter FileName, DirectoryName and LastWrite (the defaults).
The FileSystemWatcher have the EnableRaisingEvents set to true. So don't really know what the problem is.
I've tried google without any luck, all I found was people having problem that the FileSystemWatcher executed twice.
So do I have to do anything more on the code to get it to work?
I can't get this Progress bar to work, I tried few steps. I'm writing this application to copying the Host file to a folder in desktop for troubleshooting purpose at Office. (there are few more if i can get this to work i can replicate the same for others)
I have read through soem other threads on this site and it has gotten me this far, but I can't seem to get over the hump.I am trying to create a table to reports back the proper data from a sql database based on what a user types in a textbox. I have pulled a dataset that i have already setup onto the tabl.
Public Class robsearch Dim sstring As String = "1234" Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
The values for the 10 variables belonging to the modified array should be equal to the ages of 10 of your classmates. You must begin by gathering ages from 10 of your classmates and recording them for use in your program. Instead of calculating and displaying the total of the array values, find and display the average age of your 10 classmates.
i have to finished a cacluator, all my code seems to be working apart from the equals button and i do not understand why..i've tried several different things such as a case too but nothing seems to work to get the equals button working. This is my code, no need for all the buttons they are the same and ive declared variables.
I'm writting a "Console Application" using Visual Basic (VB.net) 2008 Express Edition in a Windows XP SP3 environment, and I'm trying to get SendInput to work.
I have been able to get SendKeys working, and I'll use it if I must, but there are some unpleasant control issues. Plus, it's incompatible with Vista, from everything I've heard.
So, I'm including two attachments. The first is a quick-and-dirty working example of SendMessage (actually SendMessageString) which I've used to half-way convince myself that I know how to use the "user32.dll" API's. (For simplicity, I've stripped out all of the error-testing logic.)
The second bit of code is my unsuccessful attempt to get SendInput to send some test keystrokes to Notepad. (I've heard some people say it can't be done in VB.net. Are they right?) To get a clean compile, I had to comment out 'CopyMemory' because how to get it to work. Is it essential to the code?
Tim Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" _ (ByVal lpClassName As String, ByVal lpWindowName As String) As IntPtr Public Declare Auto Function FindWindowEx Lib "user32" _
I have used sockets in VB6 before but cannot get the same functionality to work in VB.net. I have two machines running VB code and I want the applications to exchange information via a network connection. Using VB6 and socks it was easy but I just can't figure it out in VB.net.The data exchanged are string messages; there is no interaction between users it's just the applications exchanging info. The one machine will always be the server and is running a windows forms application which I'm writing in vb.net (it's actually a satellite antenna controller) the other machine is connected by an Ethernet connection (private network these are the only two devices) and is also running a windows forms application which I'm writing in VB.net (this is the remote controller for the satellite antenna controller) Can someone give me a pointer to some simple code that opens a connection and I can read and write between the two (both ways) using string messages. I' am assuming sockets are the right way to go? Everything I research keeps coming up with console applications