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

VS 2010 Loop through a ListView.SelectedIndexCollection in reverse

Here is my code: Code:         Dim Indexes As ListView.SelectedIndexCollection = ListViewListOfScheduleItems.SelectedIndices         If MessageBox.Show("Are you sure you wish to remove the " &...

View Article


VS 2010 Datagridview - preserving keystrokes in a cell after moving down one row

Still having problems with this... I want the user to have a choice between being allowed to enter one digit (the default behaviour) or two digits (which the user has to 'announce' by first typing in a...

View Article


[RESOLVED] Compiling old code

i compiled the exe and ran it, found a problem. stopped fixed the problem and recompiled. but it ran the older broke code? i even changed the design and recompiled again and it still showed old broken...

View Article

VS 2010 Refreshing Printer Status'

Hi there I have a bit of an issue surrounding printers. I need to be able to give my users a list of printer that they can print from. My users work in many different places and have access to all...

View Article

VS 2010 I need help with my code

Hi guys, i have posted in this day if anyone know how to show hex in a textbox and read specific offset, but nothing i have a code i used it do the same i want to do but it use ascii, this use a...

View Article


VS 2008 Search & Compare number values in text - With a twist!

Hi, I'm not a real programmer, nor do I portray one on TV, however I am occasionally called upon to create small utilities. I'm trying to work with VB2008 and the options available are mind boggling....

View Article

Find out the position for third "\"

I need to find out the position for third "\". For example, some files' location like c:\order\year\2012\201201.txt, c:\order\year\2012\201203.txt... How to find out third "\" position from left? For...

View Article

SQL parameter SqlDBtype is INt, value being passed to stored procedure must...

I am just getting my feet wet with VB (fourth week). Using VS 2010, SQL Server 2008 R2 Am trying to read a table which has stored values of NULL for columns designed as Int. Am reading via a stored...

View Article


VS 2010 [RESOLVED] Directories from text file - lines being skipped!

Essentially I have a text file which has text on each line and a block of code that creates directories with the currently read line. Problem is, some lines are being skipped (Every 3rd line...) Any...

View Article


VS 2010 Save empty fields to access database.

Hi! I have a code that saves data to access database. But I can't figure out how to make it work when a field is left blank. Code: MainForm.RihmatabelTableAdapter.Insert(Me.ComboProfiil.Text,...

View Article

VS 2010 How do I make changes to HTMLElement stick in WebBrowser?

I am sending an email newsletter using a HTML template file in a WebBrowser and elements with ID as a placeholder for a variable strings to inject. Using htmlelement.innertext I add some text like...

View Article

VS 2010 C# to VB.NET problem

Good day, Im trying todo a C# tutorial on how to make a VM from: http://www.codeproject.com/KB/recipe...hine1/VMCS.pdf And i did a line-by-line check and vb.net convertion but i came to an halt on this...

View Article

VS 2010 SQL Server Retrieving Unique Identifier with Parametized Query

Hi, I recently moved my access db into sql server 2008 r2 and I am now unable retrieve the unique identifier field on insert statements using parametrized queries. The new datatable rows are inserted...

View Article


VS 2010 allowedChars As String = ""

I am new to this forum so Hello! :) Also, I am new to VB and I have problem with setting up the limit in text box. I am using two text boxes, one of them has a limit between 2 and 6 so other numbers...

View Article

[2010] Get special folder DOWNLOADS

With my application, I need to access files that were downloaded by the user's default browser and stored in the default "Windows Download folder". How can I get the path to the Windows Download...

View Article


VS 2010 [RESOLVED] listbox selected item displays in textbox

I am trying to have the currently selected item of a listbox be auto displayed in a read-only textbox. Here's the thought/code behind what I want to do: Code:         For Each lstfield In...

View Article

VB.NET VS 2010 Word Mail Merge-How to insert text in footer

Summary of my efforts. VB.NET (VS 2010) Word 2007 SQL 2008 1. I have 2 different letters(each n pages) to be merged with sql datasource and word template for the letter. 2. I want to tag each page of...

View Article


VS 2010 Return focus to an inputbox?

Upon clicking a button, a new window opens with an inputbox requiring info. However, if the box is left blank, I want to produce a messagebox error and return the user to the inputbox. This is what...

View Article

XML File Parsing atrributes (my code seems odd)

Hey I'm working on this tool that retrieves certain things from an xml file in this structure UserCFG.xml Code: <?xml version="1.0" ?> <graphic>     <adapter vendorid="32902"...

View Article

How can I check the if the client lost its connection using Unolibs library?

I am using Unolibs library in my client-server applcation, the problem is that how can i know if a client lost its connection.I am using the send method in order for my server to detect incoming client...

View Article
Browsing all 27351 articles
Browse latest View live


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