Click here to Skip to main content
15,893,594 members
Everything / Programming Languages / Visual Basic 9 (2008)

Visual Basic 9 (2008)

VB9

Great Reads

by CS Rocks
This is a slideshow that works in a Silverlight 3 UserControl.
by CS Rocks
This article demonstrates how to upload a file to a (HTTPS) WebDAV server in VB.NET.
by Abhishek Sur
Gives an introduction of how to create SQL CLR managed objects in SQL server.
by kirkaiya
A very simple, XAML-based month-view calendar that shows appointments, exposes events, and allows dragging appointments in the current month.

Latest Articles

by Richard Atkins
Create a fluid, multi-column, vertically ordered list using nested, floating divs
by Avatar2400
This is a simple class that allows you to have message box with checkbox and other small features.
by icemanind
How to automatically create data access layers and business layers from a Microsoft Access or a SQL Server database
by David Vanson
A progress bar control you can customize

All Articles

Sort by Updated

Visual Basic 9 (2008) 

3 Apr 2010 by #realJSOP
Google is your friend. There are 897,000 hits, and I'm sure one of them can give you what you want. Of note, an article right here on CodeProject is the very first link listed.
8 May 2010 by #realJSOP
Well, your question is so vague as to be considered unanswerable in its current form. What country are you looking for? Are you sure you're spelling it the same way as yahoo is?
18 Nov 2010 by #realJSOP
Try putting each group of textboxes into their own groupbox, and enable/disable the groupbox. If that doesn't work, put the textboxes into a groupbox, and then when you need to enable/disable the textboxes in a given groupbiox, just iterate through the child controls of the groupbox.
29 Dec 2010 by #realJSOP
You mean you want to have your application phone home when the usr enters his new code, AND you want that code. Please tell me what software you wrote that does this, because I want to specifically avoid using it on one of my systems.That practice is bad beyond description.
16 Mar 2011 by #realJSOP
Yes, you can write a plugin framework in andy .Net language. Try googling ".net plugin framework" and look through the 285,000 results that search will return. There are even some CodeProject articles on the first page of results.
7 Apr 2011 by #realJSOP
Because even though you're calling the Fill_Combo_Box method, you're not actually using it's returned object in the calling method. You probably want this:Dim myData as OleDbDataReader = Fill_Combo_Box(Cmb_Line_ID_SQL)Not only that, but the method in question doesn't have a return...
11 Apr 2011 by #realJSOP
Try this:Dim data As String = ""For i = 1 To myData.FieldCount() - 1 data = "" if (Not myData.IsDBNull(i) Then data = myData(i).ToString() lv.SubItems.Add(data)Next
8 Mar 2009 by Đonny
This article introduces and describes a framework that allows the creation of managed plug-ins for the Total Commander file manager.
13 Jul 2010 by 0x3c0
MSDN seems remarkably sketchy on the details, but according to this code file on Google Code, it's imported from either windows.h or usbfnioctl.h
3 Aug 2010 by 95ulisse
Hi,the last day, I decided to improve the performance of my website, so I decided to compress the responses.I've created a module that I've registered in the Web.config. This module registers an handler for the PostRequestHandlerExecute event. Here the module sets a...
27 May 2009 by _Khallaf
Use IMAP to auto-reply to unread GMail messages while on vacation
29 Aug 2009 by _Khallaf
How To Do Precise 2-Way Rijndael CryptoStream Communication
10 Jun 2014 by a_pess
Build a standard Windows Forms translucent control using GDI+ & VB.NET
8 Nov 2009 by a_pess
Image transition and visual effects in VB.NET using GDI+.
30 Aug 2012 by Aarti Meswania
see, below codedim datevar = dbScalarvalue("select date from tbl where timstampcol=max(timestampcol)")'dbScalarvalue function take query and give result from sql, database connection and all that will manage internally by function.Happy Coding!:)
12 Feb 2013 by Aarti Meswania
SMS = Short Message Serviceso,that you can not send Long messages through Short Message Serviceyou have to split your long sms in to chunks :)Happy Coding!:)
29 Oct 2008 by Abd Allah Diab
A library that lets you easily manipulate your drawings
25 May 2011 by Abdisamad Khalif
Public Sub fill_listview(ByVal query As String, ByVal lv As ListView) Dim ds As New DataSet ds = fill_dataset(query) lv.Items.Clear() lv.GridLines = True lv.FullRowSelect = True lv.HideSelection = False Dim x, y As Integer ...
24 Apr 2010 by Abhinav S
By record video, do you mean a screen capture utility?You could record screen image captures[^] and then combine them to form an avi video easily.
8 May 2010 by Abhinav S
The Yahoo weather API appears to have a country code in it. Maybe this is what you are looking for.
17 May 2010 by Abhinav S
Drawing lines - here.Variables that need to be seen throughout app - use Public.
24 May 2010 by Abhinav S
What error do you get?For an example of a FileStream see here.
28 May 2010 by Abhinav S
You could assign a dataset as shown here - http://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/b164c77b-67a0-4b02-82f6-ffa73428ffbb/.
21 Jun 2010 by Abhinav S
pushpendrak wrote:1st i want to create a file which cannot be deleted You need to give it (or the parent folder) appropriate rights via a windows admin account.pushpendrak wrote:2nd how to code an app so that user cannot end that task from task manager.Why does this sound suspicious.:~
26 Jun 2010 by Abhinav S
This may be of some help to you.
19 Nov 2010 by Abhinav S
Try setting Cancel = True in the Closing event to prevent the form from unloading.
26 Jan 2011 by Abhinav S
Yes - this[^] might help you.
18 Apr 2011 by Abhinav S
This discussion [^]should help you get started.
25 Apr 2011 by Abhinav S
This[^] could help you.
30 Jul 2011 by Abhinav S
I just went to the Infragistics Ultragrid site and came up with this.[^]I also came up with this[^].Maybe if you look around the Infragistics website you will find it.
2 Oct 2011 by Abhinav S
Have a look at the Page property as described here[^].If you want to keep a total count over a long time period, using a permanent storage option like a file or a database will be the appropriate thing to do.
22 Oct 2011 by Abhinav S
Yes you can do this using a static or a class level instance variable.Just set this variable to 0 initially. Then use substring to get the last four characters of the current supplier no. Convert this into an integer and increment and store it in the variable.You can then use the variable...
22 Oct 2011 by Abhinav S
You can always use LINQ.var q = (from c in NamesList where Name.StartsWith("R") select c) This[^] should provide you with some examples as well.
28 Feb 2009 by Abhishek Sur
Basic Examples to work with Language Integrated Query(LINQ) concept that was introduces with C# 3.0 and/or .NET 3.5 (Corresponding VB.NET code included)
2 Aug 2009 by Abhishek Sur
Gives an introduction of how to create SQL CLR managed objects in SQL server.
14 Sep 2009 by Abhishek Sur
Make your class library COM visible using few simple steps
31 Oct 2009 by Abhishek Sur
This article will enable you to add custom search rules to your application using Bing Search API with much more
3 Nov 2009 by Abhishek Sur
Using this article you will get the basic idea of how you could use NDepend to control/analyze your application. It allows to apply design rules and refactor code.
10 Nov 2011 by acidsnake20
how to get index0 to index3 of row from datagridview1 and put in to the datagridview2
4 Mar 2010 by acmamr
Hello,Thank you for your application AccountPlus.I am learning Dont Net now, so i hope study your application well.so i hope you help me.My e-mail is ahmedcheinane@hotmail.comRegards..
1 Dec 2009 by Adam Maras
A simple class to asynchronously retrieve a value and hold it until needed.
24 Jun 2009 by AdamNThompson
This class sorts objects using Generics and LINQ Lambda Expressions.
29 May 2012 by Afelete123
How can develop a generic search winform class to be use in all search in EF application the search determine all the properties of entitiy and their type
12 Sep 2008 by agusto xaverius
It is a simple webpart but very usefull to load many usercontrols
21 Nov 2011 by ahmad7_8
hi there ...what the code that can Detect if the user log in physically or he log in using "remote disc-top","team viewer","remote administration","VNC","Hamachi" or other Sw. my vb is 2008\3.5
7 Apr 2008 by ahmed-itani
Very simple article to show how to add columns to a GridView at runtime.
16 Feb 2012 by aidin Tajadod
As I undrestood you want something like this:if ((int)DateTime.Now.ToOADate()==(int)(new DateTime(2012,2,16,0,0,0).ToOADate()) {}or you can compare one bye one. like: DateTime d = DateTime.Now; if (d.Year==2012) { }and other choices.Sorry I did not...
11 Aug 2011 by Al Moje
pre>Hi,You may use ToString Example code:: Dim acctHashTotal As Decimal = 2.9869 Me.txtAcctHashTotal.Text = acctHashTotal.ToString("0#.0000"); Please remember to mark the replies as answers if they help and unmark them if they provide no help.Regards,Algem
5 Mar 2012 by Alan Tuscano
I'm having problem with this code, this is my first time to use oracle. :)Help me please. I'm using VS 2008Imports System.Data.OracleClientImports System.Configuration.ConfigurationSettingsPublic Class DBConnection Dim _Conn As System.Data.OracleClient.OracleConnection ...
6 Mar 2012 by Alan Tuscano
The warning is; 'Public Shared ReadOnly Property AppSettings() As System.Collections.Specialized.NameValueCollection' is obsolete: 'This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings'. Below is my connection Imports...
6 Mar 2012 by Alan Tuscano
Got this one solved!got the answer from http://social.msdn.microsoft.com/Forums/en-US/vblanguage/thread/d61a57ef-552d-45cc-8326-3ca3bc113699Comments by KrishGuru.At Solutions Explorer, Right Click on the Project, select Add Reference andselect System.Configuration and click okay.
7 Mar 2012 by Alan Tuscano
Hi,oWB.SaveA...
8 Mar 2012 by Alan Tuscano
Hi,How can i pushed a generated Excel report to the ftp mail server?
8 Mar 2012 by Alan Tuscano
Hi,Error 1Reference required to assembly 'office, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' containing the type 'Microsoft.Office.Core.MsoTriState'. Add one to your project.In my Reference, I add Microsoft Office Object Library Ver.12.As I also found out that...
11 Mar 2012 by Alan Tuscano
Hi,Imports System.IOImports SystemImports System.CollectionsImports System.ConfigurationImports System.Configuration.ConfigurationManagerImports System.Data.OracleClientImports Microsoft.Office.InteropImports System.Net.FileWebRequestImports System.Net Public Sub...
12 Mar 2012 by Alan Tuscano
Hi,My pc's MS Office version was downgraded from 2003 to 2002. What version on interop should i needto add as reference in my vb 2005 project.
17 Mar 2012 by Alan Tuscano
Hi, Got this Article FTP client library for .NET 2.0[^] by Howard Richards posted 20 Mar 2006.I copied His sample: Download a file but instead of download, I change it with Upload, and aside from modifying the FTPPath, UserId and Password. I got the code to run, and again, got this...
29 Mar 2012 by Alan Tuscano
Why can't i open my project in another pc?I copied my project to another pc, and wan't to open the copied project to that p, but a error myproject.vbproj is missing?
3 Apr 2012 by Alan Tuscano
For i As Integer = 0 To _dtCol.Rows.Count ' Dim nAcctNo As String = String.Empty nAcctNo = _dtCol.Rows(i).Item(0) If nAcctNo String.Empty Then Dim AcctNo As String = nAcctNo & "_JAN12.pdf" Dim sPath As String =...
3 Apr 2012 by Alan Tuscano
Hi,I wanted to make a counter as progressbar in the Console. How to do?
3 Apr 2012 by Alan Tuscano
Hi,This PC that I'm using has no winzip...!!!!???!!!!I'm using shell23 to unzip and zip files. During Unzip, its fine. But when I do Zip, got the whole day to zip 13 Thousand pdf files in a single folder. when i tried doing the manual zip, it only took me 25 to 30 seconds..Should...
10 Apr 2012 by Alan Tuscano
I developed a program in a Windows XP SP2 OS and MS Office 2002 for my Excel Automation.when project is done, QA team tested my project in a Windows 7 OS and MS Office 2007 for Excel spreadsheet.But, before they did testing, they compiled my project. on compilation, program popped an...
15 Apr 2012 by Alan Tuscano
Hi,I'm running my module in Console. Part of the flow is compressing a Folder using WinZip. The compressing usually takes 3 to 7 minutes depending on the size of records(volume of records inside the folder) to compressed. In this Instance, the Console closes and Winzip opens (in minimized...
15 Apr 2012 by Alan Tuscano
hi,how can i check if winzip is running(compressing files)?
4 Jul 2012 by Alan Tuscano
Hi,Is SFTP and FTP same?I have an old program that accesses a FTP Folder.Now, I'm doing another program and will need to Access a SFTP folder.Well the codes/syntax i used in the old program can be use for the SFTP?
9 Jul 2012 by Alan Tuscano
Hi,How can i use winscp to transfer file in the sftp server using vb2005?can please provide a sample code.Thank you very much in advance.
25 Sep 2012 by Alan Tuscano
Dim uDestPath As String = AppSettings.Get("UnixPath")Dim uWinScpPath As String = AppSettings.Get("WINscpPath")Dim oDecrypt As New ConnObjDecrypt.DecryptorDim oUnixConStr As Array = oDecrypt.DecryptConnectionString(AppSettings("UnixConString")).Split(";")Dim sFTPServer As String =...
17 Oct 2012 by Alan Tuscano
Hi,In WINSCP's Windows Module, I can access, copy and delete files in the remote directories. But in the command prompt, I tried accessing the same remote directories i can access in WINSCP windows module but got this error : "Network error. Connection refused."Please help me on what to...
21 Nov 2012 by Alan Tuscano
Hi,In my program(console program), I using WinSCP ver. 4.3.8 to upload and download file in a SFTP site/server.below is my code:Dim _Host As String = AppSettings.Get("sftp_Host") Dim _UserName As String = ReturnValue(oSFTPConStr.GetValue(1)) Dim _Password As String =...
11 Dec 2012 by Alan Tuscano
Hi,I'm trying to save a converted xls file in csv.--> after convert processDim _Out() As String = csvData.Split("\n") Dim _OutPut As String = targetFile 'path and filename to save in local Dim _csv As StreamWriter = New StreamWriter(_OutPut, False) _csv.Write(csvData) ...
11 Dec 2012 by Alan Tuscano
I've got the solution.in the While process, after reading the whole line, i then save it per line using streamwriter writeline like this;While row_no
6 Feb 2013 by Alan Tuscano
Hi,I'm using Excelwriter to write to excel without using Automation. Dim AnnexB3Rpt As String = AppSettings.Get("RptAnnexB3_filepath") Dim stream As New FileStream(AnnexB3Rpt, FileMode.OpenOrCreate) Dim writer As New ExcelWriter(stream) ...
27 Feb 2013 by Alan Tuscano
Im converting an array, in the date column, the format is dd/MM/yy, i need to convert that date format in yyyyddMM. I tried parse, parseexact but returns an errors "String cannot be converted into date" or "String was not recognized as a valid DateTime." or "The DateTime represented by the...
20 Jan 2008 by Alberto M.
Eliminar archivos de forma segura con distintos metodos
9 Mar 2008 by Alessandro Del Sole
An alternative way to create XPS documents via Visual Basic code and VSTO assemblies.
9 Mar 2008 by Alessandro Del Sole
An introduction to some new cool features of the Visual Basic 9.0 language syntax.
9 Mar 2008 by Alessandro Del Sole
Techniques for writing your own Structures which adhere to the Microsoft CLS, using Visual Basic 2008.
9 Mar 2008 by Alessandro Del Sole
Techniques for writing custom data types written in Visual Basic 2008 to a binary file.
13 Mar 2008 by Alessandro Del Sole
Learn how to be the only one accessing your files, with two simple .NET methods.
16 Mar 2008 by Alessandro Del Sole
Binding a generic collection to a DataGridView in VB 2008, with a few lines of code.
14 Apr 2009 by Alessandro Del Sole
Learn how to implement an extension method in Visual Basic 2008 for converting a BitmapImage object into a System.Byte() array
9 Mar 2008 by Alessandro Del Sole
An explanation of how to add WPF controls to Visual Studio Tools for Office solutions, writing Visual Basic code
9 Jan 2010 by Alexander Shirmanov
Problem in using fonts. You need use other fonts. For example, instead of "Calibri" need to use "Arial".
28 May 2010 by Ali Tarhini
if you are using microsoft report viewer then its a good choice to work with the Matrix control to render nested gridviews. you can also do this using a wizard which is part of the report builder tool.
5 Oct 2012 by Allan Chong
Hi, here is some sample code:http://www.mindfiresolutions.com/How-to-Print-Receipt-by-POS-Printer-using-VBNet-782.phpAll receipt printers are the same, as long as you have a driver that Windows 7 supports, you can use it to print anything you want.. You just have to format the printing...
7 Aug 2009 by Allen _ Wang
Calculating the workload for speech language pathologists is a very complex process. A systematic approach has to be developed in order to calculate the workload and setup a standard.
7 Jul 2010 by alrosan
Module Module1 Dim cnt As Integer Sub Main() cnt = 0 Console.WriteLine(CountFiles()) Console.Read() End Sub Function CountFiles(Optional ByVal dri As String = "C:\", Optional ByVal subDir As Boolean = True) As Integer On Error Resume...
22 May 2013 by Am Gayathri
My application is developed in vb.net.How can i display a message if my dataset retries no record?please helpi tried if (dataset.table.count >0){}else{ message}end ifbut it doesn't showing message if table has no records.so please share your valuable thoughts
28 May 2013 by Am Gayathri
In my project i have created one windows application using vb.net.I have created one new data set (Add->new->dataset). Dataset getting value from sql query.But am getting error 'Arithmetic over flow ' while loading data in to dataset. Value from the query is 1.80357142857143 How can i...
11 Jun 2013 by Am Gayathri
I have created one windows application using VB.net. i wanna export some result in to excel.How can i export data in to excel from a datatable in VB.net? please give me the code.
4 Aug 2008 by Amir Emamjomeh
A simple example of how to classify data using genetic algorithm and VB.Net
17 Dec 2010 by Amit Kumar Tiwari
Please see below link:http://msdn.microsoft.com/en-us/library/ms229643(v=vs.80).aspx[^]
13 Jan 2014 by amit_83
Hi Javed, I need to do the same as you expect. If you found a solution, then can you help me here, How did you resolve your issue?
5 Aug 2011 by amit_myana
Hello Friends,When i build the application then reference dll files copy into application directorybut i don't want to dll file in application directory,i want to change dll file location to any folder (like C:\windows)Can anybody tell me,Thanks in Advance.
18 Dec 2022 by Amitkumaryadava
Hello Great Minds ! I am new here. I need to help to create a notepad which has data from data table. I Filled a Data Table dt from data Adapter and Export using string builder. I set Every Column Position Using Padding to fix column width. I am...
27 Feb 2012 by amityadav4a
#include "windows.h"#include "iphlpapi.h" //IP Helper apiLRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM) ;int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdLine, int iCmdShow){ static TCHAR szAppName[] = TEXT ("Ip Address")...
27 Feb 2012 by amityadav4a
Problem solved Added #pragma comment(lib,"IPHlpApi.Lib")in the code and now [problem is solved. But i am not getting the correct ip address by GetIpAddrTable.
3 Mar 2012 by amityadav4a
Program is running but window is not displayed. what are the possible problems? Program is written in win32 using visual studio 2008.
11 Nov 2011 by Amol_27101982, India
It doesn't matter how complex your query is, if it is executing properly in the backed it should run through .net.Just replace command in the bellow command object.Dim nwindConn As SqlConnection = New SqlConnection("Data Source=localhost;Integrated Security=SSPI;Initial...
21 Nov 2012 by Amr Abd-Rabou
hello gaysthanks to visit my Q i hope you can help mei want to check or Uncheck then checkbox in wab page from my project in vbin vb6 i can use this code WebBrowser1.Document.All.Item("sex")(1).Checked = Truebut in vb9 i have err magError 1 Class...