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

VS 2008 print landcape vs portrait

I am writing some code to print samples for a lab I work at either portrait or landscape. I have this: e.PageSettings.Landscape = True printPage(e, graphFileName, "graph", 63, 66, 107, 53, 12, 400,...

View Article


VS 2010 searching database with datetimepicker paramter

ok so, i've been setting up search parameters for a form in my project and everything was working great until i got to dates. i want to use a datetimepicker to make sure the date is always entered in...

View Article


Date Time Calculations! Fun TImes

Hey! I have a few logs containing million+ lines of logs, all with date stamps and need to find out how long the machine was running with those logs. Now in theory this is really easy, I just use...

View Article

Not listening. You must call the Start() method before calling this method.

I was using this nice little snippet of code on a Windows XP Pro machine before lunch and it worked perfectly. I then went out for a bite and came back and started testing it again. But now all of a...

View Article

VS 2010 Set VB .Net IDE to build all projects in solution when starting...

I'm having a problem with the IDE. I have right now 5 seperate projects in my solution. The main project references 2 of the other solution projects and those compile just fine if I make changes and...

View Article


VS 2008 printing multiple pages

So, this printing thing is blowing my mind. I work for a lab and want to print samples that are analyzed for dye. If I print one at a time by typing the sample numbers in one at a time and print each...

View Article

Image may be NSFW.
Clik here to view.

How I prevent mySQL Exception Timeout happen?

I have use VB 2008 Express function to port a big MySql database into a DataGridView table: Code: Function ScanDatabase()         Dim str_SQL As String         Dim Result As Boolean = True         If...

View Article

VS 2010 regdb_e_classnotreg(0x80040154) Error trying to connect to Access DB

I have a program that checks for a value in an Access 2007 DB with one field and one value in one table and one field and one value in another table. It works on the other computers I've tried, and it...

View Article


VS 2008 Linq Where Clause with Sum

I have a List of CustomerAccount called AccountsList, in CustomerAccount are a few fields which two of them are AccountInvoiceType and AccountInvoiceTypeVal. To get the total value of all the Invoices...

View Article


VB.Net Application Internet Connection

Hello, I want to create an application that a user can use at his work location but that will need to connect to a database hosted elsewhere. I don't want this to be a website but rather a windows app....

View Article

VS 2008 Adding background image and text to datagridview control column header

Hello, I found this code which adds an image as a column header background image. Is there a way to show the header text also? Thanks! Code:         myImage = New Bitmap("c:\grd_head.png")         If...

View Article

VS 2008 Can I resize datagridview height to show all rows?

Hello, After the data is loaded in a datagridview control is there any way to resize the control to show all rows by changing the height? I need to load data and capture an image of the control with...

View Article

VS 2008 mod math question

This makes no sense to me. The mod fuction is suppost to return the remainder of a division problem. It isn't for me. I have tried just about every combination of dim'ing the variables as doubles or...

View Article


VS 2010 PowerPoint 2010

Hi, I want to use this code to make a movie from PP Quote: Sub TestCreateSampleVideo() ' Change the file path and name as required. CreateSampleVideo ActivePresentation, "C:\TEMP\Video.wmv" End Sub Sub...

View Article

icons to load project

I use vb.net and vc.net for vb.net I use a pale orange background to the editor and for vc.net I use dark blue. I alternate often between writing code in either. but each time I change systems I must...

View Article


Image may be NSFW.
Clik here to view.

VS 2010 Rich text box does not show text in text file-What am I doing wrong?

Hi, Now I am trying to read text from a text file and display it in a rich text box on my form. However nothing shows up in the box. I can select the file properly (extension .fm6) but no text appears...

View Article

Using FinText API from VB.Net

I would like some assistance with calling/setting up FindText from VB.Net. I am getting CDERR_STRUCTSIZE from the following code (it lives in a form with various controls/components namely a...

View Article


question about add a property under columns() property in Datagridview

hi yesterday i asked a question related by creating new class and inheritance. some friends answer . but in an exercise i have a problem. in Datagridview there is a property named Columns . it can used...

View Article

Removing specific chars from listbox

Hey Guys, i generally want to make an application, which loads a textfile (the file contains some number combinations and unwanted chars in each line, like "12335243</br>"), removes all...

View Article

VS 2008 Decoding characters obtained from web pages

I am downloading pages from the web using a variety of methods, including this: Code:           Dim URLString = "http://www.example.com/page.htm"           Dim MyWebClient As Net.WebClient = New...

View Article
Browsing all 27349 articles
Browse latest View live