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

VS 2008 How to check/uncheck ContextMenuItem by index

Hello, I have to check/uncheck some items (8-13) by index in ContextMenuStrip based on boolean value. What I try is: Code: ContextMenuStrip1.Items(8).Checked = 0 - value ... but this don't references...

View Article


Image may be NSFW.
Clik here to view.

Insert code snippets

The "VB.NET Example Code & Hints you may not know" post is closed for some reason. Maybe the moderators can suggest where to put this :D It didn't attach very well... Attached Images Snippets.pdf‎...

View Article


VS 2005 How to create database connection, which is used on every form.

Hi. I've using database connection in vb.net on every form separately. But its very lengthy and not good way. Is there any way, in which i create the connection in one place and that can be used on...

View Article

VS 2008 Create db sql server from script with vb.net

Hello. Sorry for my bad english but i need help. I developed a maintenance software but i need to work with separated bases. For example, one db 'Electric_M', another 'Mecanic_M' another 'computer_M'....

View Article

data from webrowser

I have database with players and they rankings. When i press button, i want those rankings to be updated from website. It takes some time for webpage to load, and since there is many players, it takes...

View Article


vb.net and removable memory ( usb flash memory)....??

Hello every one ..... Dears i just want to know if there is a simple way to make my vb.net project recognize a specific USB flash memory (i mean by its name ) something like " zeus( f: ) " or it has...

View Article

Parameter passing - how many values.

Hi there I have a class which calls a form. As the form evolves I am feeding it with more and more values from the class The main configuration routine is now receiving 22 parameters, mixture of Longs,...

View Article

How to restart a console application completely without leaving it?

Hello, first post here :) I'm new to VB, and I started it for an A-level at my school. I'm learning about IF statements and I'm doing a simple password strength program to find it. The ending of what i...

View Article


VS 2010 Searching in SQL Server 2008 through text box

Hi everyone, I have a text box and I want to search it in my sql server table, the search should be like this If I enter text like NISSAN, ADF09, PT-90991 All text before commas should search in all...

View Article


VS 2010 How do I install a Service?

I am currently atempting to understand this source code which can be downloaded here. http://localhostr.com/GdfwmlBynC2X The source code is of chat program that uses sockets. Before I want to study the...

View Article

VS 2010 Right angel / Top down shooter

Hello, I want to make a top down shooter in visual basic but I am not sure how to make the character follow the mouse. I want the red eyes to follow the mouse, does anyone know how? -RunarM

View Article

File Permissions Error using load balancers

Hello everyone, I have a problem with logging. I have a class I use to log events, in my ASP.net application, to a text file. The class seems to work fine. Complications arise, though, because we are...

View Article

Style question: Import a namespace or fully-qualify a reference?

I noticed that in some compiler-generated code (e.g. that generated for handling a database table) object references tend to be fully qualified (e.g. Global.System.Xml.XmlTextReader rather than...

View Article


Row level locking using OLEDB

Below code is to update a value of one row in MS-ACCESS db. If i use the same code(sqldb) to update sql table , keeping break point on '.commit' then no other connection(user) can read or update the...

View Article

VS 2010 Re-writing arrays

What I'm trying to do is re-write an array into a list box, changing only a specific index in the array. I know how I would do this in Java, using a for loop and an if statement to change the specific...

View Article


VS 2010 Displaying a msgbox during form load

I want to display a message box if an error occurs in the form load event. What is happening is that the message box is being displayed, then when the user clicks OK the form is displayed. I would like...

View Article

Manually setting TabIndex property?

I have a windows application in which I set the TabIndex property of TextBox controls manually. Based on the menu option that is selected, a specific panel, loaded with controls, will appear. I set the...

View Article


Error Message

Hi, I have changed a data type of a field (fieldsize) from int to Bigint. Now, the problem is it generated the following error: Microsoft VBScript runtime error '800a000d' Type mismatch...

View Article

VS 2010 Delete word more than 10 characters in a line ?

I have a textbox and some text like this: Code: I love apple and longlongword blah blah I like mango She eats banana every day Oh my god thisisareallylongword blah blah I hate grapefruit How can I...

View Article

Image may be NSFW.
Clik here to view.

Porting a VS 2012/Windows 7 App to Windows XP?

I have a VS 2012/Windows 7 application that I need to move to a Windows XP machine. When I tried to run the app on the XP machine, I get the following error (see screenshot). Attached Images  

View Article
Browsing all 27350 articles
Browse latest View live


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