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

[RESOLVED] how to set font size and style for all controls in a from using...

i have a number of labels and radio buttons in my form. i wish to set the same font style and size for all the controls using some code. How can i do it?

View Article


Is it considered 'bad form' to use Try-Catch in a Finally Block?

I am creating a mail merge, and wish to release the object once I am done with it. Code: Dim oWord As New Word.Application         Dim oDoc As Word.Document         Try             oDoc =...

View Article


VS 2010 Request for comments on my class which inherits the Tcplistener class

I know this needs more work but any comments on what I need to add, to change, to improve would be helpful. I know the error handling has to be improved drastically. Code: Imports System.Net Imports...

View Article

VS 2010 Simple binary to decimal converter?

Hi, I have a school computing project due soon and I'm completely lost. We have to code a binary to decimal converter using only two text boxes and one button, because it's a school project the code...

View Article

Image may be NSFW.
Clik here to view.

VS 2008 Trouble with updating a friends list

Here is the "Update" button(Shows current friends): Code: Private Sub UpdateFriends_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles UpdateFriends.Click         MySQLConnection...

View Article


VS 2010 [RESOLVED] String to Double Error

Hi Guys, I am probably doing something stupid here lol im trrying to update a label.txt with an integer, everytime we loop we update the label by + 1 Code:                     Dim number As Integer...

View Article

Detect ActiveSync status

I use this code in VB6 Code: Private Declare Function CeGetDeviceId Lib "ceutil" () As Long Public Function getActivesyncStatus() Select Case CeGetDeviceId() Case 0 lblActivesyncStatus.Caption = "...

View Article

Unable to cast object of type 'System.Int32' to type 'System.Data.DataRowView'

Under ComboBox1_SelectedIndexChanged, I encounter this error message Quote: Unable to cast object of type 'System.Int32' to type 'System.Data.DataRowView'. with this code Code:...

View Article


Detected model or device ID

Im currently developing a desktop application for a mobile computer (WinCE 6.0) im almost done with it, but a have this idea about the security. My desktop application can detect if the device is...

View Article


StreamWriter and Strings

I have the code below and I need to write the data returned from the 'Test' to a text folder, Results.txt. The code runs and create a file but the file only consists of System.String[] I am sure it is...

View Article

[RESOLVED] taking values away from each other

hi i read in values from an excel spread sheet like this Code:         oRng = oWSSheet.Cells.Find("CASH (12000000)", , _               Excel.XlFindLookIn.xlValues, Excel.XlLookAt.xlPart, _...

View Article

VS 2010 AES Encryption

Hi Guys, I am building myself a library to use whenever I need to do encryption I have various things in it such as AES, 3DES and RSA Encryption types as well as Being able to has passwords. When it...

View Article

(VS2008) What to use - Collection maybe?

Hi, I'm new to .net programming, did a little bit in VB6 just for fun. One of the programs I wrote for my own use was a label printer that stored basically multiple quantities of items from 3 textboxes...

View Article


[RESOLVED] Help Reading from SQL Database

Hello all, I need to capture multiple Key values from a SQL Database and I'm having trouble getting the code right. I have a field value that can be found in multiple rows from the database. For...

View Article

VS 2010 Strange code, how make it better?

Hi! I stumbled upon this code in a project Code: private void TextBox_KeyDown(object sender, KeyEventArgs e) {             var t = (TextBox)sender;             if (t.IsReadOnly == true && e.Key...

View Article


How to Copy data from MsExcel and append it to an already existing MsAccess...

Hi, I have an Excel workbook called "Update" that contains data that needs to be copied and pasted to an already existing MsAcces table called "RegularInput". Is there a code that would perform the...

View Article

[RESOLVED] ContextSwitchDeadlock was detected

So I've never ran into this error before. The title is: ContextSwitchDeadlock was detected. The messagebody is: Quote: The CLR has been unable to transition from COM context 0x9370d8 to COM context...

View Article


Using expressions in ado/data designer

I was reading on MSDN that one can use calculating expressions in visual studio's dataset designer ([price] * [stock], for example), but what about when it comes to more complicated expressions or...

View Article

VS 2012 Update database with another

Hi, I'm a very big problem, and I was lost a lot of hours try to solve that, and can't find a solution. In this application, I have a SQL Compact database, for my comercial agents working "offline"....

View Article

Detecting Disconnection of USB Serial Device

I am connected to an Arduino board via a USB link. My code catches exceptions when the USB cable is disconnected and any code references the SerialPort object. This works fine, but what is the simplest...

View Article
Browsing all 27189 articles
Browse latest View live


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