VS 2008 [RESOLVED] Explain This Strange Mathematical Odity in VS2008!!!
Can some one explain this irregularity, try it yourself Dim BatchTotal As Double = 457.34 Dim FirstAmount As Double = 214.00 Dim SecondAmount As Double = 243.34 Dim Totals As Double = FirstAmount +...
View ArticleVS 2008 drag and drop
Hello I would like to be able to drag the back color of a label and drop it on another label and change the second labels back color to the back color of the first. I am going to try to program a game...
View ArticleVS 2010 Trivial WCF Question
I'm just getting started with WCF. I created the service and added it to a project. I was able to see my new function but not my new data contract when I consume the service. I'm probably missing...
View ArticleVS 2008 ReadAllText wont ReadAllText?
I am attempting to read in the contents of a textfile into a textbox. TextFile = My.Computer.FileSystem.ReadAllText("c:\Temp\Checks.txt") This text file is written by another application and for some...
View ArticleVS 2010 Using Timer object but creating dynamically - how to handle tick event
Hi, I have a form that I have added a timer control to. I can then of course use the tick event to manage what happens on the interval I specify. My problem now is that I would like to create a timer...
View ArticleProperty Behavior design question
Couple questions for the more experienced programmers: Is okay to design classes that behave differently based on what order you set certain properties ? I know that its generally expected that a class...
View ArticleVS 2008 CheckedListBox1.SelectedIndex
ListBox1.SelectedIndex = i operation works but I get an error with CheckedListBox1.SelectedIndex = i
View ArticleStuck with Payroll system! Syntax error :(
Hi guys, Firstly sorry if I've posted in the wrong section etc. I'm Very new to VB and this is my first project for my college course. My plan is to make a very simple payroll system that's linked to a...
View ArticleVS 2008 printing problem
PrintDocument1.Print() PrintDocument1.Dispose() I have these two lines withing a sub to print a document; part of the process is that a picture is created, which happens just fine, and then the page...
View ArticleVB.NET connectiing to SQL 2008- SQLException was unhandled
Here is my issue: This is my error. SQLException was unhandled. Below is the code. I know the info is right for SQL. Any thoughts: Code: Dim Conn As SqlConnection = New SqlConnection("Data source=MY...
View ArticleMe.hide
Hello. I am making a project in which I want the Form to hide. I use Me.Hide, but it is not working. Could you give any suggestions as to why my form still shows Code: Imports System Imports System.IO...
View ArticleGet file path from USN
I am using USN journal and parent FRN to get the file path. It works properly in Windows XP.But in windows vista and above it does not work properly as it gets some error related to access permission....
View ArticleVS 2010 Cannot save record using Entity Framework
I am an absolute beginner. But I searched the net. There are not many example shown in VB anywhere. I have created a test project which holds the win form. Then added another project which holds the...
View ArticleVS 2010 how to read big txt file in chunk
i tried to read using io.file.readallines and streamreader.readallline but too big so i tried linebyline using streamreader.readline into while EOS or Do loop until EOF but too slow to process entire...
View Articlecreating a delay while open port numbers are being returned to the screen
Hi guys, I'm building a port scanner in visual basic. I enter the address if the address I wish to scan I.E. www.google.com, then I enter the port numbers I wish to check. The ports can be scanned...
View Articleerrors on code after software update
If someone could help out, be appreciated. I have used the code below for an excel document at work for a number of years but we updated to microsoft 2010 and I am getting error on the...
View ArticleHow to remove a Form from a Project that connects to Databases in vb 2010...
I have a Project that contains 5 forms. One of the Forms (that connects to 3 Access Databases) somehow became corrupted. I created another Form with the same 3 Access databases and copied the code from...
View ArticleVS 2010 Grouping by already defined groups
I have a Dictionary(Of String, Integer) like so (excuse the lack of a type declaration, all the VB code you see was translated from C#): Code: Dim baseStatRelation = New Dictionary(Of String,...
View ArticleCustom Tab Control - OnPaint vs MessageBox - Problem
Hi I will explain my problem, I got a MDI parent form that contains many child forms. For each child form I'm trying to display a messagebox(with .show). The issue here is that the messagebox appears...
View ArticleVS 2008 Need help changing a button's backcolor back to ActiveCaption
Hello I set the backcolor of a button to ActiveCaption when I created it. Then in my code later on I changed it to cyan. Later still I want to reset the color back to ActiveCaption, But I get error...
View Article