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

SQL Server Database location

Hi! I have a couple of questions... 1. Is it a good idea to put the database in same folder with the application? any advantages and disadvantages? 2. How would the connectionstring look like? Thank you.

View Article


VS 2012 [RESOLVED] Cast a List Of Type to List of Object

I have written some code to load a list of type Author to a ListView. Here is my code: Code:     Public Sub LoadListToListView(ListView As ListView, ListToLoad As List(Of Author), ListOfPropertiesToAdd...

View Article


VS 2012 Access to Public code

Is it possible to have access writes to Public Functions. By this I mean, only Form1 and Form2 can access a Public Function in Class1, and Form3 and Form4 cannot access this Funtion?

View Article

serial port, on multiple forms

I'm not very good at VB yet so bear with me. So I have used VB to create a single form application, with a serial port and everything works fine. I want to elaborate on my application by adding more...

View Article

Strict disallows implicit conversions from Drawing.Point' to 'Drawing.Size

Trying to get a grasp on skinning. Works fine with strict off how ever i do understand the implicit conversion but can't for the life of me solve it. vb Code: Private mPoint As New Point(0, 0)...

View Article


visual studio 2012 - multiple for loops

my question is this. I have a project that moves and renames files based on certain criteria. It will search through all client files or if you type in a single client code it should only search...

View Article

Error : Additional information: The port is closed.

An unhandled exception of type 'System.InvalidOperationException' occurred in System.dll Additional information: The port is closed. Working with an application using serial ports, often times I am...

View Article

Question on hierarchy.

Following this thread, I'm making a card game. Currently for my card I just have: Code: Option Strict On Option Explicit On Public Class Monster #Region "Properties"     ''' <summary>     '''...

View Article


VS 2008 help filling out an HTML form

I'm trying to fill out the username and password form on the website: https://secure.myhfs.illinois.gov/lo...oamingEPF.html the user name and password html is : Code: <td><input type="text"...

View Article


VS 2012 Express: Inserting Some Text With an Excel Range

I'm using the following code to gather a range of cells in Excel before writing them to a text file. The thing I need to do now is to squeeze a couple of extra fields of text in between a couple of...

View Article

VS 2008 How to clear images from the scren that are not in picture boxes

I am converting an old VB6 Solitaire game to VB.Net (2008 is what I have) as a means to learn the newer tools. I have everything working correctly but one major glitch. I use qcard32.dll which draws...

View Article

Manually loading a ComboBox?

I have a function that populates any ComboBox control based on data passed to it. My problem is that, when the function returns the ComboBox, the target CB contains the Items, however, they are not in...

View Article

VS 2012 Read line numbers for each word in a text box?

I have a program that reads a textbox and lists all words in a listbox. Need help displaying in the listbox the line number of each word as it appears in the text box. Any help would be appreciated!

View Article


Image may be NSFW.
Clik here to view.

VS 2010 Working with XML

I'm admittedly a complete newb to programming with XML. I'm working with the attached document (changed the extension to .ZIP for uploading) but can't get anything to work for XPATH. Can I get some...

View Article

VS 2012 datagridview

Hello, I am newbie for vb.net.Have worked on vb6 since 8-9 yrs.Now shifted to vs2012 Now i want to design a form on which i have taken datagridview control. I have a column named "customer" in...

View Article


VS 2005 Update records

Hi! I have this code to insert records Code:             'insert all selected subjects             y = Me.BindingContext(dsSub.Tables("tblSubjects")).Count - 1...

View Article

PLease help, Does anyone know why I am getting this error?

error: Arithmetic operation resulted in an overflow. the error appears at the last place where fact is written here is the code: Code: Module Module1     Sub Main()         'outline of program...

View Article


TAPI and AT Commands for new project as a check call system

The above actually explains exactly what I want, I am researching on how to create a new system that would allow my employer's security company employees to do check calls as required. I want to use...

View Article

VS 2010 WebResponse then GetElementById

Okay, if I have a webbrowser control I can extract an HTMLElement with wb1.Document.GetElementById. But what, instead, if I've made a WebRequest, and got a WebResponse back? How do I then extract an...

View Article

[RESOLVED] Invisible cell values not showing up in DataGridView?

I have a DataGridView in that contains 8 columns in it. The first two columns have their "visible" property set to False. It was always my understanding that even though the columns are hidden, they...

View Article
Browsing all 27329 articles
Browse latest View live