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

VS 2010 How do you move the position of a background image inside a PictureBox?

Hey guys, I have a PictureBox control that will display an image that the end user specifies, and then position this image in the very center of the PictureBox (as it's background image). The width...

View Article


VS 2010 SQL Connection String: How To Take Server Name & Database Name From A...

Hi all, I have the follwinig connection string which works fine except I now need to write the app so that the server/instance and Db. name is taken as a variable from a textbox on my form. The...

View Article


How can I make a custom table like excel

Hello, I want to make something like an excel table that I will populate at runtime. I want to be able to select each row (not cell). I will have a form where I will write my data that has to update in...

View Article

VS 2010 Make Word save file as "Web Page, Filtered"

I am using MS Word's ability to save a file in HTML format to create a very basic website CMS system. Files must be saved with a .htm extension in the "Web Page, Filtered" file format that is available...

View Article

VS 2008 VS 2008 Combobox in update form

Hi to all I have download a multi column combo box from here http://support.microsoft.com/kb/982498 My problem is that me, my form is for update and when I press the dropdown they loses its original...

View Article


VS 2010 Find dates in listview

Hi I made a very simple kind of reservation system. A selection of devices and 2 DateTimePickers. Start date and end date. These values is added to a list view. ITEM-1 Start Date End Date But I could...

View Article

Problem with DataView code in vb 2012

I am new to this coming from VB5. I am getting the exception message "DataTable must be set prior to using DataView" on the first line of my code below. What is the code I need to set the DataTable?? I...

View Article

[RESOLVED] multi dimensional array project help

I have a couple problems i'm not sure how to solve. Under function process string, i'm taking a line of string from a notepad, using split to split up the numbers, and then trying to store them in a...

View Article


substring, index of, and array beginners help

Please help. I need to take a string separated by commas, and divide up the numbers to store into an array. I cant seem to figure out why it isn't working. I'm pretty sure the part where I store the...

View Article


Racing game VB10

so i am making a racing game in VB10 and i cant seem to find out how to make the game stop when it reaches specific coordinates. for example, the picturebox4 would win at the coords of (0,66). I have...

View Article

Image may be NSFW.
Clik here to view.

VS 2010 PrintDocument and Datatable Console app

Hello, I want my data from datatable printing on paper or pdf, using PrintDocument. Can this? Consolecode: Code: Imports System.Data.SqlClient Imports System.Drawing.Printing Module mDatabase     Sub...

View Article

VS 2010 Methods

Hi all First post and very new to VB. Trying to finish the construction of a method (design code) before it is implemented in VB. The method should removes all non-letter characters from an input...

View Article

VS 2010 [RESOLVED] How to detect which label was clicked in common eventhandler

I design labels dynamically and add them to a Panel. I use AddHandler to create a single handler to deal with them all and the handler works. If I click a label, it shows the MessageBox. However, I...

View Article


VS 2010 Fake/virtual mouse (duplicate mouse) inside of app's GUI

I don't know how to explain this very well. But, is it possible to make another mouse to run independent inside of your app's GUI? I mean, make a virtual mouse to run inside of it and interact, instead...

View Article

Testing, Testing! Putting LINQ Through The Wringer

So I did these preliminary tests using a 2.6MB text file with 240000 entries length 2 to 20, selecting the 13,000 + entries of length 5. 1-3 used System.IO.File.ReadAllLines to populate array (words),...

View Article


[RESOLVED] Can I use hidden data ina DataGridView

Hello, I am pretty new to DataGridView and I have a question. I managed to display the content of a database in a DGV and I've hidden the column ID which is the Index of my database. Now, this Index is...

View Article

VS 2010 [RESOLVED] Creating and Writing to Text File

I'm having trouble creating a text file, and writing a stored integer to it as a save text file. What I have is: (I've imported System.IO already) Dim id As Integer Dim writer As StreamWriter writer =...

View Article


VS 2010 [RESOLVED] Load Image Based on Database Filename

This may sound confusing at first, but is there a way to display an image in a picturebox from a file directory, based on the image's filename in a database? For example, one of the fields in my...

View Article

VS 2008 [RESOLVED] Reading

Hi all , I've been working with huges string lately and I've noticed something. I want to store around 9 chars into an array. Then create skip to next array and store 9 more chars but the string lenght...

View Article

VS 2008 Update List of T

If i had a list (of customers) where customers was a structure with a few fields in it. What would be the best way to update one field in one of the list items ? Thank you.

View Article
Browsing all 27186 articles
Browse latest View live