Option strict disallows late binding xDocument
Cant work this out for the life of me. Not got VS here but if i declare I as xmlNode its option strict disallows conversion from object to xmlnode. I understand the errors just cant work them out....
View ArticleVB.Net 2012 using VB6 dll for printing opinions.
Hi All I have a POS system written in VB6 that is installed at quite a few clients, recently I decided to re-write the application in VB.NET 2012. The re-write is going well except for printing to...
View Article[RESOLVED] Issue with MouseLeave event
I'm wanting to create an effect where the user knows when they're hovering over a picturebox, but I don't want to use the MouseHover event because with the Hover event you have to wait a bit of time...
View ArticleVS 2012 Loop then insert into rich text
Okay. So this is my application so far. the user inputs coupon information (on the main screen) and it prints out a formatted template a retail system could read (bottom screen). After the first 3...
View Articlelistbox integer increment HELP PLEASE
I'm writing a program that will list a table in the list box for example Time quantity passed failed comment ___________________________________________________________________________ 7:00-8:00 25 23...
View ArticleAdd to rich text box
Okay lets say a a richtextbox is filled with information a user inputted through multiple textboxes. I want to code a button, that once clicked opens up a inputbox. I want the information recorded in...
View Article[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 ArticleIs 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 ArticleVS 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 ArticleVS 2010 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 ArticleStreamWriter 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 ArticleVS 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 ArticleVS 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 ArticleHow 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 ArticleUsing 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 ArticleVS 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