Click here to Skip to main content
15,879,535 members
Everything / Programming Languages / Visual Basic 8 (2005)

Visual Basic 8 (2005)

VB8

Great Reads

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.
by S.SRIVATHSAN
Implementation Nhibernate concept in VB.NET
by Miran.Uhan
Grayscale and color scale filters.

Latest Articles

by Claudio Nicora
An extended NumericUpDown control with better focus and mouse wheel management.
by Richard Atkins
Create a fluid, multi-column, vertically ordered list using nested, floating divs
by nogChoco
LineNumbers that dock to a RichTextBox or show as an overlay on top of it
by Troy Simpson
Setup a simple and cheap computer controlled watering system using VB.NET or C# and a parallel port relay controller

All Articles

Sort by Score

Visual Basic 8 (2005) 

7 Sep 2009 by Christian Graus
I wanted to use AJAX in my VB application, under Vista.  I think it will make my charts work faster.  I don't know where to start.  How do I import the AJAX library into a windows application ? Where should I put my AJAX code ? Help, please, it's URGENTZ !!!!!
2 Aug 2009 by Abhishek Sur
Gives an introduction of how to create SQL CLR managed objects in SQL server.
21 Aug 2009 by kirkaiya
A very simple, XAML-based month-view calendar that shows appointments, exposes events, and allows dragging appointments in the current month.
7 Jan 2008 by S.SRIVATHSAN
Implementation Nhibernate concept in VB.NET
21 Apr 2010 by Rama Krishna Vavilala
A Microsoft tool named RegMaid does the same thing as what you want to do. The nice thing is that it comes with the full C++ source code. As you can see there is lot involved in removing ActiveX controls (CLSID, AppID, Interfaces, Typelibs etc). Download the tool and the source code...
24 Nov 2009 by DABBee
Liquid Nitrogen. (he's cracked, I knew he would)
17 Jul 2007 by Miran.Uhan
Grayscale and color scale filters.
29 Aug 2009 by _Khallaf
How To Do Precise 2-Way Rijndael CryptoStream Communication
4 Jan 2010 by Athar Raza Faridi
Dont get upset dude [over the remark made so far].Actually ,the only thing which they are trying to tell you is to clear the concepts of AJAX [what,where and how],before even thinging to impliment it.No WORRIES... :)
22 Feb 2011 by Nish Nishant
Here's a quickly put together example:static void Main(){ Console.WriteLine(GetString(20));}static Random rand = new Random();private static char GetRandomChar(){ return (char)rand.Next('a', 'z');}private static string GetString(int length){ StringBuilder...
11 Sep 2016 by Avatar2400
This is a simple class that allows you to have message box with checkbox and other small features.
31 Jul 2007 by Froz3n
Using the Windows Media Player Component
2 Aug 2013 by CPallini
We have the very nice article series written by 0x3c0, let's start from the first one: "Beginning Operating System Development, Part One"[^].
11 Oct 2013 by heemanshubhalla
How to use Masked Textbox control in .NET
31 Jul 2014 by Dave Kreskowiak
Sadly, this "question" is indistinguishable from any of the real ones asked nowadays. :(
17 Nov 2009 by AspDotNetDev
Sounds like you aren't looking for specific advice but for general tools so that you can take your education into your own hands. This is a very good thing, because the best programmers have a passion to do so and spend a lot of time outside of class to learn their craft. My first language was techn
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.
9 May 2010 by DaveAuld
sennyor wrote:i am wondering if i could make That totally depends on what you know!You can make anything you want if you put your mind to it. but first you need to understand want you want.Search codeproject articles for chat, there are many examples.Search google for vb chat irc...
18 Aug 2010 by Fredrik Bornander
Something like this might solve it for you:Imports System.IOModule Module1 Sub Recurse(ByVal directory As DirectoryInfo, ByVal resultList As List(Of FileInfo)) resultList.AddRange(directory.GetFiles()) For Each subDirectory As DirectoryInfo In...
3 Nov 2010 by Simon_Whale
use Crystal reports but the data source would be a dataset that you pass to it.have a look at this example[^]
22 Feb 2011 by Henry Minute
There are several ways to do what you want, which would be easier/quicker will depend on how long the largest string you need to process is.You could declare a string variable and instantiate it with garbage characters. Dim garbage As String =...
28 Jun 2011 by Dr.Walt Fair, PE
I'm not sure if I understand. Have you looked at using AUTOINCREMENT[^]? You can change the starting value if needed, but I'm not sure that's what you're looking for.
2 Jul 2011 by Sergey Alexandrovich Kryukov
This is one of the worst designs somehow popular in newbies. The problem is: you cannot close main form without closing of the application. Look at you entry point (usually Program.Main). Look at the line with Application.Run; the argument of this method define which form is the main one. You...
29 Oct 2011 by Not Active
What would be the point in storing passwords in an external text file? You might as well just use a sticky note attached to your monitor.Just attempt to make the connection using the provided credentials. If they are wrong it will fail and you can handle the exception.
10 Feb 2012 by BobJanova
Find a service which provides this information (if you want the latest information you might have to pay, there is usually free service available for slightly delayed data), and then write against its API. That will probably contain a service method to get the data for a particular...
8 Feb 2013 by Sergey Alexandrovich Kryukov
Of course it would be denied! This directory or drive letter does not have to exist on all systems.In general case, such directory can be illegal on Windows 7. Moreover, there are no situations when using hard-coded path names, relative or absolute, can be useful. Path names should always be...
14 Feb 2013 by Asim Mahmood
try thishttp://stackoverflow.com/questions/9905900/finding-out-input-devices-connected-to-the-system-through-an-asp-net-webpage[^][]
17 Apr 2013 by Johnny J.
Adaption of pdoxtrader's codePublic Function BusIdExists(ByVal busid As String) As Boolean Dim thisSql As String = "SELECT Count(*) FROM [yourtable] WHERE busid=@busid" Dim rowCount As Integer ' Get the list of rows with that busid Using conn As New...
24 Jun 2013 by Dave Kreskowiak
But, I can't understand C# and it is too difficult to me.bullsh*t!If you know VB.NET, you already know a bunch of C#. Look in the MSDN documentation and just about every method page has examples in both C# and VB.NET. There's your "Rosetta Stone". Those examples will tell you how to...
12 Aug 2013 by Shahan Ayyub
From your question I assume two possibilities:1) When DataGridView is NOT databound:AFAIK, we can not get the values of a row cell(s) without looping through DataGridViewRowCollection.One way to do so is using loop:Dim cnt As Integer = 0For i As Integer = 0 To...
26 Nov 2013 by martene
The word "Focus" means that a particular control (e.g. a textbox) is in focus or not. When a user clicks on/in a control like textbox then this control gets all the input (through the keyboard) from the user. When a user presses the TAB button on the keyboard like we do all the time filling up...
14 Aug 2008 by Yasser M. Jaffal
In this article, I discuss an example of how you can use information retrieval to grab data out of MSN Money pages to get a free Web Service for currency exchange rates and other quotes.
5 Apr 2009 by Richard A. Dalton
Part two of a four part series of articles on the Specification Design Pattern.
5 Apr 2009 by Richard A. Dalton
Part three of a four part series of articles on the Specification Design Pattern.
26 Nov 2009 by Christian Graus
Why do you have to do this ? In what context ? For what purpose ? What experience do you have that makes you someone who is able to achieve this ? How long do you have ?
28 Nov 2009 by AspDotNetDev
You can subtract two DateTime objects. Try laterDateTime.Subtract(earlierDateTime). That will produce a TimeSpan object that has properties like "TotalSeconds" and "TotalMilliseconds".
17 Dec 2009 by Kschuler
I copied your code into the load event of a new form with just a TreeView control on it and it worked just fine. The form loaded with two items in the treeview and the second one (velii) was selected. When I debugged it showed that TreeView1.SelectedNode was the velii node. Perhaps some other...
18 Dec 2009 by kesanliali51
Thanks Kschuler,You remembered me that I added a beforeselect condition which is not satisfied in my case.my Best,
18 Dec 2009 by Christian Graus
OK, I still don't see what you're trying to do. What is winsock1 ? Why is it trying to find talk.google.com ? Is that just a check if the computer is online ? Of course, your connect button code is not going to run until you click it, and your winsock = 1 code will run before that. This...
24 Jan 2010 by Abhishek Sur
There are lots of them over internet, should have searched before asking.Here are a few :http://www.c-sharpcorner.com/UploadFile/sudhakarjalli/BasicDbOpsSJ12012005005442AM/BasicDbOpsSJ.aspx[^]http://vsnetdatabinding.blogspot.com/[^]:)
21 Apr 2010 by Kythen
The pk_set variable is always the same object. You are just changing its properties with each iteration. So when the pkList.Add(pk_set) line is executed it is just adding another reference to the same object to the list. To fix this, add a new line before the first With pk_set that looks...
24 Apr 2010 by Rod Kemp
It would appear you want to use command line arguments in your application, to get the values passed for a win form application you can use;For Each arg As String In Environment.GetCommandLineArgs() 'Do something here if the command you want is found.Next argFor a console...
29 Apr 2010 by Christian Graus
WRite code to read the file one line at a time and parse it, that seems like the obvious thing to do. File.ReadAllLines will probably work fine, then just iterate over the lines and use regex to parse it.
5 May 2010 by Christian Graus
You don't. You look up the startup path, it's a property of the Application object.
25 May 2010 by V.
* read the file into a stringbuilder object.* find, then remove the terminator line.* append text.* append terminator line.* save again to txt file (overwrite the existing file).Hope this helps.
2 Jun 2010 by RickRoc
This should answer your question http://support.microsoft.com/kb/191754
14 Jul 2010 by Sandeep Mewara
Yes it is simple. As you say you have pretty much figured out *everything* about DataSet, then Datatable row/column access would be easy for you.As:Dataset is a collection of tables (one or more). C#:myDataSet.Tables[0].Rows //0 for first table.myDataSet.Tables[0].Columns //0...
23 Jul 2010 by Mordred69
Hello all, Newbie all around here, in VB as well as this forum.I am starting to learn the realms of VB. Having intermediate knowledge on HTML/PHP/MySQL code, I find VB to be easier to learn.With that said, please treat me as a newbie. :)My question is as the title states: I need to...
3 Nov 2010 by jonijoni
Hello.I'm programming in Visual Basic 2008. I need to make a report, with its header, body and foot, and with graphics and matrix with data (NOT data base tables).The challenge, is to make a report WITHOUT using data source. The data, are provided by an insternal calculation proccess...
12 Dec 2010 by CPallini
You may use the technique shown in the code sample provided by MSDN for the GetObject Function (Visual Basic)[^], I suppose, adapting it for Ms Access. :)
19 Dec 2010 by Henry Minute
To help with your first problem Getting the control that called a context menu[^]I am not sure that I understand your second part. 'return' to where? perhaps you could expand that a little to make your question clearer.
19 Dec 2010 by abdalnasser
tank you for your answerand i main in the seconed partafter i select an item from the ContextMenuStrip i need to determaine which row or select the row that clicked on
19 Dec 2010 by abdalnasser
thanx for alli found the solutionpart 1:use SourceControl proprity for ContextMenuStrip which return the last control of the ContextMenuStrip part2:determin the rowindex using mousedown event on the datagridview
19 Dec 2010 by Henry Minute
For your second part DataGridView has a CurrentRow[^] property. You'll never guess what it returns. :) I am not sure whether it will solve your problem as, without checking, I do not know if it gets set for a right click. Still check it out, it might do the trick.
20 Dec 2010 by MortezaShoja
for Your second Question you can do this stepMe.Datagrid.CurrentRow.Cells.Item(0).Value.ToStringThis code shows you which row selected and you can put 0 to length of your columns to manage which of column you want to return dataand you can use this code for Just Know About which of...
29 Dec 2010 by Not Active
You don't delete data from the grid, you delete from the datasource bound to it.
24 Jun 2013 by Sergey Alexandrovich Kryukov
Learn C#, what else can be advised?How else are you going to solve the problem? Learn something else of find another article, not in C#? Well, do it yourself; what's the problem? What did you learn so far? VB.NET? If you want to go in for .NET programming seriously, you will have to learn C#...
26 Apr 2011 by Nish Nishant
It depends on what your console app does right now. Typically you'd need a service if you need some kind of TCP service, remoting server, WCF service etc. Essentially you have code that can be activated when desired. Since you've asked this question I guess we can assume that right now you have...
25 Apr 2011 by Abhinav S
It is difficult to describe an exact answer for you as you are actually asking for too many things in the same question. I can try to help by describing the steps for you - you can search on the internet for details.1) Try to write a query with a where clause that matches your student...
16 May 2011 by Hemant__Sharma
Hello @norxnor,it's a big question, divide your question in 2 parts:1- Parsing WSDL:There is a book see if you can getBook Name: Professional ASP.NET 2.0 Server Control and Component DevelopmentChapter 10 : XML Web ServicesThe above chapter will give you enough info on XML...
25 May 2011 by Simon_Whale
why not just create a custom handler for all the textboxes? addhandler textbox1.textchanged, addressof textchangedhandler addhandler textbox2.textchanged, addressof textchangedhandler .... 'add additional textbox handlers .... addhandler textbox7.textchanged, addressof...
24 Jun 2011 by S Houghtelin
By new to VB, do you mean that you are new to programming in general?Yes, one could probably create a program to do what you describe. and since you are new to VB I would say yes it could prove to be difficult.There are ready made alternatives that do what you say, for example I use Real...
2 Jul 2011 by Dr.Walt Fair, PE
Perhaps this would get you started? A Video Converter in Visual Basic .NET[^]
5 Jul 2011 by Dave Kreskowiak
Guy...you've asked a ton of questions on the same subject, all for a thesis. If you can't do your own research, you're going to fail this project, badly.You have to know not just your own project inside and out, but all the research surrounding it. Like, why did you didn't take this route...
5 Jul 2011 by Christian Graus
Just to add to Dave's comment, there's source code to do all this, easily found with google. So if you can't use google, what are the odds that you deserve to pass your course ? You need to do more than google and reuse code, you need to understand how it works, or you will fail.
8 Jul 2011 by Christian Graus
Wow - you've spent months and not once considered searching with google or reading a book ?Here[^]. I read the first link, and it definitely covers everything you need. This[^] covers using stored procs.
11 Jul 2011 by CPallini
You may use, for instance a Dictionary: declarea variable like Dim dic As New Dictionary(Of String, Button)then initialize it:dic.Add("Character", btnChar)dic.Add("Face", btnFace)' and so on...Then you may access each Button using the corrensponding String, for...
27 Jul 2011 by OriginalGriff
XML is not a database - it is a flat, human readable (text based) file format. It can be treated as a primitive database, in that data can be organised within it, but it is not a good way to handle information that will be changed frequently, accessed by multiple users, or which requires...
27 Jul 2011 by Mehul M Thakkar
Why don't you use App.Config file?
14 Aug 2011 by Sergey Alexandrovich Kryukov
The attribute "class" here has nothing to do with click handlers; it points to the CSS (style sheet) class name. The whole question seemingly has nothing to do with VB (in the sense on can imply by "VB10", it could be VBScript, in principle), rather to Javascript. There is no indication of...
14 Aug 2011 by Simon_Whale
The piece of code that you have shown runs a Javascript function called showWindow().I would read up on the differences between client side and server side code, this will show you what languages are used on each.
29 Oct 2011 by Espen Harlinn
I wrote this article Security : It’s getting worse[^], because designs like this often makes it into production.Best regardsEspen Harlinn
24 Nov 2011 by Manoj K Bhoir
Refer the following links.I hope it will help you.http://www.codeproject.com/KB/tree/DragDropTreeview.aspxhttp://www.codeproject.com/KB/shell/explorerdragdrop.aspxhttp://www.codeproject.com/KB/dialog/JibDragDrop.aspxhttp://www.codeproject.com/KB/clipboard/dragdropinterface.aspx
24 Nov 2011 by LanFanNinja
Something like this should workNote: I used the Form in this example but will be the same for a Panel just make sure the AllowDrop property of you Panel is set to true.Private Sub Form1_DragEnter(sender As Object, e As DragEventArgs) Handles MyBase.DragEnter If...
4 Feb 2012 by Uday P.Singh
Refer this [^]and read the whole conversation.hope it helps :)
15 Mar 2012 by ZurdoDev
Just define USERREAD at the class level. Then in your IF statement, set the value.
18 Mar 2012 by Sergey Alexandrovich Kryukov
This is called Web scraping, please see: http://en.wikipedia.org/wiki/Web_scraping[^].With .NET, you need to use the class System.Net.HttpWebRequest, please see:http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.aspx[^].See some code sample...
23 Mar 2012 by ProEnggSoft
I could not understand exactly how replacement is done etc.But, if a key is pressed by the user and the key is not required to be entered in to the control, then after handling in the KeyPress event you can set e.Handled = trueas explained...
26 Mar 2012 by Steve_T
I'm not sure how this code is to be used, so I set up a test program with a single textbox and with newStr defined as a form-level string. I tried this code in both the textbox.KeyPress and Form.KeyPress handlers. In both cases it did the replacement but left the first character of the 4-char...
27 Mar 2012 by Steve_T
Now I understand the cause of your problem - I hadn't realized that the text was being entered into a different program. The previous suggestions of setting e.Handled=True or setting e.KeyChar=chr(0) assumed that the text was entered into the same program as was doing the substitution. In order...
9 Apr 2012 by Jαved
Hi,Go through the following-http://msdn.microsoft.com/en-us/library/bb266451(v=VS.85).aspx[^]
26 Apr 2012 by VJ Reddy
From the requirement given in the question it appears that a single square has to move in the Tick event of the timer. But as seen from the code given in the question, a new TheSquare PictureBox is instantiated each time the Tick event fires and this new PictureBox is being added to the Panel1,...
2 May 2012 by Maciej Los
Easily zip / unzip files using Windows Shell32[^]DotNetZip library[^]Zip Unzip Example application[^]
4 May 2012 by Maciej Los
Use "Search" option. Below articles comes from this site[^].Enumerating processes : A practical approach[^]Process viewer[^]Accessing Process Information Using the Win32 API[^]
16 May 2012 by sunandandutt
Try this link:http://www.developerfusion.com/tools/convert/vb-to-csharp/#convert-again[^]
1 Jul 2012 by Sergey Alexandrovich Kryukov
Add some root tag to this code, and you will get a well-formed XML. Let's say, you surround it with … . As soon as you do it, you can do whatever you want with any of the XML parsers bundled with .NET.Here is my short overview of those parsers:Use...
24 Jul 2012 by lewax00
I think you have more problems than just that...but to solve that one add this to the beginning:If (String.IsNullOrEmpty(PutValue)) Then ReturnEnd IfNext, why is your function of object type if you don't return anything? Change the declaration toPublic Sub WriteIni(ByRef INIpath...
30 Aug 2012 by vijay bisht
dim ds as new dataset dim qry as string = "select * from tabletemp"dim command as sqlcommand = new sqlcommand(qry,connection)dim da as sqldataadapter = new sqldataadapter)command)da.fill(ds,"tabletemp")dim datevariable as stringdatevariable =...
2 Oct 2012 by Tim Corey
It sounds like what you want is a type of trial version for your application. The simplest way to do this would be to write a key to the registry and then add or subtract one from your initial written value for each time the application is run. When you hit zero (if you are counting down) or 3...
17 Oct 2012 by fdsfsdafsa
I'm using this to send an SMS using mCore ActiveX Component in VB6. This code is working fine but sometimes it sends a single SMS multiple times (in fact, hundreds of times until I close my application). Please guide me as I'm very familiar with VB6Public Function SendSMS()On Error...
9 Feb 2013 by Mehdi Gholam
C$ is only assessable by the administrator, so you should start by sharing the image folder directly with read access for everybody.
20 Feb 2013 by virajdaw
Well through lot of searching, i could get something that could answer the question .Here it goes ... http://www.vbcodesource.info/?p=421[^]
21 Feb 2013 by TRK3
All the times are the same order of magnitude and relatively close to each other, so they aren't actually encrypted. Most likely they are just the total number of some units of time since some origin date.It's either seconds, or milliseconds, since some date.1359279658478...
22 Apr 2013 by DinoRondelly
This will show you how to query the database,http://social.msdn.microsoft.com/Forums/en-US/vbide/thread/e4344a25-93e5-40d4-a97d-c5ee0b573577/[^]And this will show you how to bind the results to your combo box,http://vb.net-informations.com/dataset/bind-combobox.htm[^]
1 May 2013 by Ron Beyer
Not really. I looked into this a long time ago (in a different context). You can't really get the signal strength with most blue tooth drivers or get the distance in an accurate enough fashion even if you could. I was experimenting with indoor navigation systems using WiFi RSSI signal strengths...
5 May 2013 by Zoltán Zörgő
Try this: ^[A-Z]{2,3}-\d{4}$For testing an learning purposes I suggest you download Regex Coach[^].
9 May 2013 by ZurdoDev
To text is very easy, use File.WriteAllText(). In VB, use & for concatenating or use a StringBuilder.
12 May 2013 by Sergey Alexandrovich Kryukov
Omkaara wrote:I'am using VS 2005, 2.0. Framework Linq is not available in VS 2005.If you cannot use .NET Framework of the versions above v.2.0, you will have to use other means of working with XML and develop the search by yourself. Please see my short overview:XML Read/Write:Use...
13 May 2013 by Richard C Bishop
This is an example of what you might do:Dim buttonList As New List(Of Button)()buttonList.Add("add your buttons from the page here or if you create them dynamically do it for each one");For i As Integer = 0 To buttonList.Capacity Then Dim btn As New Button ...