20,899 Topics

Member Avatar for
Member Avatar for riahc3

Hey I want to control a textbox to only allow numbers, backspace and a certain length. Ive tried with the IsNumeric function but I cant seem to get it to work. Thanks.

Member Avatar for princenathan
0
4K
Member Avatar for Rock_IT

im a beginner wid vb .net and need to clear the air wid connecting a database file created on sql server 2008r2 wid vb.net 2008 for a project..plz nebody help from scratch regardng retriving,insertng n modifyng data using vb.net code..awaiting....

Member Avatar for princenathan
0
223
Member Avatar for 432

How i can; Get a image from webcam with a sub or Function i dont want dll or anything just a sub or function. Thanks now

Member Avatar for princenathan
0
277
Member Avatar for Warl30ck

So I made a script to upload a file : [CODE]<html> <body> <form enctype="multipart/form-data" method="post"> <input type="hidden" name="MAX_FILE_SIZE" value="1000000" /> Choose a file to upload: <input name="uploaded_file" type="file" /> <input type="submit" value="Upload" /> </form> <?php include 'global.php'; //Check that we have a file if((!empty($_FILES["uploaded_file"])) && ($_FILES['uploaded_file']['error'] == 0)) { //Check …

0
105
Member Avatar for skran

Hi all! I m trying to filter a datagridview (connected to sql server). I have used if statements in order to take all the possible combination but now I have 8 textboxes into which the user should insert values and filter the datagridview.. it is too complex.. I have asked …

Member Avatar for M.Waqas Aslam
0
418
Member Avatar for skran

Hi all I m trying to filter a sql db with many filter criteria which inert the user in textboxes .. i ve tryed this query [CODE]query = "Select * from T_INCIDENTS1 where IFF (txtPostcode.text is notNull) then Incident_Postcode='" & txtPostcode.Text & "') and iff (txtDMA.text is notNull) then Incident_DMA='" …

Member Avatar for skran
0
229
Member Avatar for GTTravis

Hi Guys, I am having a little programming jam at the moment. i have a datagridview set up whenever the user selects a row i am able to capture the necessary details but what i really want is the next row providing that the user selects the previous row. example …

Member Avatar for M.Waqas Aslam
0
80
Member Avatar for Wolxhound90

Hey all, I'm trying to show some concatenated data in a CheckedListBox so that users are able to select the data for use later on. Here is the code I am using currently: [CODE]Dim con As New MySqlConnection Dim theQuery As New MySqlCommand Dim theTables As New DataTable Dim theAdapter …

Member Avatar for Wolxhound90
0
257
Member Avatar for Kalle21

