Visual Basic 2010 Express Written Code But It Leaves The Window Hanging?
May 6, 2011
I am trying to write code for a login to my program. But the code I have written freeze's the screen. Basicaly I want to check if username (TextBox1) has text in it and then check if password (Textbox2) has text in it. if either textbox has no text then a MsgBox show's with an OK Button. and then I dont want the program to run. I want The login form to reload so the user can insert thier username & password. the code I have is below.
Is there an easy way to set the tab order for controls on a form in Visual Basic 2010 Express? I saw some references to a "View / Tab Order" menu item, but I don't see anything like this in the View menu when I am designing a form.
I am new to Visual Basic. The only programming I have played with thus far is Perl and some Python in script writing for Paint Shop Pro. (if that is acually programming) I found a tutorial on About.com "from the ground up" with a link to download VB 2010 and when I tried to install the vb_web file I got this error:C:usersuserAppDataLocalTempSit24308reboot.ini cannot be opened. I did a computer search and found this file was not in the Temp folder. The install just hung and I could not cancel or retry. I shut down from task manager. When I looked in add emove there was not a Visual Basic listed. I couldn't tell if there were any other files that were added even though VB is not listed. There seems to be more C++ files (which came installed on my laptop) but I'm not sure if there are more of these C++ files.
I have searched for a week and cannot find a tutorial of how to install this program. I see VB 5, VB 6 and VB 2008. I also see a file for Microsoft Web Platform Installer, but it does not say if I need to download and install this file in order to download Visual Basic 2010 Express. I keep going in circles with my searches and always end up back where I started which is at the Visual Basic 2010 Express download page.
As the title says, I have a program written in VB.net 2010. When I use the publish feature it creates a manifest and setup file that install the program nicely on another PC, but I think the security settings are somehow wrong because it sits there for ninety seconds upon launch. The program works fine on the computer that built it. There is no CPU usage while it is sitting around.
I am writing a program to show pictures and other related things. my screensaver interrupts my program when it is running. i will like to know if there is any way to suppress the screensaver whilst my program apart from manually turning off the screensaver
I am looking to create an application that uses a remote mysql database, takes a picture from a live video stream, and also interfaces with an RS232 weighing scale. I'm just looking for a one or two sentence definition on what the huge differences are between VB Express and Standard.
I am a PHP developer and I have never worked with VB before (well maybe since high school 10 years ago). I am looking to either use vb or c++ to create this, but I have limited knowledge of any programming outside of web programming.
When I select an area of text in Visual Basic Express 2010 and then go click Edit/Outlining/Hide Selection; the area collapses and is represented by three dots like "...". Is there a way to put my own title, description or label on it for better meaning and communication?
Visual Basic 2010 Express, lets the user to add a Local Database with .sdf extension. These databases needs MICROSOFT SQL Server to be created or they can run in the user's pc without any additional software? What are the limit of these databases unlike an external database?
I have created an excel 2003 file using visual basic 2010 express edition with access as backend. The excel is created using a select into query. I would need help to protect this excel file once it generated using visual basic 2010 so that the users cannot edit the same.
at the Moment in my code I have the words("C:PrivateWords"). and that is where the Username & Password is Stored/kept, But is there a way to store the Username & Password into the Programe. ect... in a form that only the owner of the programe can see. And what would you use on that form ie: listbox, textBox multiline, TableLayout Panel, that if it is possible to create a Form.
and would the code be something like The Altered code Below the code Below:
Public Class CreateUser Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
If we made programs in Visual Basic Express 2010 Trial are we allowed to keep the programs and distribute them freely on our sites and if we unistalled visual Basic can we keep the programs etc...
My Australian dates (dd/mm/yyyy) are being converted to U.S. date format (mm/dd/yyyy) despite using custom date specifier for Access table fields.Allen Lamb
We are testing the visual basic 2010 ee in one of the computing suites at a secondary high school. The installation was fine When we tried opening or saving a project it saves it into a default location i.e my documents. The problem withthis is pupils dont have access to c:. They their own drive on the network (h:) where they save their work. When i went and changed the settings in VB in tool > options.
I hope someone can help with a very frustrating problem I'm trying to solve in one of our Windows Forms apps written in Visual Basic 2005 and running on Windows XP SP3.
The app is essentially quite simple in concept but there is lots of code and data, however, the problem does show itself consistently. The app does the following:
1) Startup
2) Choose Access database to load data from
3) Load the data into memory as a series of collections of objects
4) Do lots of number crunching
5) Fails when entering a particular sub for the first time with an Access Violation Exception
The most difficult aspect of this problem is it only shows itself when compiled in Release mode. It doesn't show itself when running in Debug mode either within Visual Studio or running outside Visual Studio. I assume this is due to the extra 'padding' in a debug exe which is masking the effect of bad code causing the error. The problem is made worse in that the 'standard' build target machine where the problem shows itself only has a copy of Visual Basic 2005 Express so as a result I have been debugging the app at runtime using WinDbg which is tricky but sort of fun (for a nerd!).
I have read / researched extensively on the internet for solutions and as a result have tried the following but all without success:
a) checked for any badly declared DLLs (p/invoke) but the app doesn't use a single one.
b) checked for any COM references / interop. There were two references which were rarely used so I removed them and commented out the code that referenced them but the exception was still raised.
c) I've tried adding my own trace code in the problem area and the line prior to calling the Sub runs but the first line of the Sub never executes due to the Access Violation exception being raised.
d) I have used WinDbg to set breakpoints around the problem area at runtime which has confirmed 'c' above that the sub never executes.
e) I have used WinDbg to double check the addresses of the parameters passed into the Sub are correct as they seem to correctly point to the same address as the local / module level variable that was passed in.
f) I have checked all of the extensive data loading is not eg leaving DataReader objects open etc.
g) I have tried compiling the code in VS 2008 on a different machine targeting the 2.0 framework but the bug still showed itself.
Is it possible to connect to a database on SQL Server R2 Express from Visual Basic Express? I am following a set of tutorial videos done in SQL Server 2005, but cannot seem to connect to create the database. I have created the database in SQL Server R2 Express, but cannot connect. Is there a work around?
From my login form, and when a correct Username and Password has been succesfull and I get a messageBox saying "welcome to your System" (Picture Below) and when I press the OK button in that MessageBox, I want to open Form3.do I add code to the Underlined code (below Picture), or Do I write a completley different code after the messageBox code.