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

VS 2010 [RESOLVED] Easier way to code this expression?

Code: For Each ele As HtmlElement In WebBrowser1.Document.All             If ele.GetAttribute("id").ToLower = "Image".ToLower Then                 ele.InvokeMember("click")             End If...

View Article


Random number generator to array

(Moved to here, accidently posted in the wrong section) Hi, I'm new to visual basic, I have 2010 express version. I was wondering how to make a random number generator that generates 100 numbers, then...

View Article


VS 2010 Help with listbox and sequential access file

I am working on an assignment where I have toe create and application that keeps track of the voting for three students running for office. I have to save the voting information into a sequential...

View Article

Confirm a click event

Okay folks, on last question and then I think I will have my project finished. I have a click event to clear the entire sheet of the program I'm writing. But I want it to be user confirmed because I...

View Article

VS 2010 Multiple replacements for a string?

Hello, so on a button click I would like it to change some characters to some other characters. So for example, I would like "a" to be changed to "z" and "b" to become "f" and "c" to become "w" How...

View Article


human body detection and mapping

Hi, Im looking at starting a new project, the first step needed is for a computer to be able to recognise a human body and parts like head, shoulders arms etc I have tried to google for a place to...

View Article

VS 2010 [RESOLVED] Null Value for any string?

There is only one place I need to check for a NullException, however I have two questions: 1. Is there any way to Exit Sub whenever any string comes up with a NullException? For example, is it possible...

View Article

VS 2010 Media Player stops being recognized

i've tried rebooting my computer, and re-adding the com, but i keep getting this error in my Form1.Designer.vb Me.MusicPlayer = New AxWMPLib.AxWindowsMediaPlayer() Code: Error        4        Type...

View Article


VS 2008 Databindings for label on a winform usercontrol

I'm creating a usercontrol for a winform app that contains two labels, one as a header and the other one needs to bind to a datasource through Me.usercontrol1.databindings.add(). I'm a novice in...

View Article


Backgroundworker - Can not get datagrid to update

I have looked and looked but something is just not clicking. I'm running a simple tcp server in the background and want to update a datagrid with the incoming information. The server is working, but I...

View Article

[RESOLVED] Issue where a new instance isn't being declared

I'm working on the game snake and I'm currently doing this: Code: Option Strict On Option Explicit On Public Class Form1     Private snake_head As Snake 'This will be the snake head and item(0) in...

View Article

VS 2010 Program error checking

Hey Guys, What i'm trying to do is load a list of urls into a small application and do some regex on the urls, the program works as it should but there is a problem when it hits a non standard regex...

View Article

how to find the color of a point on a vb formsurface

I am trying to make a program where if an animated helicopter goes over a certain color of the formsurface(the ground) it will crash, but am having no success finding the color of a certain point.

View Article


VS 2010 Unable to convert a For-Next loop into Do-Loop.

Hello I am trying to convert a for next loop into a do loop because I want to add a condition. This code works perfectly: Code:         Dim LastNonEmpty As Integer = -1         For i As Integer = 0 To...

View Article

Object orientated programming - Classes

Ok, this may be a strange or even simple question, whoever I am still trying to grasp oop When you have a defined class, you create an instance of it. I.e Dim Myobject as new object This now creates an...

View Article


adding extra info to an excel file after it has read a txt file

hi i have this code that reads a txt file of mind Code: Dim oExcel As Object          Dim oBook As Object          Dim oRow As Int16 = 0            oExcel = CreateObject("Excel.Application")...

View Article

[RESOLVED] Haven't done this in a while and can't remember how to do it!!!

I am trying to dynamically build an ASP Table in the code behind. I have a regular application where this is needed. I did this years ago and can't remember how to do it. So, I created a simple page in...

View Article


How to get a MDI child form to cover the controls on the MDI parent form usin...

I am using VS 2010 Express. I have a MDI parent form with several controls on it. When the MDI Child forms load, they show under the controls on the MDI Parent form. I want the MDI Child form to...

View Article

VS 2010 [RESOLVED] RGB to Integer and Back

. My web app will be outputting color codes to my vb.net app. In the web app, i have ColorR, ColorG, ColorB. each ranging from 0 to 254. To save bandwidth, i intend to convert these three numbers into...

View Article

Just starting out VB2010

Hi, been press-ganged into VB2010 to "keep up to date" and looking for starters and comparisons to what I know from VB6 and VBA. I have a couple of questions, please. Have used a module written by Doug...

View Article
Browsing all 27346 articles
Browse latest View live


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