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

[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 Article


Edit 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 Article


Save 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 Article

VS 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 Article

VS 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 Article


TableLayoutPanel - 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 Article

Send 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

My friend got this error: Error 1 Unable to copy file obj\x86\Debug\blala

Hi! Can some1 help my friend? He gets the error "My friend got this error: Error 1 Unable to copy file obj\x86\Debug\blala" Thx.

View Article


VS 2010 [RESOLVED] Saving an Array to a file

I have a 2d array of boolean data that I want to save to a a file and then later read it back, when I re-start my program. Is there a really easy way to do this? I have tried the following, but have...

View Article


Visual Basic 2010 listbox question

ok so i am using vb2010 and I have created two listboxes and a textbox and a button. the first list box has a my list in it like seen below: U-Ad ($350) Striker ($190) New Ad ($250) Samson ($530) as...

View Article

VS 2010 Serialization path question

I've never had to do serialization before, I've messed around with it and can do it, but I've been serializing to a hard-coded location like "c:/serialize.xml". Now that I'm wanting to publish the...

View Article

Merging two txt files into new file

Hi there! I'm working on an app that merges two txt files ( Input1.txt , Input2.txt ) and create a new file (Collection.txt). What I did so far is this : Code: Public Class Form1     Private Sub...

View Article

[RESOLVED] Conversion Problem???

Hi guys.. i am having problems with this code: Code: dsNewRow.Item(4) = 6.41 * CDec(DateDiff(DateInterval.Hour, TxtTimein.Text, TxtTimeOut.Text)) It just doesn't allow it. i have option strict on. it...

View Article


Concurrency violation

Got this error: Concurrency violation: the Delete Command affected 0 of the expected 1 records. on a database update line. Only happens every so often. Please explain this error

View Article

MdiParent with changing MdiChildren Titles

Basically, I have 2 or 3 MdiChildren forms that have the ability for their title to change at any given time. I have the window list auto-built via .NET's lovely MenuStrip-MdiClient help, but, the...

View Article


VS 2008 Checking against dates in a SQl database

Hello everyone I am writing a program for someone else to use and it use's a SQL database. It has 3 query's (2 I have already done) the database has 12 columns and 3 of them are columns with dates in...

View Article

excel functions in vb.net

Hi All, I want to do some calculating in vb.net and for this I would like to know if there are simular functions that I used to use in excel available in VB.net what I am looking for is sum.ifs count...

View Article


Reading .txt file into text boxes?

I'm new to the forum and VB. I have a text file with 10 fields per line formatted like: name, address, city, state, zip, blah, blah, blah, blah, blah I have 6 lines total. I have created a form with...

View Article

Image may be NSFW.
Clik here to view.

VS 2008 printing

I am converting some VB 6 code to vb2008 code, and I am trying to print a table of data to a page (see the attached pdf). I have never coded printing code before. One line of the old vb6 code is...

View Article

Populate Cells in Excel Using Loop

I'm going to start tomorrow on a project which will populate two cells in an Excel spreadsheet. Based on the entry of these two cells some calculations are made on another sheet and then the results of...

View Article
Browsing all 27554 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>