Hi! I'm using Microsoft Visual Studio 2008, Microsoft SQL Server Management Studio. I need help. I cant figure out this if else statement for this condition: ///to check condition either the way ID exist in database ///if not exist then way ID can be delete ///if exist, message box appear show message this cannot be delete My code was be like this. Protected Sub btnDelete_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnDelete.Click Dim i As Integer Dim iResult As Integer Dim hypWayID As HyperLink Dim chkRemove As New CheckBox Dim clsWay As New Way() Try For i = …

Member Avatar
Member Avatar
+0 forum 4

I am creating a pageant scoring system. I managed to display the field names from different tables : [Click Here](http://oi58.tinypic.com/5c0jz5.jpg) The first column "Participants" is from Participant table and the succeeding columns is looped from the Criteria table. This is the code: Private Sub CreateDataEntry(ByVal CatID As Integer) Me.CriteriaTableAdapter.FillByCategory(Me.PSSdbDataSet.Criteria, CatID) DataGridView.Rows.Clear() DataGridView.Columns.Clear() ' construct data entry ' first column (participants) Dim nc As New DataGridViewTextBoxColumn nc.Name = "Participants" nc.Width = 250 nc.ReadOnly = True DataGridView.Columns.Add(nc) nc = Nothing ' succeeding columns (criteria) For Each drCriteria As DataRow In Me.PSSdbDataSet.Criteria.Rows nc = New DataGridViewTextBoxColumn nc.Name = drCriteria("Cri_desc") & Chr(13) & drCriteria("Cri_percent") …

Member Avatar
Member Avatar
+0 forum 1

Hi, I try to open vb6 file to visual basic 2008 but have a problem during a converting. here's the error that appear, ![26-7-2012_11-44-11_AM](/attachments/large/3/26-7-2012_11-44-11_AM.jpg "26-7-2012_11-44-11_AM") Can anyone please help me to fix this error. Thank you in advance.

Member Avatar
Member Avatar
+0 forum 6

i cant seem to see the crystal report in the add new item

Member Avatar
Member Avatar
+0 forum 4

hai there!.. need someone help regarding vb 2008 as below!!...huhu 1.how to make connection between mysql and visual basic 2008. 2.how to write insert the query... please3 someone please help me with this.. i goin crazy already...huhuu :sad::S:'(

Member Avatar
Member Avatar
+0 forum 2

Hey everyone, kinda new to all this...really need some help: Ok so I want to creat a log in and registration form in VB connecting to a sql database. Databse Name: Users Table Name: UserDetails Table Fields: ID, Username, Password The ID field was specifed as primary and self incrementing by 1 and the table has one username and password (being Id: 1, Username: peter, Password: admin). The Login form works, it checks to see if the user exists, if they do, they gain access, if not a message box is displayed. The Registration form however does not and I …

Member Avatar
Member Avatar
+0 forum 5

I have text box and button when i clik tht button it has to display all the data if it is relevent to the data else it has to say no data . my project is about track cd. name textbox that i want to search is txtTitle.Please help me!!Urgent. i want something like search forum in this website when u clik on search it will get the data same way i need the solution either it is from database or index service

Member Avatar
Member Avatar
+0 forum 4

Hello, I need help saving data into an access 2007 database from a program created in vb 2008. I am making a basic "game" that allows you to move a "robot" up,down,left, right and will save the movements/positions into an access 2007 database. I already have the basic movement created with buttons that will change the robot location (the movements are done though a separate class). The main issue I have is creating the connection and saving the movements. the access database is located here, no password and I have already added it as a datasource in vb 2008: c:\hw3robot.accdb …

Member Avatar
Member Avatar
+0 forum 2

Hi people, I have created a form that allows me to search customers from a datagrid table which holds the information from the customers table. I use a textbox to enter the phrase to search for and a search button. I can find the records within the datagrid table but it only selects them. I want the datagrid to only display the records found. How I achieve this ? [CODE]If RadioButtonName.Checked = True Then Me.CustomersTableAdapter.Fill(Me.NorthwindDataSetCustomers.Customers) For Each CurrentRow As DataGridViewRow In DataGridView1.Rows If CurrentRow.Cells(2).Value.ToString.Contains(TextBoxSearch.Text) Then CurrentRow.Selected = True End If Next End If[/CODE] The code above finds the customers name …

Member Avatar
Member Avatar
+0 forum 3

Hi. . . i got this code in visual c3 and i want to code it in visual basic. . .somebody help me please in doing it. . . [code] byte* p = (byte*)(void*)Scan0; int nOffset = stride - b.Width * 3; for (int y = 0; y < b.Height; ++y) { for (int x = 0; x < b.Width; ++x) { blue = p[0]; green = p[1]; red = p[2]; pixel = red / 255.0; pixel -= 0.5; pixel *= contrast; pixel += 0.5; pixel *= 255; if (pixel < 0) pixel = 0; if (pixel > 255) pixel …

Member Avatar
+0 forum 0

Hello all, 1) I want to know how to use the serial component in the toolbox of VB2008 express edition. 2) I want to how to plot a graph in VB2008 express edition.

Member Avatar
Member Avatar
+0 forum 2

Hi all! i am trying to copy a file from 1 location to other location with a new name. The new name should be like "Oldname + date & time". I wrote the following code but getting error that the Given path format is not supported [code] Imports System.IO Public Class Form1 Dim file_name As String = "jpeg.rtf" Dim Now As DateTime = Date.Now Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim path1 As String = Trim("D:\frs\files\" & file_name) Dim path2 As String = Trim("D:\frs\versions\" & file_name & "\" & Now & file_name) File.Copy(path1, path2) …

Member Avatar
Member Avatar
+0 forum 2

Hello everyone.. I desperately need your help to tell me how can i retrieve the data that i've stored in an access db column and display it in a combo box in a vb2008 project? thank u in advance..

Member Avatar
Member Avatar
+0 forum 1

hi, i am new to OpenGL. Soon i have to do a college project on this platform so i decided to learn open GL. while working with glui i am facing some problems. i downloaded glui-2.36. I thought of starting with the example1 (code added at bottom of the post) that was included in source folder of glui-2.36. i am using VB.net 2008 When i build the project it gives me 3 errors: error C2661: 'GLUI_Checkbox::GLUI_Checkbox' : no overloaded function takes 3 arguments error C2661: 'GLUI_Spinner::GLUI_Spinner' : no overloaded function takes 3 arguments error C2227: left of '->set_int_limits' must point …

Member Avatar
Member Avatar
+0 forum 1

hi guys.im new here at the community. im marco a computer science student. guys/sir/madam is it ok for you if ill ask a help from your expertise. right now im doing a project a bout a home security system its a simple anti burglar system, its kinda weird but it goes like this: when the sensors are "tripped" the system will capture a video and automatically stores it on pc.this video can be later view by home owner when she/he arrive. then after capturing video the system also simultaneously send an sms to homeowner,a predefined sms that informs the owner …

Member Avatar
Member Avatar
+0 forum 1

How can I print a mathematical formula in a form? For a example I found in wikipedia a guide to do it in HTML: [url] [URL="http://en.wikipedia.org/wiki/Help:Displaying_a_formula"]http://en.wikipedia.org/wiki/Help:Displaying_a_formula[/URL] But how can I do it in VB2008, showing the formula in a form?

Member Avatar
Member Avatar
+0 forum 1

I use Microsoft Visual Basic 2008 Express Edition and I am begginer in computer networks. I want to make two PCs communicate via network using server/client I followed the example from this site: [url]http://www.eggheadcafe.com/articles/20020323.asp[/url] (VB.NET TCP Client/Server Socket Commmunications) When I run the applications server and client in one computer then is possible the client to connect with server. When I use two computers via network, in the first computer I run the server application and in the second computer the client application then the client it gives me error message like: No connection could be made because the target …

Member Avatar
Member Avatar
+0 forum 2

[B]HI to all[/B] I have got one problem: [I]I use vb 2008[/I] On some websites i go whit my Web browser i got an error!!! it say: [U]An error has occurred in script on this page. Line: 133 Char: 74 Error: Unterminated string constant Code: 0 Url: [url]www.url.com[/url] Do you want to continue running scripts on this page? Yes No[/U] (two buttons) Do you know how can i remove that error from my application???

Member Avatar
Member Avatar
+0 forum 2

I'm fairly new to coding VB 2008 I need help converting a text document with a type of code in it. One line looks like this: 52.000000, 400.000000, 1.3107711, 0 I need to convert that to an xml file that looks like this: - <CuePoint> <Time>11619</Time> <Type>event</Type> <Name>Marker 01</Name> - <Parameters> - <Parameter> <Name /> <Value>0</Value> </Parameter> </Parameters> </CuePoint> The time in the text is 1.310771 value in text is 52.000000 I have hundreds of lines like that that need converting so I need something that will make the process automated. I looked at other posts and was unable to …

Member Avatar
Member Avatar
+0 forum 18

The End.