[CODE]Option Explicit On Option Strict On Public Class workschedule Public Sub Start() Dim choice As Integer = -1 While (choice <> 0) WriteMenuText() choice = Convert.ToInt32(Console.ReadLine) Select Case choice Case 0 Case 1 Week() Exit Select Case 2 Nights() End Select End While End Sub Public Sub WriteMenuText() Console.WriteLine("-------------------------------------------------------") Console.WriteLine(" …

Member Avatar for thines01
0
142
Member Avatar for M.Waqas Aslam

hello ! i am working on an application and i want to connect it with mssql database , i dont know about the version of installed mssql server at the pc , how can i get the version of installed mssql server so that i can connect my application with …

Member Avatar for cyberdaemon
0
286
Member Avatar for spinnaret

I have an application which calls an external process. I would like this process to be open as soon as it is called. i.e. with no user interaction. This is because I would like to send Keys to it to interact. I know how crude this is but this is …

Member Avatar for eryrasa
0
2K
Member Avatar for gelpena

Hi all, I need help with a code to search Sheet1 and copy to Sheet 2. I have attached a Workbook to simulate what I want to accomplish. I want to press a button on Sheet2 which would run the macro a search dates on Sheet1 and copy the name …

Member Avatar for Reverend Jim
0
210
Member Avatar for BlackStar0703

Hi, I'm currently trying to program a sudoku solver. As a beginner I wrote pseudocode to establish what I'd have to do. One of the first things was to make sure each number in each of the 3 x 3 grids aren't equal to any of the others. Here is …

Member Avatar for Reverend Jim
0
698
Member Avatar for thedonedeal

I'm writing the following bits of code for a SaveFile Dialog box in Visual Basic 2010.NET. The code works well as the XLSX file is created and opens in Microsoft Excel. However, the problem that I am having is that if the program overwrites a file, the user is getting …

Member Avatar for adam_k
0
172
Member Avatar for Kalle21

[CODE]Public Class CurrencyConverter Private summation As Decimal Private sum As Decimal Private curryncy As String Private exchange As Decimal Private final As Decimal Public Sub Start() WriteProgramInfo() ReadValuesAndSumNumbers() WriteResult() End Sub Private Sub WriteProgramInfo() Console.WriteLine(vbLf & "++++++ Finnish input type 0 ++++++") End Sub Private Sub ReadValuesAndSumNumbers() Dim done As …

Member Avatar for Kalle21
0
168
Member Avatar for gacastro

Do you know how to use an http post using this code? This code is given by nowsms to use their mms sending but I don't know how to use it in my vb.net application. Here's the code: [B]POST / HTTP/1.0 Accept: */* Content-type: multipart/form-data; boundary=”–boundary-border–” Content-length: xxxxx (size of …

0
42
Member Avatar for collin_ola

Hi, I seem to be having a problem with displaying data in a second form. I've created a linear search algorithm which works just fine - it locates the records from the database. I now want to be able to display the record in another form, I've attempted this using …

Member Avatar for collin_ola
0
266
Member Avatar for haqayyum

hi daniweb members I am using visual basic 2008. i have a listview and a datagridview which have both 3 columns like ProductCode,ProductName & ProductPrice. Now i want to pass listview values to datagridview in the same sequence. I want that when i double click on any row in the …

Member Avatar for codeorder
0
1K
Member Avatar for Awais Ali

Can anyone help me by giving out a complete tutorial on the step by step way a connecting to a database using VB?

Member Avatar for kannadhasan
-1
142
Member Avatar for thedonedeal

I currently have the following bits of code: [CODE=VB.NET]Public Class MainFrm Private _storage As New List(Of StopwatchStorage) Public TotalParticipants As Integer Private participantLbl As Label Public participantName As TextBox Private participantClock As Label Private participantContinuation As New Stopwatch Public ParticipantStop As Button Private participantContinue As Button Private participantTimer As Timer …

Member Avatar for thines01
0
158
Member Avatar for sajil123

Hi i have the following code. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim con As New OleDbConnection Dim da As New OleDbDataAdapter Dim ds As New DataSet Dim dsnewrow As DataRow Dim cb As New OleDbCommandBuilder(da) Dim a As String con.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=F:\DB.mdb;Jet …

Member Avatar for sajil123
0
2K
Member Avatar for sigridish

hi everybody! i already know how to save in excel using openfiledialog. but what i want to happen is that when i save another file, i want it to be saved in my existing file but in a different sheet. can you guys help me? this is my code for …

Member Avatar for sigridish
0
682
Member Avatar for dejanc

Hello, I'm need to create a small report to be send automaticliy from VB.NET Windows application. I have wrote below code which is workin on my private PC, and with Gmail settings, such as username + password + smtp.gmail.com, etc... But with, my work informations, like my proxy ID + …

Member Avatar for dejanc
0
1K
Member Avatar for harrispc

Hi all, I need my form to automatically select the first entry in the datagrid view when it is loaded. I am having trouble finding the correct way to code it. [CODE] Private Sub CustomersForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim cust = From customers In …

Member Avatar for M.Waqas Aslam
0
1K
Member Avatar for vb2learn

Hello Once again i need help. I have a webbrowser So once webbrowser is completed then it should add the specified value in [TEX]<input type="file"> [/TEX] value in php. Eg: Webbrowser link is [url]http://tinypic.com/[/url] When webbrowser is completed then this [url]http://screensnapr.com/e/LCgzhP.png[/url] value will be our specified value. I tried using …

Member Avatar for sean7725
0
509
Member Avatar for sling blade

Hi, My dev computer is 64 bit Windows 7. I use the IntPtr variable in several classes throughout my application. When I compile the .msi file on my 64 bit computer, then install and then run it in a 32 bit environment I get 'System.MissingMethodException: Method not found ...get_HWND' error …

0
58
Member Avatar for wolfrain63

Doing a program that requires 2 web forms, and the program stats "We have elongated the window so you can see that the order information was passed as a set of Request parameters appended to the URL." Can anyone give me an example? I have no idea how to append …

Member Avatar for thines01
0
108
Member Avatar for shann1718

hello im working with vb 2010 and ms access as data base, just newbie.im trying to save the loged out date and time to my access table by selecting from tblloghist wherein my column SystemUserID is equal to my textbox SysID(located at my form) then it will save the timelogedout …

Member Avatar for Phasma
0
161
Member Avatar for markdean.expres

Guys how do I change the size and location of the controls at runtime by dragging and dropping. I want the users to be able to modify them. Thanks

0
74
Member Avatar for sw8revenge

need some help here what i want is when the user inputs the username and password, his/her information will be showed in the textbox located at the mainform which shows the users information like where he live and his occupation. please help me on how to show users data in …

Member Avatar for Reverend Jim
0
89
Member Avatar for Shodow
Member Avatar for Quinncunx

For a school project I need to make a timer with a bell sound that sounds every 60 seconds in VB, I cannot work out how to make the bell sound on the 60th second, I am not getting any errors in the VB console, so I assume that I …

Member Avatar for M.Waqas Aslam
0
156
Member Avatar for bettybarnes

Unable to cast object of type 'System.Byte[]' to type 'System.Drawing.Image'. hi i got this error message [CODE] Private Sub DataGridView1_RowHeaderMouseDoubleClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellMouseEventArgs) Handles DataGridView1.RowHeaderMouseDoubleClick 'DataGridView1.DataSource = bs Dim i As Integer i = DataGridView1.CurrentRow.Index txtConID.Text = DataGridView1.Item(0, i).Value txtLname.Text = DataGridView1.Item(1, i).Value [COLOR="Red"]PictureBox1.Image = DataGridView1.Item(2, …

Member Avatar for rmeshack2012
0
1K
Member Avatar for tomexlfc

Hello everyone, Please can someone help me to debug this error? It has been giving me a huge headache since last night. Anytime I try to add new record into my database, this error message keeps coming up: "Error: INSERT INTO Customer(Cust_ID, Name, Address, Username, Password) VALUE(?,?,?,?,?,?)". I don't know …

Member Avatar for artemix22
0
526
Member Avatar for ozzcar

Private Sub btnCheckIn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCheckIn.Click DatabaseConnection.ConnString() Try Dim litems As ListViewItem = New ListViewItem() DatabaseConnection.ConnString() DatabaseConnection.DataOpen() DatabaseConnection.Add("INSERT INTO CheckIn(CheckInDate, Deposit, Staying, CheckOutDate, Amount, Balance, Roomnum) VALUES('" & txtCheckIn.Text & "','" & txtDeposit.Text & "', '" & txtStaying.Text & "', '" & DTCheckOut.Text & …

Member Avatar for M.Waqas Aslam
0
183
Member Avatar for TheWayEnd

now; web.Navigate("http://www.yougetsignal.com/tools/web-sites-on-web-server/php/get-web-sites-on-web-server-json-data.php?remoteAddress=" + TextBox1.Text) this my code.and web.document.complete ListBox1.Items.Add(web.DocumentText) but result [CODE]{"status":"Success", "resultsMethod":"database", "lastScrape":"2012-01-22 08:05:08", "domainCount":"46", "remoteAddress":"mikrofiltre.com", "remoteIpAddress":"188.124.8.186", "domainArray":[["afatogullari.com", ""], ["anadolukarikaturculerdernegi.com", ""], ["anadolukarikaturculerdernegi.org", ""], ["dekopol.com", ""], ["efesplaygrounds.com", ""], ["ezelhijyen.com", ""], ["gurtuna.com.tr", ""], ["krossdekorasyon.com", ""], ["kucukerler.com", ""], ["mikrofiltre.com", ""], ["mikrofiltre.com.tr", ""], ["omakbobinaj.com", ""], ["otokivanc.com", ""], ["oyunparkiicinherseyburada.com", ""], ["ozlemtokerim.com", ""], ["payeplast.com", ""], …

0
66
Member Avatar for TheWayEnd

Hi I want to make a url contol program. url list in the listbox and search button if vocabulary in the url then listbox 2 add item example: url:[url]http://example.com[/url] vocabulary : "car" search: The car vocabulary in the documenttext ("source code") add listbox1 to listbox2 but I don't want slowly.I …

Member Avatar for TheWayEnd
0
188
Member Avatar for mani-hellboy

Hi friends., Actually I use datagrid to show my result from XML file.I load my data from XML file easily.But i need Sorting method for that and i don`t know how to solve it Please give me solution for that My code is [CODE] Imports System.Data Imports System.Xml Imports System.IO.StringReader …

Member Avatar for mani-hellboy
-1
124
Member Avatar for m4_prashanth

Hi there, I was trying to edit a excel document and save under different name and my coding for this is as follows. [CODE]Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click 'Open Dim MyExcel As New Excel.Application MyExcel.Workbooks.Open("C:\Test\WalkAir.xlsx") 'Extract MyExcel.Sheets("sheet1").Activate() MyExcel.Range("A99").Activate() MyExcel.ActiveCell.Value = TextBox1.Text MyExcel.SaveAs("C:\Test\alkAir.xlsx") MyExcel.Workbooks.Close() …

Member Avatar for Reverend Jim
0
612
Member Avatar for thedonedeal

I currently have two stopwatches ( running in a VB 2010 program. What I would like to do is combine their values together and have their results outputted in a string formatted as 0:00:00. I tried the Add method and the + method but this fails. This is in short …

Member Avatar for Reverend Jim
0
174
Member Avatar for khizer03

Hi Every body by seeing this video i tried but it is not working [url]http://www.youtube.com/watch?v=kg-z8JfOIKw[/url] i used shockwaveflash to play a movie but when i execute only a blank screen will be their it is not playing the movie guide through the code really i am confused totally

Member Avatar for codeorder
0
121
Member Avatar for thedonedeal

I figured I'd ask this here before I go back to other sites. I'm trying to dynamically create a set of stopwatches and buttons. Each stopwatch will be controlled by a button which is also dynamically created. However, each time I code it, I always ended wiring both buttons to …

Member Avatar for thedonedeal
0
401
Member Avatar for jbutardo

Hi, I have attached a printscreen version of my excel template here, Now I just want to know, using vb.net code, on how can I import this data from a specific cell, including the header itself so I can insert it into mysql database. Thanks

Member Avatar for jbutardo
-1
149
Member Avatar for slbreaul

Hi all- I'm working on an assignment for class and I would like some help. I have to create a calculator. In order to do the calculation, when the math operator is entered, there is a space on either side, so that I can split by the white spaces. [code] …

Member Avatar for Reverend Jim
0
148
Member Avatar for shibuvarghese

I created on Employee master form. The details which i enter in this form is saving to sql table. But if i use Wild characters example in Name field if i enter "Varghese D'Costa", then the following error comes : Line 1: Incorrect syntax near 'Costa' Unclosed quotation mark before …

Member Avatar for Reverend Jim
0
2K
Member Avatar for honeybee2090

i i have a listbox and 1 button in my application thing i want is when i click on some listbox item auto press that button or when i click on some item in list box it remove selected items from list box just with mouse click

Member Avatar for honeybee2090
0
87
Member Avatar for Alex_2011

Hi, I am learning about the search capability in an array. I wrote a code that stores three names (first & last) and I want to: - Make the user select a number (from 1-3) by using a (combobox) - If the user select the proper number then a message …

Member Avatar for Alex_2011
0
332
Member Avatar for sharathg.satya

which one cannot be considered as a counter variable? [CODE] counter = counter +1 counter = counter -1 counter = counter +3 counter = counter *2 [/CODE]

Member Avatar for sharathg.satya
0
90
Member Avatar for markdean.expres

Guys, how do I retrieve my messages from my Yahoo account. Is this going to be a hard task. If there is a site where I can get more information, can anyone tell me where. Thanks

Member Avatar for hericles
0
63
Member Avatar for tomexlfc

Hello good people, This syntax error keeps coming up whenever i click the "commit button" to add a new record to my ms access database. The error is, "Syntax error in INSERT INTO statement." I got help to write a code to accept alphanumeric (e.g SC0001, SC0002...) in my order …

Member Avatar for tomexlfc
0
175

The End.