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

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

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 ado/dataset designer ([price] * [stock], for example), but what about when it comes to more complicated expressions that use functions...

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

NEED HELP! How Do I Get Hex Values To Show up in a TextBox??

Ok So I Need Help Getting The Hex Values("FFOE 7HTS... Etc") From A File To Show In A Textbox?? Please Help Almost Done With My Project!! :)

View Article


Image may be NSFW.
Clik here to view.

VS 2008 Getting SQL data and placing it in list form trouble

Hi again! The people who were helping me earlier will most likely understand. I am trying to get data from my SQL DB, and place it in list form. CURRENT CODE: Code: Private Sub...

View Article

storing data in class's

Hi, What im trying to do is, store somedata into classes so i can easily access it and change it a little like a table. Im using the data with treeview to display it (mainly for practice, but also...

View Article


Sockets en VB .NET

i have this code only work if used in my pc , if i used server in my pc and cliente in another pc this not work why? this only work if used this ip = 127.0.0.1...

View Article

VS 2010 Remote Data Extract

Hi everybody, I am new to VB2010. I just started to pick up real basic stuff from youtube. I am a assembly language programmer. When I tried out VB last couple of weeks, it really interest me. I want...

View Article

Write Cobobox's To Text File

Not sure if this is the right place to post this but , im trying to get the combo box's on my program to save to a text file but the code i have at the moment is saving to a textfile but when i input...

View Article
Browsing all 27443 articles
Browse latest View live


Latest Images

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