List files in one folder but got an error
I use code below to list files in listbox1 but an item "~$0020419.doc" was listing there. I reboot pc but no luck. Why? In C:\test\, there are only 3 files: 100020419.doc, 100025818.doc and demo.doc...
View ArticleClose word document
I copied code from http://www.vbforums.com/showthread.p...rt-word-to-pdf as below. First time is ok but second time got an error said that "file was locked...by user....". How to close it word document...
View ArticleVS 2013 Content.InlineShapes.AddPicture Issue
Dear All; First of all I want to say hello to you. My first time on this site and hope everything will be going well :) My problem is (in a short way); I have a windows form with a ComboBox and a...
View ArticleSerial connection does not work outside of Visual Studio Environment...
Hi. I am using MS Visual Basic express 2010. My application ran great if I click F5. However, once i had created an executable, the GUI no longer works. I have tried re-booting; clearing out serial...
View Articleregarding saves and different computers
hello all, im having a problem with the saving part in my .exe file. So the problem is that when i save the string when running the exe file and go on another computer and open it, the string isnt...
View ArticleVS 2013 Help me with this code.
Hi! I created a stopwatch and it is having some problems: when the stopwatch resets and then the start button is pressed again, the laps continue from the last lap and the stopwatch continues from the...
View ArticleVS 2013 Help with ms word file with vb.net
I want to use the Option in the word document "Insert > Object > Text from file" Can I use this option from vb.net ? :confused:
View ArticleVS 2010 Printing module not working on new program but works on old one
This is the code Dim WithEvents printdoc As New Printing.PrintDocument Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles...
View ArticleAdd apostrophe and roundup numbers
I already searched around the net to find this but I cant seem to find this. What I'm looking for is a way to add a apostrophe or full-stop after every 3 numbers when they are bigger than 4 numbers....
View ArticleDatabase with VB Net recommendations
So I've done databases in vb net that connect both to Access and MySQL through an Apache server I run off my computer. I've found over time with different programs I've created that my database's seem...
View ArticleVS 2013 KeyPress Event
I am trying to use the keyboard on my calculator using the KeyPress event. Is this the right way to go about it? I'm unsure on how to use the KeyPress even as well, MSDN isn't helping either :( Help...
View ArticleCapture when date modified has changed
Hi all, I'm looking for some pointers on how I can capture when a file's 'Date Modified' has changed, i.e. when it has been saved? File in question is a text file if it make any diff.
View ArticleCan VB.net Express connect to SQL Server Express
I have installed SQL Server Express on a server, and have installed VB.net 2010 Express on my local client. I am writing a program that needs to connect to the database in SQL Express, but am having...
View ArticleBest practice advice requested ragarding VB.NET file(s) management
Hi all, As I mentioned before in other posts, I'm learning VB.NET these days, and concequently, learning to code in true OOP. With VB6, each class had it's own file. Now I see that with VB.NET, you can...
View ArticlePInvoke stack imbalance when using SetThreadExecutionState
I have a tablet that runs a virtual dash for my drag car. While the software is running, I want to prevent any sleep mode, so I added this code to the top of my vb and I call the function...
View Article[RESOLVED] MySQL query AND Statement Question..
Hi everyone! I Have a question.. what is my error in the following query? Code: Dim sql As MySqlCommand = New MySqlCommand("SELECT * FROM idtime WHERE user_name = '" & ComboBox1.Text & "AND...
View ArticleA printing question.
Hi all, I have written a class for printing that columns of a DataGridView as selected by the programmer as design time. The question I have is, what do I check/watch to know when the grid is going to...
View ArticleVS 2013 Visible False Item While Building < Does it possible? How to do it?
Hello Guys! (It only looks complicated at the start it's really very easy to understand!) CLICK HERE TO VIEW THE PHOTO! So yeah about my way that i wrote in blue is working fine Apart from i can't...
View ArticleHow do I check if a value exist before adding it to avoid duplicates?
The code I have pasted here is adding NCIC number (nc:IdentificationID) and ProtectionOrderOtherIdentificationTypeCode (NCICNUM). However I want to add a For Each to loop and check if the NCIC number...
View Article