For...Next instead of Do..Loop & Select Case instead of If Statement
Hi guys, I am a beginner in VB, I have one exercise to solve: Rewrite the following program segment by using For Next statement instead of the Do Loop statement, and by using Select Case statement...
View ArticleMultiple companies
Im developing a accounting vb.net windows application, 1.In this 1 company can be created with its customer n vendors. My problem is how to make multiple companies...for ex in quickbooks and many...
View ArticleVS 2010 Delete SQL records based on Datatable
Afternoon all, I load a number of records into a datatable. I am trying to find out if there is a simple way to remove all the records in my sql table that are in my datatable without having to loop...
View ArticleGetting this screen while trying to debug app???
I'm getting the following screen while trying to debug my web app. I set a breakpoint and when I hit the breakpoint and step to the next line, this error occurs. I've never seen this before!!!! Thanks,...
View ArticleHow to split email string?
If I had an email- firstname.lastname@example.com How would I split it so the end result would be firstnam.lastname? Thanks in advance everyone :D
View ArticleVS 2010 Adding directory names to a listbox
Hello! I haven't been programming much, but dabble in it once in a while because it's fun. But I've been stuck with this issue that I thought would be fairly easy to solve, unfortunately it doesn't...
View ArticleTransaction Puzzle
I have to run off for a brief walk (doesn't even count as a hike), but let me toss out a puzzle that I have been making no headway on in case somebody can tell me what to look at next. There is no...
View ArticleGetting Balance from selections made in program (Visual Basic)
Hello, I am trying to get the balance from a program that I wrote, but seem to be having a little trouble with it. The formula for getting balance in this program is (balance = balance * (1 +...
View Article[RESOLVED] Help with Code, PLEASE
I am attempting to populate a drop down from a text file, the cod is below, and I've attached a data file I'm getting the text from. Help if you can, What's happenuing is if i rem out the lower code,...
View ArticleGetting a random image from a database?
Would anyone know how to retrieve a dataset of images from a database and then randomly select one? Thanks,
View ArticleResult Error
Hi, im new in this forum, so actually, I guess this is the right section, and I guess that I'm not doing anything wrong. Well. I was working in a project, and everything was alright, until I got this...
View ArticleVS 2010 [RESOLVED] Quick question on Class properties
Hi guys. I have a newbie question: Is there any substancial difference when creating properties for a class this way: vb.net Code: Public Class Invoice Public Property customerName As String End...
View ArticleCalculation not working correctly
Could somebody please help me out with getting my calculation to work. What I am trying to do is, if textbox31 is a negative number then it needs to subject textbox31 from textbox1 to get a bigger...
View Article[RESOLVED] Perform double-click in Listbox through code?
All I am trying to do is have the Listbox double-clicked via code when a button is clicked - 'Listbox1.PerformDoubleClick()' doesn't work (I just assumed that would work) - This is the only thing so...
View ArticleEdit a String
In Excel to edit a string by: out=Left(str,3), out=Right(str,2) or out=Left(Right(str,5),2). How do you do it in Visual Basic?
View ArticleSave and Save As Buttons
Hello Guys! I'm a new member here, and i would like your help. So I'm trying to develop an advanced text editor using vb.net and currently in the saving process... So I created this button for the Save...
View ArticleVS 2008 regex for numbers
I'm trying to scrape the number 38,111 from the below string. What is the regex? I tried using [0-9].*[0-9] but it didn't work because 100 is in the string. #38,111 in Health & Personal Care (See...
View ArticleVS 2010 Textbox
Hello everyone, Just a quick question, how do I get it so the textbox has dots at the bottom and each time I press a key, the key that I pressed adds the letter on top of the dot, very hard to explain,...
View ArticleTableLayoutPanel - detecting if label inside table is "too long" to fit
Hi all, new to using TableLayoutPanel ... I am inserting labels into cells programatically, but have run into cases where the label is too long to fit... so it is truncated. With variable width fonts,...
View ArticleSend keys to game using visual basic application
Hi I'm sorry to ask this but I like cheating in games Ive completed and creating trainers for the games so here is what I'm trying to do. I have started a project in visual basic 2008. It has two...
View Article