20,899 Topics
![]() | |
For i = 1 To ListBox1.Items.Count - 1 cstr1 = ListBox1.Text strqry1 = "insert into trans(pid) values('" & cstr1 & "')" MessageBox.Show(strqry1) If ListBox1.GetSelected(i) = True Then cmd.CommandText = strqry1 cmd.ExecuteNonQuery() End If Next MessageBox.Show("Records added") the above code is for inserting multiple records frm listbox to table but ony … | |
i want to create subdirectory on the server.But unable to create there. ---------------------------------------------------------------------------------------------------------------------------------------------------- Shared Sub main2(ByVal zipdir, ByVal systemname) 'FTP creadentials' Dim servertemp As String = "ftp://hydhtc25116" Dim username As String = "hydhtc25116\root" Dim password As String = "infy@123" Dim host As String = servertemp 'Renaming the zip file as … | |
i am using ozeki sms server to send/receive SMS. currently, when i receive SMSes, they will be inserted into this messagein table (microsoft sql server) altogether. however, i wish to implement it this way: user A sends message to #1: hello [TO REPLY: user A <SPACE> <MESSAGE>] #1 replies user … | |
Hi programmers.. I would like to know how to masking our phone number identity when we're about to send sms through PC in an SMS gateway project. I'm a begineer, doing my last project , it will help me so much if anyone could tell me how to do it..^^ … | |
Is it possible to retrive weather data for a postcode in the uk? does any one know any code to do this? | |
Hi, I would like to know if it is possible to use SQL Server reporting services in vb.net 2005 as my application is not web-based so I cannot use ASP.net. I have searched the internet for tutorials but I can't find anything that describes how to use vb.net instead of … | |
I recently searched google for a code snippet for creating a ftp uploader and i found this code-> [code]Dim ftp As New Chilkat.Ftp2() Dim success As Boolean ' Any string unlocks the component for the 1st 30-days. success = ftp.UnlockComponent("Anything for 30-day trial") If (success <> true) Then MsgBox(ftp.LastErrorText) Exit … | |
[url]http://www.microsoft.com/downloads/d...DisplayLang=en[/url] u have passed me this link to have a program that is used to control the serial port. But.. this program doesn't works on vb.net 2005 version.. there are 4 errors. can u solve this problem..... and tell me, which file to be executed? and how? | |
I have a vb applicaton that I'm doing some reverse engineering to fix an error that a task is scheduled to run everyday, which runs fine! The error is a System.applicationexception. In the error message it displays the location where the file is located, in the C:\document and setting\...etc folder, … | |
Hi guys, Thanks for the effort you've made in answering my last post and I hope you'll help me out again. I did develop a program in vb6 and vb.net and lost the source code. However I did compile the two programs one in vb6 and the other vb.net and … | |
Hi there. I just joined this forum today. I've been working in a software company developing in vb for the last 4 years. We're moving into vb.net shortly. I hope I can help with any info I have in my head box and hope that people out there can help … | |
I'm creating a project right now which is entitle Agenda Management System. I want to log in to server with a flexible connection. I was able to code my server connection but my other forms which contain the saving, updating and deleting command was only working to the computer which … | |
hi All! I am developing a wesite for generating reports in vb.net. I m stuck with the graphical reports. can any one give me code for displaying the reports in graphical pattern | |
Hi i am trying to write a program in vb.net that will display text sequentially one word at a time in the centre of the screen. I have managed to split file into words but i am just stuck here lacking knowledge how to program the rest. I would appreciate … | |
Hi, I'm new in Visual Basic. Here's a few questions: 1. What is the difference between VB and VB.net 2. Any good ebook you guys recommend for VB and VB.net?? (I've learned Perl, C++ and Java) 3. If I want to learn VB.net do i need to learn ASP.net first? … | |
i have written a code for storing the data in MS Access 2003,but i didn't see the data in the database,can anyone help me plz. | |
Hi I'm using MS Visual Basic 2005 Express Edition and need to open an Excel File. I'm using the following code [code] Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim xlTemp As Excel.Application xlTemp = New Excel.Application xlTemp.Workbooks.Open("C:\Documents and Settings\TAP\Desktop\Post\Test.xls") End Sub … | |
I am exporting data to excel but inserting rows is very slow about 2 seconds per row, the line of code I used sucsessfully in VS 2003 was "oSheet.Rows(oRow + 1).Insert()". I am now using VS 2008 to excell 2007 and as well as the previous code I have tried … | |
Hi, Is it possible to have gridview records being deleted after a specific period of time automatically? I'm doing a project that requires login fuction & when the user login, login history will be saved. And I want my program to be like if 2 weeks later & the same … | |
hi, I open a Existing excel sheet and do something and then want to close this excel sheet and open a new excel sheet and work on it. Code:manip.vb OpenFileDialog1.Filter = "Excel files (*.xls)|*.xls" If OpenFileDialog1.ShowDialog() = Windows.Forms.DialogResult.OK Then ExcelDoc = New ExcelEx(OpenFileDialog1.FileName) Else Exit Sub End If ExcelDoc.close() GC.Collect() … | |
hi, I open a Existing excel sheet and do something and then want to close this excel sheet and open a new excel sheet and work on it. Code:manip.vb OpenFileDialog1.Filter = "Excel files (*.xls)|*.xls" If OpenFileDialog1.ShowDialog() = Windows.Forms.DialogResult.OK Then ExcelDoc = New ExcelEx(OpenFileDialog1.FileName) Else Exit Sub End If ExcelDoc.close() GC.Collect() … | |
Hi, I would like to ask if I have a gridview. And I want the records to be deleted after 20 records automatically & all the 20 records will be gone after I've added in the 21st record in. How do I do so? Thanks a lot. | |
[TEX]Hi everyone!!! I'm new to programming in vb.net and have just created my first game. I need help in being able to use midi files in it but having trouble because I always get an exception error of some sort. Is there something that needs to be done in my … | |
I am getting errors when trying to compile the following code. [CODE]Public Class frmMyFirst Private Sub frmMyFirst_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Click Dim strName As String strName = InputBox("Enter your name and click OK.") lblHello.Text = "Hello " & strName & "." End Sub Private Sub … | |
Hey Guys, I'm sort of new to coding in .net and I want to write a Sudoku assister for practice. I would like to display values that are still available for each box that does not have an entered number. One way to do this would be to have 81 … | |
any one has read a book named visual basic for dummies 2005 | |
Hi All - I would like to update extensionAttributeX of a user account based on Excel sheet. Any idea how to use the SELECT command with INNER JOIN option or other technique ? Thanks... | |
Guys Im not sure If I should post this in this forum but anyways If it shouldnt be here please pardon me I have a problem here, I have to design and develop a software for Clothing company which sells clothes, either use account, cash, credit exchange, returns and so … | |
Hi, i juz wanted to know how to write this following codings in app.config. In ASP.Net in web.config: [Code]<configuration> <appSettings> <add key = "stu" value = "database = Gred; trusted_connection = yes; server = (local)"> </appSettings> </configuration>[/COde] N in codings part: [COde]Imports System.Data.SqlConnection Dim con As New SqlConnection (ConfigurationSetting.AppSettings("stu"))[/COde] Now … | |
hi...im trying to summarize a number of excel workbooks into a single workbook for analysis. I am having problems with selecting specific cells. The select statement is not working. Is there anyway by which cells from different excel workbooks can be merged into a single workbook? | |
hi to all ! i have create one project in .net(c#,asp,vb.net) from windows os. can i exccute this project in mac os? | |
Hi, This is one great article. Actually the best I have seen yet. I just have one issue if I may raise it here. I am not sure whether it should be on a spearate thread but if this is not the correct place please move it to wherever you … | |
I have the code for transferring data from the datagridview to the excel spreadhseet.. my datagridview has colored data in it and I want the excel spreadsheet also to have the colored data. i get the error "property access must assign to the property or use its value vb.net error" … | |
im trying to upload a file [code]My.Computer.Network.UploadFile("C:\hello.txt", "http://www.google.co.uk/", "", "", True, 1000, FileIO.UICancelOption.DoNothing)[/code] and i get a 501 Not Implemented error does this mean the upload address is not allowed? if so does anyone know any websites were you are allowed to upload files | |
How to open multiple sites by using vb.net When we click on a button multiple sites are open in Mozilla or internet explore in tab ....... i have tried this System.Diagnostics.Process.start(webiste name) but it open only one site at a time.......if we write this line two time on click event … | |
Ive made a ping program to tell me when my friend is online [code]Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick 'The code for person1 If My.Computer.Network.Ping("***ipaddress***", 1000) Then Label2.Text = "Online" Else Label2.Text = "Offline" End If 'the code for person2 If My.Computer.Network.Ping("***ipaddress***", 1000) Then … | |
Does anyone know if you can use the My.Computer.Network.UploadFile to upload a text file to a folder on another persons computer? | |
I am trying to open an excel spreadsheet using vb.net. The data has to be fetched from a datagridview.. the datagridview has colored data in it and i want it to appear colored on excel spreadsheet too.. How do i get it colored ? [CODE] Private Sub Button4_Click(ByVal sender As … | |
Hi I am looking fro some real world examples of Agile project in particular MSF 4.0 for development methodology combined with Scrums for management. Background Currently our company uses the water fall model, but new developments I believe are better suited to Agile. To this end I am trailing out … | |
Hi! I'm writing an application in VB.NET for drawing. The problem is, that when I try to draw in freehand, it allows me to draw one thing, then when I lift my mouse and go to draw another thing, i get an Out of Memory Exception. Any help would really … | |
Hi all! I am trying to connect to a remote MySQL database. This database is located on my LAN at the address 192.168.1.2. I am using MySQL Connector/ODBC 3.51 (MyODBC 3.51) for the connection. The connection string that I am using is the following- Driver={MySQL ODBC 3.51 Driver};Server=192.168.1.2;Database=mydb;User=root; Password=;Option=3; The … | |
Hi. I am using Visual Studio 2008, and Sql Server 2000, and I have the following code: [CODE] 'Load connection module connection() cmd = con.CreateCommand cmd.CommandText = "SELECT * FROM tblUser WHERE username = 'xxx' " da.SelectCommand = cmd da.Fill(ds, "tblUser") dt = ds.Tables("tblUser") MsgBox(dt.Rows.Count) [/CODE] I don't know why … | |
Suppose mine textfile contains the foll. records-- Sunday, July 13, 20086:29:55 PM^^1^^ritu Sunday, July 13, 20086:29:55 PM^^2^^ritu Sunday, July 13, 20086:29:55 PM^^3^^ritu Sunday, July 13, 20086:29:55 PM^^4^^ritu Sunday, July 13, 20086:29:55 PM^^5^^ritu Ion Form_Load,I want that in Combobox only date is picked. My code is as follows- Private Sub Form1_Load(ByVal … | |
can someone please help me in making a bank simulation program in vb.net does somebody know any links where in i can see sample bank simulation programs??? | |
Ok, first of all this is the first time I've used the forums on this site cos only recently joined. I've been studying computing at college for about 5 years and graduated from Sunderland Uni in 2006. Throughout the time I was at college the programming languages we were studying … | |
hello friends, can anybody gave a snippet for reading data from my sound card (ie linein, microphone ......) i am using soundmax integrated audio controler(analog systems) . i am not experianced in Direct sound so the code using mm api with in the os is more welcome. | |
Hi, I am using FileUploadCotrol to offer browse and to get FileBytes from client side. I use this store the content as base64 string in database. I am trying to store the original file date also in the database. So far I have not found a way to retrieve the … | |
I've gotten a share setup by using this: [CODE=vbnet] Dim objWMI As Object = GetObject("winmgmts:\\localhost\root\cimv2") Dim objShare As Object = objWMI.Get("Win32_Share") intRC = objShare.Create(strPath, strName & "$", intType, intMaxAllowed, strDescr) '$ added to share name to make share "hidden" [/CODE] But, the share from above allows users to read and … | |
I am very new to VB.NET What is a good desk reference book for applying VB.NET to AutoCAD 2008? | |
I have a class named Account so I have a question. In the declarations of a new instance Dim Newaccount as Account -----but I can declare this like.. Dim Newaccount As Account = New Account which are the differences between both declarations?? are the same or not? excuse me english... … |
The End.