20,285 Topics
![]() | |
[CODE] Dim Customer As DataSet1TableAdapters.Customer1TableAdapter = New DataSet1TableAdapters.Customer1TableAdapter Dim Dt1 As New DataSet1.Customer1DataTable Dim TA1 As New DataSet1TableAdapters.Customer1TableAdapter Dim DR1 As DataSet1.Customer1Row Try Customer.InsertQuery(TxtCust.Text, MaskedPhone.Text, TxtAddress.Text, MaskedIC.Text, MaskedDL.Text) MsgBox("data entered") DR1 = Dt1.NewRow Dt1.Rows.Add() Customer.Update(Dt1) Dt1.AcceptChanges() Catch ex As Exception MsgBox(ex.Message) End Try[/CODE] i need help in this, i've searched … | |
okay I have been looking all over the web trying certain pieces of code and I have had no luck. I am tired and I really am at a lost right now. I am trying to make it so that when the user mouses over a select set of cells … | |
Hi i am using vb to make a hospital system which works with a access database i am having an issue with the updatign function to the database this time round instead of hard codding the connection i used the connection/data source wizard in microsoft visual studio 2008 and there … | |
I am working on a web browser for fun and to get a little more acquainted with VB. I felt lost during school this past year and wanted to do something that sounded like fun. Ok, enough of that. When I put in my code to just press enter after … | |
I have memebrship system with mysql database. In the table I have comumns named Username, password, information... I have to found the row with the username who have logged in and put the text from information column in textbox... | |
hi! i am a final year student could you tell me which topics i can make a project on | |
Here is my problem. I'm creating a program for my workplace which stores hours worked, calculates pay and all that stuff. Problem being, the database will be accessed through the network and i want to be able to select the database from an openfile dialog on first use to locate … | |
Hello all, I'm somewhat new to programming but I had a quick question. I have created a program to take a text file and convert it into a datatable. Unfortunately, however, I seem unable to attach this file to a database. I am getting an invalid object error stating that … | |
Hi everyone! I am a junior database programmer. I need to know how can I save image in SQL SERVER 2000 by VB.NET? I made a table in SQL SERVER with two fields. One is Id[nvarchar] & another pic[nvarchar]. I got two forms there in VB.NET project. In the first … | |
hi i am very new here i doing a window app using vs2005 to download file using FTP to my c drive it have no error when i run it in window xp but when i test it in vista i facing a problem stating access to path "c:\program file\...." … | |
I have a project where I need to add TabPages to a TabControl. I have a Panel with 10 checkboxes on it and I want to replicate that onto each TabPage as it is added. What I get is it is added to the first page, then when I add … | |
I need to change my project to a program that can be installed,please send me instructions on how to accomplish this,and I am having a problem copying my system to other pc's. It works fine on my pc,but when I copy to another pc,it only allows me to login and … | |
[code]Dim MonPrice As Decimal If RadioBtnMon20.Checked Then TxBxPRICE.Text = TxBxPRICE.Text MonPrice = MonPrice + 120 ListBox1.Items.Add(RadioBtnMon20.Text) End If If RadioBtnMonHD.Checked Then TxBxPRICE.Text = TxBxPRICE.Text MonPrice = MonPrice + 140 ListBox1.Items.Add(RadioBtnMonHD.Text) End If If RadioBtnMonFullHD.Checked Then MonPrice = MonPrice - 140 + 170 ListBox1.Items.Add(RadioBtnMonFullHD.Text) ElseIf RadioBtnMoniterStand.Checked Then ListBox1.Items.Add(RadioBtnMoniterStand.Text) End If TxBxPRICE.Text … | |
I have tried my best but failed so i have decided to discuss with u all about this matter. when i run Given below code on my current system it's OK but when i install this on my client machine then it gives my a window during call Print button … | |
i got a background worker that has the following code in the do work.... one of the things i want to do is to add rows if theres none available ...but i got an error saying i need to do a safe call thread...i already read about it but im … | |
I am able to display one table record on crysatal report,but i get balnk feild when i am retriving that feilds from multiple table on A3 paper. can you please help me? Prasad. | |
Hi everyone, I have the current situation, I have get done with the datagridview cellvalidation, but, I need that after the validation get's done, to set different columns values on the same datagridview. [code] If Vacaciones_HistoricoDataGridView.Columns(e.ColumnIndex).Name = "DataGridViewTextBoxColumn7" Then If e.FormattedValue.ToString() > Dias_Asueto Then MsgBox("Los dias correspondientes son " & … | |
Hello, does anyone know how to access an item like a button in a windows application? For example, I would like to create an application that would be able to look at notepad's file menu and "know" that file, edit, etc on the file menu are clickable objects and identify … | |
How do I make the connection to a SQL database (one to many), with VB.NET? | |
I am new to VB coding so I'm trying some easy projects. I figured an alarm clock would be a good place to start. But I'm Having a hard time with the MP3 Part of it all. I want a pre-selected MP3 to start, when my timer2 is = to … | |
please how can i generate serial numbers like a bank account number from a text box.pls i need ur help i use vb.net | |
I am trying to get the IP address of my router and so i have found this code and it works perfectly on my pc. When i run it on my laptop however it outputs two addresses. One is the correct one and the other is just 0.0.0.0 I only … | |
hi guys, i have a main form and what i want to do is to display the informations on another form (in listview) which has the input values on the main form. when i create a second form i cant access any of the controls on the main form. How … | |
Hello I'm Can't Find Any way to download Text File From My Free Hosting Cuz i can download from Direct link Website Like Fileden But My free Hosting it Say [B]The remote server returned an error: (403) Forbidden.[/B] How Can I get download file From My Hosting i use [CODE]My.Computer.Network.DownloadFile … | |
My vb 2008 app uses Excel, but only briefly. Can I avoid referencing the Interop library Microsoft.Office.Interop,Excel?? Is there another way to link to Excel? In terms of its dealings with Excel, my app does little more than open a workbook and shade some cells. Many thanks | |
hi there, i have a excel file which have purchase order information. the file contains of the information of the user and the the items that he ordered with the order item quantity and the price but there may be any amount of items in the excel sheet. the thing … | |
I' ve my cookie to [CODE]Dim authCookie As New HttpCookie(FormsAuthentication.FormsCookieName)[/CODE] I've just started learning about cookies not long ago,can I retrieve the cookie that I've set by using the code below? [CODE] Dim authCookie As String = FormsAuthentication.FormsCookieName If Not Request.Cookies(authCookie) Is Nothing Then 'Display requested page Else Response.Redirect("Login.aspx?") End … | |
Hi I using C# to VB.NET code converter which gave me this: [CODE] Public Class PostCalendar Inherits Calendar [B]Implements [U]ICallbackEventHandler[/U][/B] //--Class 'PostCalendar' must implement 'Function GetCallbackResult() As String' for interface 'System.Web.UI.ICallbackEventHandler'. ¿¿?? //----------------------------------------------- Shared Sub New() [B][U]Post.Saved += Post_Saved[/U][/B] End Sub //----------------------------------------------- Public Class RecentComments Inherits Control Shared Sub New() … | |
can anybody help me transcribe this into vb.net [code] public string WriteNReadBuffer(byte [] TelnetNegotiation, NetworkStream stream) { stream.Write(TelnetNegotiation, 0, TelnetNegotiation.Length); Byte[] data = new Byte[256]; Int32 bytes = stream.Read(data, 0, data.Length); string returnval; returnval = BitConverter.ToString(data, 0, bytes) + "\r\n"; //textBox2.AppendText(BitConverter.ToString(data, 0, bytes) + "\r\n"); return returnval; } public void … | |
hi the problem is when i use my own word eg here "jose" the results are correct but when i use random string it doesnt work the same here's my code [code] Imports System.Text Public Class Form2 Dim guess As String = " " Dim bulls As Integer = 0 … | |
How do I get data from mysql and send it to Excel and have it update every 30 minutes using VB2005? Thanks for any help! | |
Hello again, I am trying to replace a string which is actually different from line to line in a text file. I want to end up with a filename but without the path. For example: My text file contains: C:\test\testingmore\filename.mpg C:\test\testfiles1\testfile4.mpg W:\testinglocation\testingmore\testfiles9.mpg I would like to replace the path in … | |
A datagridview is sorting numerical values (when clicking the datagridview column header text) in the wrong order based on the initial digit: 1 11 2 200 21 3 3000 4 456 Should instead sort as: 1 2 3 4 11 21 200 456 3000 As the columns are set in … | |
Hi folks: Can anyone tell me what I am doing wrong in the coding below: [code] Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Try Dim ConnectionString As String = "Server=hp;database=library;integrated security=SSPI" MessageBox.Show("Connection established") Dim sql As String = "SELECT snippetID, snippetName, snippetSource, snippetCode FROM snippet … | |
hi there, i have a datagrid view in a form. when a button is clicked for the first time a new row is added to the daagridview, when i click the button for the second time i want to check whether there is a blank row in the datagrid view, … | |
Dear all, I am creating a small project for my company ie; document controller. In this project a small module is reading documents. I already made reading of other documents like word,text, etc. But I am unable to create a program that can read pdf files. My main aim is … | |
Just want to know can I convert the programs. | |
The following function DateAdd("h", -24, DateAdd("d", 1, DateValue(Now))) gives todays date without any minutes or seconds. How is it possible by just adding 1 day and subtracting 24 hours we get todays date without time in the result. 'Now' actually displays time along with date | |
How your guys run the IIS? I am just done a project (vb.net with access) on the vb 2008 express, but not sure the steps to set up and run the project on the internet with IIS? THANKS. | |
I'm sure that I have seen this somewhere here, but I want to ask how I can make membership system in windows forms application? The database must be in hosting. I don't know how exacly to connect to it. It says that it can't find the database server. | |
Hey, So basically I'm making a program that can convert feet to metres, it would ask for the start value, increment and end value, before displaying the results in the Listbox. Example; Start = 1 foot Increment = 1 foot End = 5 foot Foot Metres 1 ** 2 ** … | |
So i'm new to VB and am making a program that is a count down timer and when it reaches '0' it clicks the left mouse button where ever the mouse is on the screen (in the form or not. The code so far: [CODE] Public Class Form1 Private Sub … | |
OK I can upload a single specified file but need to create a loop to read and upload all files in a certain folder. Here is code for single file. [CODE]'upload a file ftp.Upload("c:\test\ftp\upload.exe", "/pub/upload.exe")[/CODE] | |
I have searched and I have searched but I can't find a way to display all instances of SQL Server in a combobox. Any help is greatly appreciated. | |
code function javascript to swapimage(img1) var str1 = new String(img1); var text = document.getElementById('<%=TextBox1.ClientID %>'); var arr = new Array(); arr = str1.split('/'); document.getElementById(textvalue).src = str1; document.getElementById('<%=addProductImage.ClientID %>').src = "Images/ProductImages/thumb_" + arr[arr.length - 1]; document.getElementById('needToChange').href = str1; question is .. when page load appear problem which is say htmlfile: Invalid … | |
So I have two forms. I want the information i input to text boxes in form one, to show up in text boxes on form two. The txtONE - TWELVE belong to form1 and the Form2.Adj/Adv/Noun etcetera belong to Form2 [code] Public Class Form1 Public Sub Form1_Load(ByVal sender As System.Object, … | |
I am in school and just learning and I am completely stumped on this lesson. [B]I have determined that I will be using an array[/B] dim playingBoard(2,2) as string - 9 possible places to put an x or an o dim x as integer dim o as integer [B]I have … | |
Can somebody tell me how to call Windows Hard Disk Defragmenter in VB.Net on Button Click. Any help is greatly appreciated. | |
Hi All. I am relatively new to programming so this may seem like a trivial question, but here goes. On my form I have a datagridview which is bound to a 'Supplier' table in Access 2003. Once I click on a record on the DataGridView, textboxes below which are also … | |
Hi All! I am new to Vb.net & ado programming so this really just for educational purpose. basically i have a form with a datagrid set to readonly. i have 5 textboxs. when a cell is clicked its value in the row is output to the following textboxs on the … |
The End.