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 ArticleVS 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 ArticleVS 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 ArticleVS 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 ArticleBest way to high light areas on a picture
Looking for advice on the best way to handle this: Have a main picture and I want to high light certain areas (around 30) on the picture. I would like to high light with a round circle, and that circle...
View ArticleVS 2010 need to create a running total
I am still in the learning process with VB 2012. I have to calculate a total for a purchase. Everytime the user enters a price and clicks the add to sale button, it adds that price to the running total...
View ArticleVS 2010 .Net Module fixing bugs (Reading text file)
Hello, I am new programmer, I have a created a program that can read text file splitting the value on it, actually I have done it but there is a bugs which I cannot proceed to run the program. Here is...
View ArticleBetween Months,Days increment by 1..
if i have 1 day..why it is increment to 1 this happens if i have month and days or include all year,months and days..year and day looks fine.2years 2 days=2 years 2days ..or if i enter 1 days only it...
View ArticleVS 2010 [RESOLVED] .Net Module fixing bugs (Reading text file)
Attachment 94103 Hello, I am new Programmer, I have done a simple program that can read text file, I am having a little bug in the code which I cannot proceed. Here is my text file to read: 0#Goodnight...
View Article[Help] Sockets
Hello everyone! I have definitely lost a lot of my knowledge of VB and VC#, so I was hoping someone could help me clean up/speed up an old socket program of mine. Pretty much what it did was allow for...
View ArticleVS 2010 [RESOLVED] Changing and Restoring Background Color
On my forms I would like to change the background color of my controls when they receive focus, then restore it to the system color once focus is lost. The GotFocus portion works, but the LostFocus...
View ArticleVS 2010 Binding SQL Table with VS2010 / VB.net / SQL Server 2008
Hi there, I have designed a form and I want to bind my SQL table with a combobox, I have a datasource and a dataset, form & combo box... connection is made with ODBC connection string....
View ArticleVS 2008 Verifying if a date exists
Is it possible to find out if a given date exists ? In my program the user may may select (as numbers) all three elements in three separate combo boxes (Month - Day - Year) . However it would be nice...
View ArticleVS 2008 Finding if a control is Enabled
It may sound stupid to ask , but I am forced to ask anyway ... How can we find if a control is Enabled ? I mean succesfully ! Because here's what's going on . I have a button on a form and when it's...
View ArticleVS 2010 MDI Child Form Size
My project has a Main form as MDI parent and all other forms are children to Main. I would like all children forms to appear maximized within the parent form. In VB6 all I had to do was set the form's...
View ArticleUsing structure to write to file?
Hi,this should be an easy question about this inventory program. I am using a structure to write to a text file by date. Now there are two text boxes, a upc text box and a quantity text box. The user...
View ArticleVS 2010 Update requires avalid update command when passed data row as...
I am getting an error mentioned in title when i modify all ready saved values and when i press save button the error occurs in this code Code: Private Sub Button1_Click_1(ByVal sender As System.Object,...
View ArticleVS 2008 Adding resources dynamically (CodeDom)
Hi all , I've been wondering how I can add custom ressources to my codedom builder. I have some data to store in but I'd like to avoid to add the default format which is : .resource Is there a way to...
View ArticleDatabases
I am a beginner and trying to add a database to my project. I've been following afew guides that approach it in slightly different ways. However, each attempt fails to save tables. (Example Guide) For...
View ArticleVS 2010 How to run multiple functions at once in VB Console
Hey guys, Our Computing teacher is encouraging us to try making games with Console in VB, and I like the idea, but there's one big problem with a lot of games that I don't know how I'd get around:...
View Article