if else statement
hi im using thses line of code to pull stuff of an excel sheet Code: Â Â Â Â oRng = oWSSheet2.Cells.Find("Class B", , _ Excel.XlFindLookIn.xlValues, Excel.XlLookAt.xlPart, _...
View ArticleVS 2010 want to see a grown man cry..errors after changing framework 4.0 to 3.5
Long story short a few weeks ago my pc crashed and I lost my entire project. I have spent every spare minute getting back to where I left off. I the last 2 days I have been working on crystal report...
View ArticleVS 2010 Ensure "Sleep" is disabled
Is there any easy way to check if sleep mode is disabled as my program is loading? Ideally I would have the program automatically disable the setting as well. Reason for this is because the PCI card...
View ArticleDeleting characters in a texbox
Hello, I'm trying to automatically add a hyphen at a certain position in the textbox whenever i type something new, but I'm unable to delete the second hyphen if I want to edit what I've typed in the...
View ArticleVS 2012 Login form
I am trying to make a login form that connects to an online MySQL database but every tutorial I find is for older visual basic packages. The old mySQL syntax does not work with VB2012. Does anyone know...
View Articlesimple filewatcher questions
Hi reading up on filewatcher and how to set it up and every examplei come accross seems to be doing it differently, im just wandering why. im pressuming the msdn example is doing what it usually does...
View ArticleVS 2010 filling textboxes with a record selected in dgv
ive got a page setup to search for records, those records are then displayed in dgv. i need to be able to select a record there, then have that record carried over to textboxes on another form. im...
View Articlenull reference expection was unhandled? help?
im trying to make a matching game and iv only just started the code and im expecting 2 icons to stay briefly when I click them and then disappear but now when I click 1 I cant click the other and get...
View Article[RESOLVED] Move an image inside of a picture box
I have be trying to code a button to move the image inside of the picture box to a different location to show a different part of the image. So far i have had no luck so far any ideas ?.
View ArticleVS 2010 moved from xp to windows 7 problem
Hi I have recently moved from Windows xp to 7. I have some older program that use the AxMSflexgrid. they are not published programs as I only used them locally. However I can no longer open these to...
View Article[VB2010] - if form is a control, why isn't in collection list?
see these code: Code: dim intControlsIndex as integer for intControlsIndex = 0 to me.controls.count-1 Â Â messagebox.show(me.controls(intControlsIndex).name ) next if the form is a control why isn't in...
View ArticleVS 2012 SQL Server Compact and INSERT Statement
Hi, I am trying to insert some data into a SQL Server CE from a Windows Form. I keep getting errors and I dont know why, the error code i receive is - Quote: The column cannot contain null values....
View ArticleVS 2012 Datagridview image formatting
Quick formatting question: My datagridview's image columns display the broken-image picture if there's no image. How can I make them just display nothing instead?
View ArticleGet Frame From A Video
Ok i have searched the web high and low and have found one or two things to do with this but none of them helped me. Im not to bothered what components are used so if i need a windows media player then...
View ArticleVS 2010 [RESOLVED] Print to printer information that has been selected
I have the following code, that display info from an excel file, I then choose a servername and all the info is displayd on the screen. Now how can I then print this info to my printer. Code: Imports...
View ArticleVS 2012 [RESOLVED] Opening a game with a button
i'm making my final version of my software and i have a big problem i want to open a game with a button, sounds simple but i can't, i tryed shell, process.start, peocess.start("cmd", "/c or /k") and...
View ArticleVS 2010 Unable to write to Excel , getting error Hresult 0X800A03EC
Hello This is my first thread in VBforums. I am very new to VB. I am trying to write a text from 3 text boxes on a form to 3 columns in a excel. I am using below code but I am getting error as Hresult...
View ArticleVS 2010 Up and Down Button
Hello to all, I have another problem with my project. I have one TextBox and two buttons, one is for up, second is for down. So when you click on up button, the number in textbox increase for 1 and...
View ArticleHow to save an Excel Workbook as Macro Enabled Workbook
Hello, I have found a block of code that saves an Excel file when I click on a button on the form. Here is the code: Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As...
View ArticleReading from xml or csv, listbox1 selection populating listbox2 or dgv
Hello all. I'm having some issues deciding on how to setup my project so I can actually begin working on it. Basically what I want to do is create a program that loads in specific data to a listbox...
View Article