Click here to Skip to main content
15,890,282 members
Everything / Programming Languages / Visual Basic 10

Visual Basic 10

VB10

Great Reads

by CS Rocks
This is a slideshow that works in a Silverlight 3 UserControl.
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 Mr. xieguigang 谢桂纲
Mathematical method of S-system equation to simulate a biochemical network system

Latest Articles

by Robert Gustafson
I've created an enhanced version of the Extended RichTextBox created by Razi Syed.
by Doug- VisualBasic VB.NET
A quick Function to get UTC / NTP time
by Richard Atkins
Create a fluid, multi-column, vertically ordered list using nested, floating divs
by Alexandros Pappas
Example of a self hosted WCF service over HTTPS with transaction

All Articles

Sort by Updated

Visual Basic 10 

11 Jan 2010 by #realJSOP
Well, looks like the currently logged in user doesn't have rights to modify the registry. What's the question?
11 Jan 2010 by #realJSOP
I dunno. I've never heard of "REALbasic".
25 Aug 2010 by #realJSOP
To make the game more interesting, you should provide somethig to keep them from trying to count the seconds, and THEN ask them to guess how many seconds:- Solve an anagram- Perform a simple math calculation- Arrange playing cards in the correct order- Provide parts for a robot and...
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.
9 Aug 2011 by #realJSOP
Just get the value of the href attribute inside that element, and navigate to it.
8 Sep 2011 by #realJSOP
How can translate this into VB2010??Manually.
2 Dec 2016 by $*Developer - Vaibhav*$
C# ADO.NET SqlCommand - ExecuteNonQuery[^]
17 Jul 2014 by -Dr_X-
Maybe something like this.Dim http As HttpWebRequest = CType(WebRequest.Create("http://www.nerldc.org/Default.aspx", HttpWebRequest)http.Timeout = 10000 ' 10 secshttp.UserAgent = "NERLDC"Dim hwr As HttpWebResponse = CType(http.GetResponse, HttpWebResponse)Dim enc As Encoding =...
25 Nov 2011 by _Damian S_
Couple of things... are you populating your checked listbox first? If so, remember that your index is zero based, ie: it goes from 0 to n-1 where n is the number of items in your list.Also, there's no need for you to set the value of selectedIndex1 to CheckedListBox1.SelectedIndex, as you...
9 Sep 2011 by a_pess
Turn an image to a ColorPicker.
5 May 2013 by Aarti Meswania
visit link...http://www.daniweb.com/software-development/visual-basic-4-5-6/threads/280300/code-for-receiving-sms-on-pc-using-at-coomand-and-in-vb6[^]Happy Coding!:)
26 Jun 2010 by Abhinav S
This may be of some help to you.
26 May 2011 by Abhinav S
See http://msdn.microsoft.com/en-us/library/ms160064.aspx[^].As per this link "Minimum and maximum timeout values are enforced by the operating system and are typically 10 and 30 seconds, respectively, however this can vary depending on the operating system. Timeout values that are too large...
23 Jul 2011 by Abhinav S
You can create a setup / deployment file that can include all these files.See this[^] for more information.
20 Sep 2011 by Abhinav S
Seehttp://www.homeandlearn.co.uk/net/nets8p4.html[^]http://msdn.microsoft.com/en-us/library/6ka1wd3w.aspx#Y0[^]http://www.techrepublic.com/article/read-and-write-text-files-with-visual-basic-net/1045309[^]
26 Oct 2011 by Abhinav S
As suggested there are a number of tools available.But none of them do a complete job - so you will need to do some of the conversion yoruself as well.
1 Nov 2011 by Abhinav S
You can always do a search on the internet. Here are some links that I came across - http://www.vbtutor.net/vb2008/vb2008_lesson18.html[^]http://www.homeandlearn.co.uk/net/nets4p15.html[^]Another useful site for this type of question is msdn[^].
2 Nov 2011 by Abhinav S
tr="select * from table" &_"where code=1 " &_"order by code " With & and _ together you can do this easily.
4 Dec 2011 by Abhinav S
Concatenate the \n character to the end of your string line breaks.
24 Feb 2012 by Abhinav S
TryMyDownloa...
26 Mar 2012 by Abhinav S
Yes, so long as you've added the right namespace - check here[^].
3 Jan 2016 by Abhinav S
Your codeFor i As Integer = 1 To 4txtRegion_ID.Text = ds.Tables(0).Rows(i).Item(0).ToStringtxtRegion_Name.Text = ds.Tables(0).Rows(i).Item(1).ToStringNextis running on every record.Step out after the second record and you will have only the second record displayed.For i As...
7 Jun 2012 by abhinavvijay
http://stackoverflow.com/questions/10731934/why-html-web-ui-response-slower-than-winforms-native-ui[^]
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.
22 Jan 2016 by abougaa
I'm having problems trying to find an instance of Form2 by his form.text, from Form1:Code of Form1 is:Public Class Form1 Dim nombform As String Public forma As Form2 = Nothing Private Sub ListView1_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs)...
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..
16 Jul 2011 by adadero
I'm learning to use crystal report in my project. When I move my project folder to another folder the report can't load the "new data" inserted into database. My original project folder is D:\Learning\ and when I copied to D:\Deploy\Learning\ the report can't load the new data. Please, help me...
26 Oct 2011 by adadero
I have a very simple question regarding to .Net Sockets. What are differences between Class Socket and Class TcpClient or TcpListener in System.Net.Sockets namespace. Please, could you give me a link how to learn these? I'm looking for the tutorial everywhere and only finding console tutorial. I...
6 Dec 2012 by Adam R Harris
take a look at this thread:http://social.msdn.microsoft.com/Forums/en-US/netfxnetcom/thread/1a3cca15-c307-4cc6-b5f5-bf3744960b6f/[^]
27 Dec 2012 by Adam R Harris
Put a new timer on your form, set the interval to 1000 (1 second). Them on the Elapsed (or Tick i can never remember) event update your textbox. When your process starts call Start on the Timer and when its done call Stop on your timer.*** EDIT *****Oh yea, if you are running long...
24 Jun 2009 by AdamNThompson
This class sorts objects using Generics and LINQ Lambda Expressions.
21 Oct 2014 by adimdinata
activate the timer set timer enable=trueand timer interval 1000
21 Mar 2013 by adrian@csdev
Copy and replace this where you have your while callWhile reader.Read() Dim nItem As New ListViewItem = ListView2.Items.Add(reader.item(0).tostring) nItem.Subitems.add(reader.item(1).tostring) nItem.Subitems.add(reader.item(2).tostring) ...
22 Mar 2013 by adrian@csdev
Replace your hole su code for loading the data into the list with thisSub listView2load() Me.ListView2.View = View.Details Me.ListView2.GridLines = True Dim conn As New SqlConnection("Data Source=localhost;Initial Catalog=Fleet Maintainance;Integrated...
18 Sep 2021 by AdvenSQL
Plz Help I am using visual studio 2017, sql server 2016 I need to fill listview2(Containing Sub Departments) with checkboxes, based on another listview1 checked items & when I select an item in listview1 its all sub departments from Sql server...
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
5 Jun 2012 by Afelete123
Hi,Need some help on this problem that have bedevil my work for the late two days.I'm developing an application using the EF 4.3 w/ DbContext DbSet, created three entities Taxpayer TaxType and EconomicActivitythere are one-to many relationships betwwen Taxpayer TaxType on the one hand and...
6 Jun 2012 by Afelete123
With the help of info from other forum I was able to sort the issue out. the problem is because the default navigation property in EF 4.3 DbContext is HashSet instead of ObservableListSource and thus it is set the new List Information for the solution is thank to the Guest from the link...
12 Jul 2016 by Afzaal Ahmad Zeeshan
For your case, you can see if there is a record with 112 as a value before adding 112 as column value in a new record. SELECT Barcode WHERE Barcode = 112This would do the trick. You can pass the 112 as a parameter (but that is a different story). Otherwise, in my own recommendation it is...
12 Mar 2013 by agioshacker
hi...1) how can i set the x point and the y point of the mouse at the desctop? (not in the form...!)2) how can i click at the point that i have set?your help will be very useful for me!!! thanks in advance!!! :)
16 Feb 2011 by AHSAN111
Try the following steps:1. generate the proxy class using wsdl.exe tool2. edit the resulting vb or cs file and change the lineInherits System.Web.Services.Protocols.SoapHttpClientProtoc oltoInherits Microsoft.Web.Services2.WebServicesClientProtocol3. to compile the proxy class...
15 Aug 2013 by Akbar Ali Hussain
There are two issues in your code. Following are the solutions.1. Use CellValueChanged event 2. Call DataGridView.InvalidateCell() method after changing the total cell. Otherwise you cant see the change immediately. dgdTax.InvalidateCell(dgdTax(1, 4))
10 Jun 2015 by Akbar Giffary
here my code :'for clear the date value Sub clear() dtpDOJ.Text = " "End sub'for return value to datetime picker when datagridview is clicked Private Sub dgvdatakaryawan_CellContentClick(ByVal sender As System.Object, ByVal e As...
10 Sep 2017 by Akbar Giffary
hi, i want to test/check when cells in data gridview is empty and when clicked it shows label like "there's a empty data in cell", thanks before If dgvdatakaryawan.Item(e.ColumnIndex, e.RowIndex).Value.ToString.Length = Nothing Then lblKET.Visible = True Else ...
18 Jun 2015 by Akbar Giffary
hi all, i have an annoying problem here..i want to delete selecting rows on my datagridview with connect to excel, but it show message like this "deleting data in a linked table is not supported by this ISAM", any sugestion, help me pleasehere my code :'for connectDim connstring =...
21 Jun 2015 by Akbar Giffary
Try Dim Access As String = "|datadirectory|\datakaryawan.mdb" Dim Excel As String = "|datadirectory|\datakaryawanall.xls" Dim connect As String = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & Excel & _ ";Extended Properties=Excel 12.0;" ...
29 Jun 2015 by Akbar Giffary
NIK |Tanggal |Nama |Jabatan| Dept |Mulai | Sampai | SM |Selisih | Waktu |2222|6/10/2015| akbar | eee | poo | 9:59AM|10:59AM |60mnt |0 mnt | 480mnt|123 |6/10/2015| ahaha |wakwak | ssp |8:04 AM|11:04AM |180mnt |120mnt | 60mnt |5555|6/10/2015| hhhh |oooo |LLLL |11:04AM|3:04 PM...
27 Jul 2015 by Akbar Giffary
Case ("3. Surat Tugas")Dim path As String = System.IO.Path.GetDirectoryName(Application.ExecutablePath) & "\LETTER\SURAT TUGAS.docx\"System.Diagnostics.Process.Start("explorer.exe", path)hi all, this is code what i've done before, it's works fine if the program installed on my local...
22 Oct 2014 by aKwarteng
I want to write a program in C# or VB to monitor TCP/IP connection made by applications on my windows computer and to know the connections parameters as well. Can anyone help on how to implement something like that..???Thanks
16 Aug 2011 by Alan N
The class style can be modified after window creation via the Windows API functions Get/SetClassLong (or Get/SetClassLongPtr for 64 bit compatibility).Private Const GCL_STYLE As Integer = -26Private Const CS_NOCLOSE As Integer = &H200
18 May 2012 by Alan N
You can use utilise the Format event of the listbox to do pretty much anything to the values in the items collection. Just use System.IO.Path.GetFileName to trim the displayed value back to the filename only.e.g.public Form1() { InitializeComponent(); ...
5 Aug 2012 by Alan N
I think what you have is far more complex than it needs to be. Forms have a protected property MaximizedBounds, which allows setting of the size and screen position of the maximised form. In use one would simply specify the bounding rectangle of the maximized form, probably in the constructor....
26 Mar 2013 by Alan N
You must have autoStart = true if playback starts as soon as a filename is assigned. A technique for starting multiple players which seems to work (I'll claim nothing more than that) is 1) Start a player2) Wait until the playing state is achieved3) Repeat 1 and 2 for other players4)...
7 Dec 2012 by Albandsan
Hi everyone,First of all I would like to thank you for the great articles we can find on this web site!Well, I'm having a problem with the filter method of the binding source.My idea is to use a combo box to select the column where the filter method is going to look for the text...
8 Dec 2012 by Albandsan
It works! Thank you KrunalI've combined the "Combobox1.selectedvalue.tostring" with the "if then" statement to handle every item in my combobox1 collection and also the posibility of it being nothing.Here is what I did:Quote: Private Sub TextBox12_TextChanged(ByVal sender As...
16 Mar 2015 by Alberth Ajah
I am new to vb.net and I am trying to use a datetime picker in my form.While inserting date to the sql server in datetime column I am getting an error stating it cannot convert the string to date.please help me with the right code. Here is the code I am using.Private Sub...
28 Feb 2011 by Albin Abel
Hi,First you need to decide you want to use an existing mapping platform (Google maps, ESRI maps or OpenSource GIS) or want to create your own.Second thing how you are having your nautical chart. Is it a vector data or an image( scanned image). If it is vector data in what coordinate...
5 Mar 2011 by Albin Abel
Hi If you want to set the datasource property then it has to be done on the user control design itself. Not while using.But you can assign it during runtime. Have a public function/property in the user control which helps set the datasource. That you can use from any hosting container...
27 May 2019 by Alexandros Pappas
Example of a self hosted WCF service over HTTPS with transaction
5 Mar 2011 by Ali Al Omairi(Abu AlHassan)
i think you need to use a ControlDesigner.Goodd Luck;
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...
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.
23 Dec 2011 by Amir Mahfoozi
As I understand your question : Open your VS2010.Click View > Architecture Explorer Then click the first button in opened toolbar whose hint is : "Create a new graph document from all ..."Right click on newly opened document and click on View DGMLYou will see the DGML.Add this...
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?
19 Mar 2023 by Amitkumaryadava
Hello Great Minds ! I have Difficulties to read text where notepad have large data and strings character like ---- and ... The Data i Want to read data in datagrid Like Below Village Grower Mobile Aadhar 50305 ...
14 May 2013 by Amy Adams
I have the following code in VB6. How can I re-write this in Visual Studios 2012? As it is written below, I get the following error message: "Arrays declared as structure members cannot be declared with an initial size. "I've seen possible alternatives to how this should be written...
28 May 2012 by Andreas Gieriet
How about dynamic?If you are willing to pay the run-time cost, and if you are willing to give up on compile-time type check, dynamic could help.C# really lacks generics specialization and (especially if run-time performance matters) compile-time elaboration of generics.In C++ you can...
29 May 2012 by Andreas Gieriet
As a followup to solution #4: if you don't have the dynamic feature at hand (VB.Net, .Net version before 4.0), you may employ casts (see the As(...) method): [AttributeUsage(AttributeTargets.Class)] public class MyAttrAttribute : Attribute { private object _arg; ...
1 Nov 2011 by André Kraak
Go through the result of this Google[^] search.Visual Basic 2008 Tutorial - Lesson 18: Using Radio Button[^] looks promissing.
23 Nov 2012 by André Kraak
I found this on MSDN:Quote: Scope in Visual Basic[^]Even if the scope of a variable is limited to a block, its lifetime is still that of the entire procedure. If you enter the block more than once during the procedure, each block variable retains its previous value. To avoid unexpected results...
8 Mar 2016 by Andy Lanng
The hard-coded reference must be the problem:Dim row As String() = New String() {cell(0).Value, cell(1).Value, cell(2).Value}You need to know how to handle errors. Either go through each item in a for[each] loop or check the the cell array contains that many items.You will find that...
20 Sep 2011 by anjankant
Hello,Could you pls suggest me that how we can write in text file in asp.net (C#, vb.net).That would be simple to implement and result oriented.Thanks!
31 Jul 2012 by Ankit_Guru
I couldn't open the listed address, but as much as i could get from it is.The parent of the object in HTML is still left out so instead of working only on the object try removing the entire "div" or "span" enclosing the video object.
25 Nov 2012 by Ankit_Guru
you can useString.SubStr() function.Or do you want ellipsis (...) like monday-> mon…please provide more details..
10 Jun 2010 by Anshul R
Converts a given decimal number to fraction
10 Jun 2010 by Anshul R
A class for N-Digit Arithmetic
10 Jun 2010 by Anshul R
Shortcut for Commenting
10 Jun 2010 by Anshul R
The Perfect Translation/Conversion of Code
21 Jun 2010 by Anshul R
Saving a form's settings
24 May 2011 by Anshul R
Handle code redundancy for many controls in one subroutine
25 May 2011 by Anshul R
Set the Opacity to be 0 to hide it (in the designer mode or set it dynamically). To show the form, set it back to 100.Initially set the Visible property of NotifyIcon to be False and when you change the opacity back to 100, set its visibility to True again.
21 May 2011 by Anthony Bond
Below is what I have for counting vowels in a sentence how do I get it to count the number of words in the sentence? After I get the total word count I need a message box to show the count then reverse the sentence and put it in backwards into the text box.Public Function...
13 May 2013 by Archana K
Try this...........public class form Dim ssavepath1 As String = "\photo"Private Function convertPicBoxImageToByte(ByVal pbImage As System.Windows.Forms.PictureBox) As Byte() Dim ms As New System.IO.MemoryStream() Try pbImage.Image.Save(ms,...
5 Mar 2018 by Arend Jan
I have a user control with a datagridview to show an address list in a popup, that the user can choose from.I followed a Microsoft MSDN example. However, when I drag the built usercontrol onto a form, the DataSource property in the property grid of the control remains grayed out. Thus I can't...
7 Nov 2013 by ArnelMangampo
Mabuhay! Code Project Team!I need help regarding Customer Queuing System similar to a bank queuing system (FIFO). I already have the working code, i have used the generic queue class in vb 2010 and its working so far on a single machine and a LED TV for displaying the customer queue....
18 Jun 2013 by arnoldxx
hello guys.. i wondering is there any wrong with my code since i try to run it just now and noting happencode of arduinoconst int threhold = 100;int sensorReading;int irs=0;void setup(){ pinMode(irs, INPUT);Serial.begin(9600);}void loop(){ sensorReading =...
7 Nov 2011 by Ashok19r91d
Hi Everybody,I'm Developing a Application for a Land Promoters (With Visual Basic .Net 2010 as Frontend and SQL Server 2008 R2 as Backend), and Now I'm in Need to Integrate SMS facility in my Software,I Decide to Use Nokia Phone's support for SMS, I've Download PC Connectivit API 3.2...
7 Nov 2011 by Ashok19r91d
Replace your code ah follows, WebBrowser1.Navigate(DataGridView1.Rows(DataGridView1.CurrentRowIndex).Cells(6).value)
7 Nov 2011 by Ashok19r91d
Searcher of Google means? I can't understand Can you tell in other words. . .
7 Nov 2011 by Ashok19r91d
What you mean? Splitting results in multiple pages or Dynamic search like google instant or any other?
23 Nov 2011 by Ashok19r91d
Hello Programmers, I'm Having Trouble in Using Select Query With Where Statement in Vb.Net 2010.Here is My CodeImports System.Data.OleDbModule MyMod1 Public Cn As New OleDbConnection Public Cmd As New OleDbCommand Public Rs As OleDbDataReader Function...
29 Nov 2012 by Ashok19r91d
It's a Better way to go through Grids other than Textbox Creating Array of Textboxes is no more Supported by Visual Studio .Net...Let your Column Names be "Sl.No", "Item Name", "Rate", "Qty", "Price" in your DB.Add an DataGridView Control in WindowsForm Formally Called as FormIn Code...
21 Dec 2012 by Ashok19r91d
If you Plan to Export Report in PDF Format than Ignore this Error, If not remember that, Overlapping is not Supported for Other Rendering Methods...
30 Dec 2012 by Ashok19r91d
Place TextBox or LabelBox, or DataGridView in Your 3rd FormHere i've Write Code to Display Details from Form1 and From2 to TextBox(s) in Form3...txtFristName.Text = Form1.txtFirstName.TextWrite Similar Code for all Fields,If this answer not you Looking for? Just Improve your...