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

Access custom sub on user control from another form

I'm trying to access a custom sub written within a user control. For instance: Code: Private Sub WebCoreShutdown() End Sub A button is clicked on a form, and I want the WebCoreShutdown() to fire when a...

View Article


Check if list has been modified

I'm trying to basically make a FlowLayoutPanel only accept a custom control that I've created that inherits a Button. So I've Shadowed the Controls property and I've created my own property, but...

View Article


[RESOLVED] Check if list has been modified

I'm trying to basically make a FlowLayoutPanel only accept a custom control that I've created that inherits a Button. So I've Shadowed the Controls property and I've created my own property, but...

View Article

VS 2010 How to delete a row in a DataTable where Column "Date_ID" = 29

Good afternoon, I am having an issue and i'm sure someone here will be kind enough to help. I have a DataTable called dtHolidays that has the following table: HOLIDAY_ID, HOLIDAY_DATE, HOLIDAY_NAME 24...

View Article

[RESOLVED] PropertyGrid edit custom structure

I have the following Structure Code:     Public Structure BorderColors         Public Top As Color         Public Right As Color         Public Bottom As Color         Public Left As Color...

View Article


VS 2012 Is having my email password in sourcecode dangerous?

I am making a game with vb.net that occasionally sends me stats of peoples progress within the game by email. My email password is within the code but invisible to the end user. The gmail account is...

View Article

How to start Timer from Backgroundworker?

PHP Code:  Public Class Form1     Dim number_of_ticks As Integer = 0     Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click         BackgroundWorker1.RunWorkerAsync()...

View Article

CAS policy. Migrating from VB2005 to VB2010

Trying to migrate from 2005 to 2010 and having all kinds of issues. All my apps give me the CAS error and I am stumped. I can't really understand the things i've read about this. Also having issues...

View Article


How can I make a BackGroundWorker finish/complete when cancelling it?

I have a form which asks the user for input and then turns this into a query, the outcome of which is presented on the screen. To make it quicker, a lot of querying can be beforehand and stored in a...

View Article


VS 2010 [RESOLVED] Decrease a variable

I have 2 textboxes: txtNumber and txtDigit When I enter a number in txtNumber, an equation calculates a variable that I call intResult For example, if I enter 100 in txtNumber, then intResult will...

View Article

ADODB on VS 2010

Trying to migrate to 2010. I can't seem to find the ADO Data Control to add to the references. Therefore my project won't compile. Help?

View Article

Application works only once

Hi! I made an appilcation that: - takes a screenshot (while PrtScr pressed), - saves it as a file (automatically) - and at least sends this screenshot to my email (automatically) but it works only once...

View Article

How Can I Move Rectangles in Picturebox ?

I draw 2 rectangles in picturebox and I need to move them with a Timer. I wrote this but it didn't work. Code: Public Class Form1     Dim kalem As New Drawing.Pen(Color.Black)     Dim solx1 As Integer,...

View Article


Is it possible to have two "forms" within same form

I currently have an application that begins with a log-in form. Once the user logs in or registers, the log-in form closes and opens the main application form. I was wondering if there's a way to start...

View Article

VS 2008 Crystal Report fillds not showing decimals

Im sending Datagridview records to crystal report by data table and im using this code. Dim ds As New DataTable With ds .Columns.Add("Naziv") .Columns.Add("Ed.Mera") .Columns.Add("Kolicina")...

View Article


Unable to read complete data from server

Hi, totally new to Visual Basic programming here. I have a program (compiled from a .php script of all things) that reads a string of data from a server. This data is 106 bytes in length, starts with...

View Article

Image may be NSFW.
Clik here to view.

VS 2012 "Parameter is not valid" Error

The program starts. Then when I click the button it stops and say Not: The program is in turkish "Parametre geçerli değil" means Parameter is not valid Code: Public Class Form1     'Tekerlek...

View Article


How to send a packet into a game.

Hello. Could someone tell me what method of sending packets should I using in VB10? I need some advices and explanations of sending packets into a game. Of course I know how to read packets, but I...

View Article

Swap Array Dimensions

Hi Is it possible to swap Array Dimensions easily lets say i have Array(10,20) can i make it Array(20,10) preserving the data

View Article

VS 2012 Shell Context Menu - How to exclude or handle shortcut (.lnk) files?

Hi, I have added application shortcut to windows context menu in HKEY_CLASSESS_ROOT\*\shell for all files types with this sample value: "C:\myvbapp.exe" "%1" On myvbapp form load coding (as shown...

View Article
Browsing all 27072 articles
Browse latest View live


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