Quantcast
Channel: VBForums - Visual Basic .NET
Browsing all 27372 articles
Browse latest View live

Visual Basic 6 to Visual Basic 2010 Express

How do I convert my VB6 project to Visual Basic 2010 Express. I was told that this would be a simple conversion process, but can not find this option in 2010 Express. Joe

View Article


Attaching a file to Visual Basic

Hi, I am using a MenuStrip and in that menu strip I have a button ( Or whatever they are called. I'm just saying button because I don't know what you would call it if it's in a menustrip. ) and when...

View Article


VS 2012 Add labels and textbox's during runtime

I'm trying to add a textbox and a label during runtime when the users presses a button. When I press the button a label and textbox is created, when I click it again nothing happens. Here is the code I...

View Article

VS 2012 How to retrieve the autoassigned value for a customer record from a...

Hi again everyone. I'm trying to create new users depending on 2 tables (Customer and Login), so when I click a Register Button it executes the following code: Code: If (txtName.Text = String.Empty And...

View Article

I'm a little confused about (source - predicate)

This is a MSDN example http://msdn.microsoft.com/en-us/library/bb534972.aspx. Code: Structure Pet         Public Name As String         Public Age As Integer         Public Vaccinated As Boolean...

View Article


VS 2010 Storing date value in access

I was trying to store an date in my db table, for which i had used the following code. Code: cmd.CommandText = "Insert into Purchase (InvoiceDate) Values (@InvoiceDate)...

View Article

Accessing a Button Click From Datagridview Column Button

Hola, If i have created a datagridview (visiual studio) and made one of the Columns a BUTTON, How do I access that button in code? If the DGV has 3 rows and thus 3 buttons, one for each row, how do I...

View Article

VS 2010 autostart program doesn´t behave like when it´s started manually

Hi, I´ve made a program that autostarts when windows starts. Like always, when using it on a windows 7 64 bit machine, it doesn´t work. I´ve learned that it usually has to do with "security" settings,...

View Article


VS 2012 Savefile dialog & msgbox

hi guys, Anyway how i can make a savefiledialog, and save a file to show a message box ? the project contains A textbox1.text and a savefiledialog, where when you write something in the textbox and...

View Article


checkboxes

Ok, I have a very simple question: I did not have option strict turned on in one of my forms, and now that it is I have an error saying that you can't convert an integer value to a checkbox checkstate...

View Article

SerialPort problems, readline() hangs when using win xp (fine on win 7)

I am very new to VB.net so please be understanding!! I have based an application around some examples from the net. Basically I have a microprocessor connected to a serial port. The Micro does 2 main...

View Article

[RESOLVED] Getting listview selectedindex

I've got a listviewbox with a single column. I want to get the selectedindex, and I'm using this code: 'txt = lvwROMs.SelectedItems.Item(0).Text'. It works the first time, but the second time it raises...

View Article

VS 2012 Using a combobox text in instructions

Hello guys, I am making a program and I want to use the text in a combobox in a certain piece of code. See this instruction: Code: txtElementNumber.Text = (cboElements.text).ElementNumber ElementNumber...

View Article


Settings are causing an exception

My application is giving me this error when it starts: Quote: An unhandled exception of type 'System.Configuration.ConfigurationErrorsException' occurred in System.Configuration.dll Additional...

View Article

VS 2012 [Help] How Can i get a "Char" position(X/Y) in richtextbox?

Hey all.. i am having aproblem with finding a char like a smile ":)" position(x/y) to replace it with a picture box control in a richtextbox.. if anyone can give me a hint or away to do it.. i will be...

View Article


VS 2010 XML, dropdown boxes, and webpages ... oh my

I would like to develop a webpage with 2 dropdown boxes that can eventually produce another webpage containing a table of results based on the selected dropdown values. The values for the dropboxes...

View Article

Newb to VB - Help with strings problem

Hello...I am really inexperienced with computer programming and learning VB on my own as an introduction of sorts. I've surpassed the general strings section and now I'm having a problem writing a code...

View Article


Do not clear TextBox?

Using the following code, everything is executing how I want, except the text that is transferred to the form Command is highlighted, so on the second keypress it gets deleted. For instance, from the...

View Article

Excel Taking Ages to Unload

I am opening an Excel file from VB, saving some data to a sheet and then closing the file. For some reason when I close Excel, it seems to take up to a minute to unload (looking at task manager). If I...

View Article

VS 2012 having a problem with autoscalemode

As the title suggests I'm having a problem with the AutoScaleMode property of my form. It was set to AutoScaleMode.Font when I changed the font size for my form. I referenced the form's font size in my...

View Article
Browsing all 27372 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>