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

VS 2010 Tidy Classes

Hi All, Just wondering if there is a way to tidy up the classes in the solutions explorer? Ideally what I would like to do, is have the classes sitting under the form that would be primarily calling it...

View Article


VS 2010 Comment After New Line Seperator?

Hi Guys, For ease of sight if nothing else, I am forming a string of data, and ideally want to be able to comment what each part of the string is... for example, what I want to do is this: Code: String...

View Article


Alternative to JET.OLEDB for reading CSV data.

I'm currently using the Microsoft.Jet.OLEDB.4.0 provider to connect to a CSV file. I then use a oledb command SELECT query and a DataReader to read in the rows/columns of data from the CSV file. It...

View Article

VS 2010 Some IDE questions

I've been using VB.NET for quite a while but still find some "quirks" in the IDE: Suddenly one of my forms has no rules/lines separating the subs in code view. I guess I must have hit a secret key...

View Article

VS 2010 Exponential Moving Average

Does anyone having a function to calculate EMA that they would be willing to share? Would like to input an array of values & a period & get back the EMA value. Thanks if you can help...

View Article


Image may be NSFW.
Clik here to view.

VS 2010 datagridview get date value

Attachment 94333 Code:             Do While rs.Read             dataGridView1.Rows.Add(rs("DATE"), rs("TITLE"), rs("URL"))       Loop Date column is datetime, how to fix this problem? Attached Images  

View Article

VS 2010 Strange Timeout Error

I've put together the following script, and it runs great on my local machine (w/ SQL Express), but when I change the SQL login information to our company server (SQL Server 2008), it kicks back a...

View Article

VS 2008 Receive Data from Serial Port

Hi to all: I have an electronic board that send for SerialPort +/- 60 messages by Second... I have no problem catch the messages when i work with potenciometers, by i have here problems with swicthes....

View Article


VS 2010 Generate Word file - pagenumber in table in header

Hello, I'm trying to put the pagenumbre in a cell of a table, which table is standing in the header of a generated Word document. With the code below, the page number appaers always in the first cell...

View Article


need to close all Excel before saving...

Hi. For now, I would like to close the file test1.xlsx before saving to it. But in the future, I would like to close ALL Excel before saving. I have tried the following without any success: HTML Code:...

View Article

FontDialog showing 2X

I am using the FontDialog and am having a couple problems. First, I cannot get the apply button to work. I have tries several things but this is the latest incarnation. Whenever I click apply nothing...

View Article

problem accessing the correct kernal32.dll (32 vs 64bit) from a vb.net 2005...

Hi there, I have a bit of a situation with an in-house 32bit app we have. We have vs.net 2005 installed on an Xp Pro SP3 machine, and has the .net framework 2.0 installed. We used to have a full time...

View Article

VS 2010 [RESOLVED] Trying to extract a CSS style using VB. What am I doing...

Hey guys, On form load I am using a web browser control to navigate to a specific webpage... Code:     Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles...

View Article


VS 2008 How to access the webpage-based datatable inside a WebBrowser

Hi, Inside my desktop application I have a WebBrowser that opens a web page containing a datatable. I need to have use the intact information of this web page datatable in my desktop application. I...

View Article

vb 2102 - list/recurse empty folders or folders with specific files. Complete...

Hello everybody, I am stupid... I mean simple. Please answer accordingly. 'Comment your code'! [Problem] I am trying to use my Windows Desktop form to display a list of 'empty' folders and sub folders...

View Article


Image may be NSFW.
Clik here to view.

how to generate an Excel 2010 histogram from VB.NET...

Hi. I have tried the code below: HTML Code:     Dim xlApp As Excel.Application     Dim xlWorkBook As Excel.Workbook     Dim xlWorkSheet As Excel.Worksheet     Dim oAddIn As Excel.AddIn...

View Article

Structure -v- UDT (in vb6)

Hi I am starting to convert a large vb6 program to dot.net. I am starting with structures of my data files. In vb6 I had (as an example) Public Type Bloggs BusName As String *30 Postcode As String *6...

View Article


Listbox and Binding Source

Any one mind showing me how to properly use a listbox and a binding source so that on load up after being closed the listbox items remain the same before it was closed? I want to learn how to do this...

View Article

VS 2010 Testing functions

In VS2012, Visual Basic.NET, when creating unit tests, if I have a function that I have created that works, and is only used once in code, and I am never going to edit it again, should I still create a...

View Article

VS 2010 [RESOLVED] Can someone use a DLL if it's code is obfuscated?

Just wondering, if I obfuscate my DLL, I know it's code cannot be extracted, at least not without some great knowledge I don't know, but anyway, that's not the point. Is it possible to just use that...

View Article
Browsing all 27186 articles
Browse latest View live