VS 2010 Serialport encoding
Hi, all. I have a device which is communicating with rs232. It can be set to either ASCII or binary. I can receive ASCII data, but this is quite slow. The binary data is sent with a compression...
View ArticleIdentify if number is integer or decimal ?
Hi. I need to know, how I can identify if a number is Integer (i.e.: 5,10,16,466,12350) or Decimal (i.e.: 4.25, 10.126666666) ? I tried this: vb.net Code: Dim numar = TextBox1.Text If...
View ArticleDownload Subtitle From subscene
Hi,How I Can search and Download Subtitle From subscene.com ? Anyone can write a sample program?
View ArticleVS 2008 [RESOLVED] converting a string
I think this is an easy question but I want to convert a string "1+1" and display the number 2. What should I use? thanks Belinda
View ArticleVS 2010 [RESOLVED] HEX Values
Hi Been trying with some converion of Hex numbers. One confusing thing for me is negative Hex values. Let say: Code: Dim intResult As Integer intResult = Int32.Parse("FFa4",...
View ArticleSystem.Net.WebException was unhandled by user code
I am trying to create a favicon code for a web browser project, and I need to be able to make the code support when the application cannot find the favicon, crashes, and returns this error:...
View ArticleTrying to copy data from scattered cells in excel to textboxes in vs2012...
I am having a hard time getting this to work. I have a worksheet in excel that has company data scattered in different cells that i need to automatically move to my textboxes. I am using visual studio...
View ArticleNeed help! Form location Inside Panel
Form location Inside Panel I have this little problem about my 2nd form location inside a panel on debug mode... I made a panel inside my main form and set a button for it so that when the button is...
View ArticleHow To Display Time Elapsed While Program Is Running
So I have a program that I made that runs on an infinite loop. I would like to have at the bottom a label that displays the total time the program has spent running. Can someone point me in the right...
View ArticleStreamwriter Porblem
Hey i am trying to make a mod kit for a game , using the streamwriter tool in visual basic but it keeps leaving a blank line at the end of the text. here is my code Private Sub Button1_Click(sender As...
View ArticleDatabase value rollsback after saving.
im still checking my code if there is something wrong with it. as of now all are working fine. i can also save new rows in database and update. but whenever i close my program the values returns back...
View ArticleVS 2010 String manipulation
Hi, I have som data comming from the serial port. The data needs to be manipulated in several steps. 1. The response 80 means that 2 bytes will follow, High and Low byte. I have a RichTextbox which is...
View ArticleFore Color and ListView
Hi, I want to change the first column of a listviewto Blue (ONLY the first column). AM working with Vb.NET, please look at the code below and amend where necessary for me.. Code:...
View ArticleVS 2010 SQL Query Formatting
Hello, The script below populated a rich text box from a SQL file but I'd like it to keep the sql formatting, is this possible? Private Sub OpenFileDialog1_FileOk(ByVal sender As System.Object, ByVal e...
View ArticleNeed help - not all pixels are filled in with code
Hello, I found the code below for filling in a color up to the border. It works but not all pixels are filled in near the border. Anyone have an idea why? Below is the code and a picture of the image...
View ArticleVS 2012 use embedded rdlc report?
This works fine RV1.LocalReport.ReportPath = "C:\POSData\WorkOrder.rdlc" I am trying to embed the report (as a resource?) in the app... but i can seem to get it to work.....
View ArticleCreate a custom paper size for printing from Excel (programmatically)
I have a program that I developed for generating and printing labels from Excel. The number of labels can vary from 1 label, to a couple hundred labels displayed in the first column of an Excel...
View ArticleNULL vs Date
Hi, At my database I have a table with date field.. Which has NULL /empty values when nothing is added to the backend table. DateDisabled, datatype - datetime. Now at the front end I have an...
View ArticleVS 2008 Using SQL compact server in VB.NET
Hello, I know this may be a DB question but it is related to VS2008 because of how it acts. I created a table and tried saving it. Gave me an error which I forget. Restarted VS and reloaded the VB.NET...
View ArticleRead a text file and assign to variables in VB.net
Txt file looks similar to this: [Test Configuration] ObjectFileName=\\He2ntsd11\pe2003\ObjectMapFiles\Rel6.1\ [Datapool] ;DataPoolName=Test1 DataPoolName1=Test2 What should the below functions do: 1)...
View Article