Click here to Skip to main content
15,880,796 members
Everything / Programming Languages / Visual Basic.NET 7.x (2002/03)

Visual Basic.NET 7.x (2002/03)

VB7.x

Great Reads

by Jecho Jekov
Provides an easy way to use C calling convention callback functions in C# and VB
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 Avatar2400
This is a simple class that allows you to have message box with checkbox and other small features.

Latest Articles

by Richard Atkins
Create a fluid, multi-column, vertically ordered list using nested, floating divs
by Eric P Schneider
Basic demo on how to serialize and deserialize custom collections
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

All Articles

Sort by Score

Visual Basic.NET 7.x (2002/03) 

13 Sep 2005 by Jecho Jekov
Provides an easy way to use C calling convention callback functions in C# and VB
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
11 Sep 2016 by Avatar2400
This is a simple class that allows you to have message box with checkbox and other small features.
13 Dec 2009 by Rajesh R Subramanian
You cannot "bypass" the firewall. The firewall exists to block unwanted traffic, if or not anyone likes it. If you need your application to work with the firewall still in place, you need to configure the firewall to allow your application to send and/or receive data on such specific ports...
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
2 Sep 2012 by Roliking
you can create a function like this and execute the function to get your desired outputcreate function fnCheckExists()returns bitasbegindeclare @val as bit=0;if exists (select yourColumn from yourTable)begin set @val=1;endelsebegin set @val=0;endreturn @valend
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...
12 Aug 2023 by Graeme_Grant
If you look at the Github Repo[^], there are samples on how to: 1. Use Tooltips[^] 2. Custom ToolTips[^] From the UsingTooltips example: /// /// This method sets tooltips for chart elements /// private void...
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.
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...
21 Jan 2011 by Lolalou
Hi There,I found your site from NOP Commerce. I have just recently installed NOP Commerce 1.90 and noticed that there is a bug/issue when installing a shared SSL.I read on the forum site that there is one fix that I applied. Here is the link:...
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 =...
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[^]
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.
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 ...
8 Jul 2013 by bhuvamehul
If you are using vb.net and you want to draw line in picturebox control using mouse then Dim startpoint As Point Dim endpoint As Point Dim flag As Boolean = False Private Sub PictureBox1_MouseDown(sender As Object, e As System.Windows.Forms.MouseEventArgs) Handles...
5 Sep 2013 by Mike Meinz
Function returns exe name and command line for the provided filename and extension.
25 Sep 2013 by Rick van Woudenberg
Group policies is usually used for this.
19 Jan 2014 by OriginalGriff
Don't post this under Quick Answers - if you got the code from an article, then there is a "new message" button at the bottom of that article, which causes an email to be sent to the author. They are then alerted that you wish to speak to them.Posting this here relies on them "dropping by" and...
2 Aug 2016 by Kornfeld Eliyahu Peter
There are certain talks (messages) between the Os and your application while OS try to shut down...OS actually sent a WM_QUERYENDSESSION to your application, but as you didn't handled it it got a false response, marking your application as blocking...Read this paper, to see how prepare your...
20 Jul 2023 by OriginalGriff
I can't check it in VS 2013 - it says my licence is "stale" and it can't retrieve a new one - but if I try it in VS 2022 it works fine converted to C#: [StructLayout(LayoutKind.Explicit)] public struct Foo { ...
22 Dec 2007 by Miles Gibson
Iron Speed Designer builds database, forms, and reporting applications for .NET – without hand-coding. Quickly create feature-complete custom applications that integrate Web pages, controls, data access, validation and security. Accelerate development and eliminate infrastructure programming.
7 Dec 2007 by vadimas
Troubles putting JavaScript code inline with VB.NET or C# code
14 Feb 2008 by Jarno Burger
How to seek and get the position and duration for your DirectShow movie with VB.NET.
3 Jun 2008 by Darren Fieldhouse
Using LINQ to XML to download RSS enclosures.
6 Oct 2008 by chrissie1
An article on how to use the new AAA (Arrange, Act and Assert) syntax using VB.Net. And the difference between the new and the old syntax.
6 Dec 2009 by thebiostyle
I need to know how to be able to type a quotation mark into a text box in Visual Basic 2008.like so...TextBox1.Text = "[a href=""]LINK[/a]"Had to substitute the for [ and ].That is a bad example, because I've already gotten that to work for me... but like how to get the Quotes...
6 Dec 2009 by AspDotNetDev
TextBox1.Text = "LinkText"You type two quotes in a string to get one quote. Also, FYI, you type to make a >. The Code Project editor will actually take care of that for you, though. You just check the "Encode HTML tags when pasting" checkbox...
22 Dec 2009 by harshad Darji
I have to display the system password character in a DataGridView using DataGridviewTextboxColumn.I want to bind to the password character when I prepare the grid.Dim dc As DataGridViewTextBoxColumndc = New DataGridViewTextBoxColumndc.HeaderText = "Card"dc.Name =...
18 Dec 2009 by Christian Graus
Well, you're wasting a lot of effort on p/invoke when the Process class will do what ShellExceute does. Beyond that, if you told us which bit 'does not run', what the error is, and what you were expecting to see, as opposed to what happens, then we'd be able to answer you. Please edit...
18 Dec 2009 by ariodoni
thanks broder i wrong winsock1 = cmdConnect_Click() :)
20 Dec 2009 by ariodoni
example me projectfind folder by the name of version in hardisk if folder by the name of version found chek file insides folder name version. txt if folder version insides he is there file version. txt rename version. txt by the name of versionold. txt if folder version insides he is...
20 Dec 2009 by Christian Graus
The System.IO namespace has classes like Path, File and Directory which will do everything you want.
20 Dec 2009 by Christian Graus
Private Sub Form_Load()Dim CheckFile1, CheckFile2 As String' Check if folder exists, first.If Dir("c:\version", vbDirectory) = vbNullString ThenExit SubEnd If' Check if file existsCheckFile1 = Dir$("c:\version\version.txt")CheckFile2 = Dir$("c:\version\versionold.txt")If...
21 Dec 2009 by ariodoni
hii bro..,I've installed visual studio express 2008, which it does VB.net?, Because do not know, whether that product microsoft VB.Net also?I beg of rock and the information, because I am still learning.Thanks before ...regard,Doni
23 Dec 2009 by goldykk
How can I convert this VB code to C# code?abc = wb.Document;abc.forms(0).all("login").value = "prtk@yahoo.com"
6 Jan 2010 by rajeshsha18
I am using a dataset to create an Excel spreadsheet. Here is my code.Public Sub excelcheck() Try ' Create the Excel Application object Dim excelApp As New ApplicationClass() ' Create a new Excel Workbook Dim excelWorkbook As...
6 Jan 2010 by rajeshsha18
Yes, you're right; I've edited my exception details into the question.
9 Jan 2010 by Tim Yen
What do you mean by "system password character". Do you mean that when someone types data into the column it must be hidden and look like "*******"?If so you will need to make a custom DataGridColumnStyle classYour class will have to inherit from either the DataGridColumnStyle class...
4 Mar 2010 by Khaniya
I think you are thanking on wrong placethis is question answers pageclick below to thanks Ashish TripathiAccountPlus[^]
21 Apr 2010 by mohsen-6558
I am sending data to my server (MyServer.com) from microcontroller device using socket connection, I want to receive data using Socket and store in access databaseneed a tracker for this workthanks/EDIT MGOk we're looking at (probably) listening on a socket from VB, and capturing UDP...
21 Apr 2010 by mohsen-6558
I use that's but recive only $$http://www.irupload.ir/images/n3pqsw89xkiwdfr07uw.png[^]
22 Apr 2010 by Michel Godfroid
I suppose your microcontroller has a serial connection to the GPRS. Looks like you have an error in baud rate, parity, mode or something. Can you send AT commands to the device?
8 May 2010 by rus204
forecastrss How do I find a string(country name)?I'm looking for right now, but I can not find.seems to be not Yahoo weather Developer Center.
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?
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.
15 May 2010 by DaveyM69
The 'Handles' you refer to are actually events - the methods with the Handles appended are the methods that handle the events.The Load event occurs when a form has finished loading. This means it has been created in memory. Until Show or ShowDialog is called (directly or indirectly) it will...
21 May 2010 by rus204
Imports System.XmlImports System.Xml.XPathPublic Class FormRSS Private mRssUrl As String Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load mRssUrl = String.Empty End Sub Private Sub...
21 May 2010 by Pete O'Hanlon
It's telling you that PostBody is null. I assume it's meant to be an iterator or that the item at PostBody(position) is null - in other words, you haven't created an instance at this position. TryPostBody(position) = New whatever this is meant to represent here.
21 May 2010 by rus204
ToolStrip in the TextBox control, can add a shortcut way to do this?
21 Jun 2010 by William Winner
Here's an alternate: a custom class that is serializable to store all of that in instead of a single string that you'd then have to parse.Or store it all in an XML file. There are plenty of object-oriented ways to go about this that would be much more readable than just storing it all in a...
26 Jun 2010 by rus204
How Can I Record Video?Just in a Desktop Screen.I can found the Webcam Capture Source, But I can't found a Desktop Video Capture Src.Plz Help. :doh:
26 Jun 2010 by Abhinav S
This may be of some help to you.
13 Sep 2010 by tarik tufan
I am using vb 2005.I am trying to upload a file to a server.server name is i.e. MyServer and in d drive there is xdir directory, in that directory there is udir.I have permision in MyServer but there is no share\\MyServer --> permission\\MyServer\d$ --> no...
13 Sep 2010 by MftBros
Ok you are right but there is one problem with sharingthere is about 100 people using this server(MyServer). Everyone has admin priviledges on uDir. So anyone exploring uDir can delete any files as they wish... This is the problem with sharing the folder uDir. We dont need direct access from...
13 Sep 2010 by tarik tufan
No solution? There should be a way doing so!There is persist upload dll working in server...Can i use that dll in order to upload???
26 Sep 2010 by 1234ABCDE2008
Hi,I need to open the .swf file thru web page on platform window CE.I got a .swf file which is saving in window CE mobile device on path: \My Documents\flash\ParallelParking.swf.So when user browse the web page thru the mobile device, I need to open up the .swf file which is save in...
4 Oct 2010 by Edward K. Marois
Dear People:We write a property management program in Visual Foxpro 7.0I down loaded the code from Epson and they only have it in C, C++, Visual Basic and .NET.Public Type MF_BASE01Rem:// Base Section iSize(1 To 4) As Byte iVersion(1 To 4) As Byte iRet(1...
21 Jan 2011 by Rod Kemp
You would have a much better chance of getting an answer to your question if you posted it on the nopCommerce Forums[^] that way the people reading your question will be actual users of the product and possibly even developers of the product.
24 May 2011 by Marc A. Brown
Is there some reason why it has to be converted? Unless you're working in an Express version of Visual Studio, you should be able to mix languages in your project.
24 May 2011 by Sebastian Br.
There are various code-converters in the net. Try this, for example:http://www.developerfusion.com/tools/convert/vb-to-csharp/
22 Nov 2011 by Pete O'Hanlon
At the end of the setvibration line, you don't have a semi colon. You need to add one so that it looks like the following:if (yourmum = buttonState.pressed) setvibration(playerindex.me,1,69); // This line needs the semi colon,.else { redIntensity++; }Next, you terminate the...
14 Apr 2012 by jami mour
i m using Below Code to get returns the physical path and filename of any EXE or DLL running on my windows xp system this code is working on win98 nt and 2000 but it is not working on windows xp.Public Const TH32CS_SNAPPROCESS As Long = 2&Public Const MAX_PATH As Integer = 260Public Type...
15 Apr 2012 by Maciej Los
Go to http://allapi.mentalis.org/apilist/CreateToolhelp32Snapshot.shtml[^] and take a look at example[^].
15 Apr 2012 by jami mour
I am writing a Media Centre Addin in Vb6 and it was all going good until i got to the point where i want to find the "Currently Playing song FilePath or URl"I have spend a number of hours racking my brain to figure out a way of seeing what the "Currently Opened Files" are on a machine at any...
24 Aug 2012 by Sharath2790
I'm developing a small application which involves sql server and vb for the front end. my tables has timestamp as one of the column. when i write query directly on sql timestamp field can be skipped. But when query is written within the vb app. The query returns a error NOT ENOUGH ARGUMENTS...
30 Aug 2012 by Sharath2790
how can i Retrieve date value of last record from a database table and assign it to a variable in vb?? My table has columns like "fact1/fact2/fact3/total/date/timestamp" i'm using sql server as my database..
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!:)
31 Aug 2012 by Devang Vaja
You can also convert date by querysql="select *,Convert(char(10),date),103)As date from tabletemp"this will give u date in 'dmy' format
2 Sep 2012 by Sharath2790
how to check if a value exists in a DB table and return a Boolean value to variable in vb.net??
16 Dec 2012 by sid2x
My question is that how can a VB.NET PROGRAM create exe's ?Suppose in my program i have a button with caption "save as EXE" and when i click thatit saves the form as an executable. I need this for my programming language????Any code for that????You know what's a programming language?...
16 Dec 2012 by Thomas Daniels
Hi,You can use on-the-fly compiling:Compiling .NET code on-the-fly[^]
20 Feb 2013 by virajdaw
How to connect to a drive through a button in vb.net ?I mean, i want to add a button on vb.net form that when pressed, it connects to a removable usb drive like :G then display a message to inform that you are connected to that particular drive.
22 Feb 2013 by Dave Kreskowiak
OK, so you formatted the drive. The question becomes did you do anything else to it, like install an operating system? Did you do more than that??Why an I asking this? Because if you write anything to the drive after you formatted it, you decrease the chances of recovering anything from...
1 Mar 2013 by virajdaw
How to convert contacts info from xml file in vcard format and display the data in vb.net datagridview.egBEGIN:VCARD VERSION:2.1 N:;Mum Orange ;;; FN:Mum Orange TEL;CELL:7670212 END:VCARD
2 Mar 2013 by Maciej Los
Have a look at my previous answers:How to import a V-Card in application mad with vb.Net?[^]Read from vcf file, write to textboxes in a new form..[^]Split is working now to the next step[^]
17 Apr 2013 by pdoxtader
You could use this function:Public Function BusIdExists(ByVal busid As String) As Boolean Dim theTable As DataTable = New DataTable() Dim thisSql As String = "" ' Prepare our select statement thisSql = "SELECT [some_colume_name] FROM [" & yourdatabase...
5 May 2013 by Polarfuze
i wish to check for this format similar to this MH-9940 how do i customize regular expression to check if first 2-3 letters are capital from a-z then there should be hyphen followed by four digits from 0-9link to good explanation about regular expression will also be helpful here is by...
5 May 2013 by Maciej Los
See this pattern:^*([A-Z]{2,3}\-[0-9]{4}).*Tested on Rad Software Regex Designer[^] and this set of records:MH-9940NH-1940AGV-9Az0FG-5940MZ-92X0AHV-9930with IgnorePatternWhiteSpace and Mulitline set to TRUE.Returns:MH-9940NH-1940FG-5940AHV-9930Is that what...
13 May 2013 by Keex0r
If I understand the question correctly I guess he already created the buttons in the designer. In this case you can change the text property of each button with the following code: Dim ButtonCount As Integer = 1 For Each c As Control In Me.Controls If TypeOf c...
15 May 2013 by Thomas Daniels
Hi,To split the string, use the String.Split method:String.Split Method[^]To check whether the parts are equal, use an If...Then...Else statement:http://msdn.microsoft.com/en-us/library/752y8abs.aspx[^]Dim twoParts As String() = someStr.Split("-"C)If twoParts(0) = twoParts(1)...
16 May 2013 by Polarfuze
i am comparing the the image i stored in button.image with image from my resources folder i am getting error "Operator '=' is not defined for types 'System.Drawing.Image' and 'Object'" the images are .bmp format of plain color greenWhat method should i use to compare the 2 images to...
25 Sep 2013 by Member 10258508
hi I am making sms software in vb6 wich work as windows service.my sms system is install more than 30 pcs in different locations.everything works fine but my problem is if user reinstall windows my sms software definately removed. i have a batch file which create SMsService.exe service ....
25 Sep 2013 by Prince Tegaton
No. Else, Make your own version of Windows
6 Oct 2013 by Aydin Homay
HiIf your network has a Active Directory you can use it this facilities follow of...
2 Oct 2013 by Member 10311805
in Design mode I created a datagridView using a dataset.I added a query to create a stored procedue and defined @name as the parameter parameter.I alsso created a button with inputbox calling for the name.I dont find the right way to include the parameter Aprechiate helpThanks Dov
2 Dec 2013 by storm6
Hi,every oneI have found lots of solution on this website for that I am very thankfull to you all who helps me and resolve my problems.Today I am talking about Plugins.I am recently working on web browser plugin.I want to link with the firefox flash plugin.which may managed by...
19 Jan 2014 by Unpalis
Hi EveryOneTwo Days Ago I Downloaded many class libraries among them one from this website.NET random number generators and distributions[^]and i managed to add it to Visual Studio 2013But the thing is none of functions are working for example the function IsValidAlpha...
30 Apr 2015 by Karthik_Mahalingam
1) Create a strongly typed classpublic class ProfileEntity { public string FirstName { get; set; } public string LastName { get; set; } public string Address { get; set; }// add all the properties }2) create a new list of the ProfileEntity class as...
13 May 2015 by Member 10772496
Hello,I want to transfer into a C ++ structure via a DLL , the content of a VB structure (UTD).My VB code is as follows :Private Declare Function Cpp_TEST1 Lib "C:\Users\\TEST1.dll" (ByRef iStruct As myStruct) As DoubleType myStruct n As Long data() As Long rData...
13 May 2015 by Maciej Los
Depending on Option Base[^] statement, lower bound of arrays start from 0 (zero) or 1(one). If you do not use this statement, array must starts from 0. I'd suggest to read this article Arrays in VB[^] which might help you to understand how to declare and initilize arrays.ReDim Preserve...
9 Jul 2016 by Dave Kreskowiak
This requires writing a Remote Display Driver[^].I hope you're into C and debugging kernel drivers because you're not going to be writing this in VB/VB.NET.
2 Aug 2016 by ProgrammingEnthusiast
i have created an application that runs in background. when i minimize it, it will appear on the task bar. it is working fine, but when i turn off my computer, windows says that my application is blocking the shut down process. how do i close my application when i shut down my computer? i...
2 Aug 2016 by ProgrammingEnthusiast
i have already resolved it by adding this code during form_closing event of my main form.If e.CloseReason = CloseReason.WindowsShutDown Then Me.Dispose