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

VS 2010 Collections and Streamreader

I am currently working on a small doctors office project. The extent of my knowledge is using collections. So to premise, each doctor is allowed a maximum of 3 patients. On day 1: I need to create up...

View Article


Does Visual Basic 2012 Update 2 support Windows XP

Hello, We are trying to test our Visual Basic 2012 application on a Windows XP workstation. We built it using he default build options and tried running the .EXE on Windows XP. Received an error that...

View Article


VS 2010 Why does this happen?

Everytime I execute this code my computer beeps and it is VERY annoying! Code:         If e.KeyCode = Keys.Enter AndAlso TextBox1.Text * TextBox2.Text = TextBox3.Text Then             TextBox3.Text =...

View Article

Can Anyone Improve My Binary to Denary Code

Hi there, I was doing a Binary to Denary calculator as part of a school project and I have accomplished the aim but I feel it could be easier to use. Does anyone know how I can manipulate my code so...

View Article

VS 2010 Help with a program

I need help with a program I am creating. First, some background.. I am using the 2010 Edition This program has a simple GUI: Fahrenheitlabel, FahrenheitTextBox Celsiuslabel, CelsiusTextbox a button...

View Article


VS 2010 Help with searching list boxes

Hi everyone! I'm a new member here and would like to send big greetings :) I have a problem with VB2010, I've been trying to write this code for like 5days and cant seem to even know where to start :(....

View Article

VS 2010 Textbox to highlight as a URL bar should?

Hello all! This is my first post so I am sorry if I do not include the correct information, or if it is posted in the wrong place. Once again, hello! I am looking to get a textbox, (Such as Textbox1),...

View Article

Selecting a single column from database table and populate it in a listbox

i have a code here that i want to show the data from the database of a certain column, HOWEVER THE LISTBOX SHOWS: System.Data.DataRow System.Data.DataRow System.Data.DataRow System.Data.DataRow...

View Article


vb.net/web browser game question

I want to create a game using visual basic. I have made some progress on it. I have the UI and some of the basic coding in place. I'm curious if I am able to create a web page and have the app loaded...

View Article


[RESOLVED] split listbox data

i have in my listbox data with spaces. i want to separate the data before the space and the data after the space. (ex. abc 123) how can i separate the data and put the other in another listbox.

View Article

Possibilities of using an app to "create" an app?

I am trying to understand app-ception (lol). What if I wanted to make an App, apply a bunch of settings such as label names or combo box names, then based on those settings, it essentially "creates"...

View Article

can i update database column through listbox data?

Code: Dim conn As SqlCeConnection = Nothing         Try             conn = New SqlCeConnection("Data Source=" & userSpecifiedPath)             conn.Open()             Dim cmd As SqlCeCommand =...

View Article

VS 2012 XDocument - Object reference not set to an instance of an object

Hi, got a little problem with XDocument. I use XDocument to get a value from an XML document. Everything is working fine but I get an error (Object reference not set to an instance of an object) when I...

View Article


VS 2010 [RESOLVED] Files and arrays

I have a file named patients.txt containing strings of data. IE: Code: Alan Jackson 123 Main St 123-4567 Anthem A123 $200.00 $100.00 $100.00 Dr. Smith 5' 6" 179 27 120/97 False 04-09-12 1 Elise Farawar...

View Article

Image may be NSFW.
Clik here to view.

Class Functions

So my assignment this week seems fairly easy. We have to create a cash register that adds and subtract from the balance and doesn't permit negative amounts. We aso have to use a class called...

View Article


VS 2012 Need help finding a control

I am looking for a *Panel that I can add pictureboxes to. I want it to have vertical scrolling and a SelectedItem property / equivalent. I was using a TableLayoutPanel but I couldn't figure out an easy...

View Article

[RESOLVED] Forcing users to enable macros

Hello, I found this nifty method to force users to enable macros and so far it's working great and was very easy to implement. See method here: http://www.vbaexpress.com/kb/getarticle.php?kb_id=379 The...

View Article


[RESOLVED] Macro to close workbook without saving

I have in Module1: Code: Sub Auto_Open()     If vbYes <> MsgBox("Message", vbYesNo + vbExclamation, "User Agreement Disclaimer") Then         ThisWorkbook.Close False     End If End Sub I am also...

View Article

Interesting Problem with PreFilterMessage

I have a form that prefilters some messages by implementing the IMessageFilter interface and implementing this method: System.Windows.Forms.IMessageFilter.PreFilterMessage This thing is beginning to...

View Article

VS 2012 Open Text Files Without Permission

How To Open Text Files Without Permission: [Working 2013] Imports System.IO Public Class Form1 Public Sub opentext(ByVal txt As String) Try Dim sr As StreamReader = New StreamReader(txt) r1.Text =...

View Article
Browsing all 27470 articles
Browse latest View live


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