VS 2008 printing problem
PrintDocument1.Print() PrintDocument1.Dispose() I have these two lines withing a sub to print a document; part of the process is that a picture is created, which happens just fine, and then the page...
View ArticleVB.NET connectiing to SQL 2008- SQLException was unhandled
Here is my issue: This is my error. SQLException was unhandled. Below is the code. I know the info is right for SQL. Any thoughts: Code: Dim Conn As SqlConnection = New SqlConnection("Data source=MY...
View ArticleBest Database Choice? (easiest to use, distribute etc)
I have access.. but know that its prone to corruption etc.. MySQL is installed, but i started thinking there might be a better solution? MS SQL Express? SQLLite? I just need to be able to install it...
View ArticleVS 2010 FTP Upload, BackgroundWorker Progress Display
Hi there, I've been successfully using a BackgroundWorker to display the upload progress of a single file with the following code: vb Code: Private Sub bgw_UploadZip_DoWork(sender As System.Object, e...
View ArticleHeap vs Stack confusion
Hi, I always been under the impression that value types are stored on the stack while reference types are stored on the heap. Then the other day I read somewhere that said something in the line of...
View ArticleTurning PaintEventArgs into a BackroundWorker
For the program listed below (a basic scrolling graph i found, and am altering), im trying to contain the PaintEventArgs to a backgroundworker such that it doesnt lock up my program, but im having...
View ArticleVS 2010 [Resolved]MsgBox Question abute lines
hi i have a question how do i make that after i typed some text in = "" i want to move one line down and continu the text so its wont be like thos 1)text 2)text 3)text i want it to be 1)text 2)text...
View ArticleSpaces in Combobox
Hello, I have written this code: Code: For Each CPop In Combpopust.Popusts ComboBox1.Items.Add("(" & CPop.ID_Popusta & ")" & CPop.Vrednost_popusta & "," &...
View ArticleVS 2010 Devexpress GridView GetValue Problem
Hi, I tried to explain the problem in the picture. I want to come to the active cell value is selected from form2 in form1. converter using English is no more. please help me I'm working for 4 days....
View ArticleVS 2010 Scrolling Hotkey No Focus?
Below is simple code which I've put together for the purpose of being able to read richtextbox text and scroll it w/out having to loose focus on an already focused application. So I came up with this...
View ArticleVS axWebBrowser events not firing / control problems
I have a project which contains the axWebBrowser control. However, this project no longer fires ANY axwebbrowser1 events. If I create a new project, the events fire just fine. After deleting the...
View ArticleVS 2008 listbox
Is there a way to use a listbox with the ubound() method that you can use with an array? If not, I know you can store stuff in an array, and then do the following line to feed the items from the array...
View ArticleVS2012 - Option Strict and Option Explicit don't always perform the same
I just ran into something weird. I always set my projects to Option Strict ON and Option Explicit ON. I have a large project that has absolutely no problem with code similar to below. However, I just...
View ArticleVS 2010 Active Directory Group Issue
Ok so, I am using the following code to add a member to a group. When I do this I get an error stating that there has been an unspecified error. Can someone please help? Thanks! Code: strPath =...
View ArticleOpenFileDialog imports csv into DataGridView and establishes DataSet
I am new to programming and I am using visual basic express 2010. This is my setup. I have Button1 on Form1. When selected, Form2 opens and displays values from a csv file. The values are displayed on...
View ArticleHow to remove a Form from a Project that connects to Databases in vb 2010...
I have a Project that contains 5 forms. One of the Forms (that connects to 3 Access Databases) somehow became corrupted. I created another Form with the same 3 Access databases and copied the code from...
View ArticleVS 2010 Grouping by already defined groups
I have a Dictionary(Of String, Integer) like so (excuse the lack of a type declaration, all the VB code you see was translated from C#): Code: Dim baseStatRelation = New Dictionary(Of String,...
View ArticleCustom Tab Control - OnPaint vs MessageBox - Problem
Hi I will explain my problem, I got a MDI parent form that contains many child forms. For each child form I'm trying to display a messagebox(with .show). The issue here is that the messagebox appears...
View ArticleVS 2008 Need help changing a button's backcolor back to ActiveCaption
Hello I set the backcolor of a button to ActiveCaption when I created it. Then in my code later on I changed it to cyan. Later still I want to reset the color back to ActiveCaption, But I get error...
View ArticleHomework Help!! Please!!
I am so lost in this class. I just need to get past my last two assignments in this class and I don't have to worry about VB again. I am going to school for web development/Admin. Please help me, I...
View Article