19,729 Topics

Member Avatar for
Member Avatar for tendaimare

i have this insert code and its giving errors because there is something wrong with the connection string. [CODE] Dim MyConnection As SqlConnection Dim SqlString As String = "INSERT INTO items_table (item) VALUES ('" & Me.txtItem.Text & "')" 'Dim data_base As String = " Data Source=.\SQLEXPRESS;AttachDbFilename="C:\vb2008\Visual Studio 2008\Projects\morevariables\morevariables\App_Data\test_db.mdf";Integrated Security=True;User Instance=True" …

Member Avatar for kvprajapati
0
84
Member Avatar for frank33

I am formally studying VB.NET and the teacher has temporarily left us with a textbook to study. In a chapter on Arrays an example of actual code is given, as shown at the bottom here. We use Microsoft Visual Basic 2008 Express edition for our code. However a simple Copy&Paste …

Member Avatar for kvprajapati
0
229
Member Avatar for Steve Mac

Can somebody help me here? i have managed to import excel data into a datagridview but am having problems saving and updating it. It is saving alright but when it comes to updating that's when i have problems. here is my code: [code] If mysqldr.HasRows Then mysqldr.Close() newcommand = New …

Member Avatar for Steve Mac
0
76
Member Avatar for deepak420

for answers-- mail your problem to me at-- [B][COLOR="Red"]Email Snipped[/COLOR][/B] thanks

Member Avatar for tendaimare
-1
69
Member Avatar for gangaloves7

hi can anyone plz tell me how to create a ms-access database with table in run time i mean i want to create a database when user run the application thanks

Member Avatar for kvprajapati
-2
129
Member Avatar for bhagawatshinde

Hi, I am using the richtextbox selectionstart and selectionLength property for finding some text but its not working . can anybody help me please .... [COLOR="Red"]here is my code[/COLOR] [code] Dim startPos As Integer Dim endPos As Integer RichTextBox8.Rtf = RichTextBox8.Rtf startPos = InStr(RichTextBox8.Rtf, "\objw") endPos = InStr(RichTextBox8.Rtf, "\objh") Dim …

Member Avatar for bhagawatshinde
-1
257
Member Avatar for bhagawatshinde

Hi, I am developing an application in vb.net. In one form i am showing the math type equations in the web browser but the text is displayed normally but math type equation not displayed properly. In detail one form i am showing the data in the Richtextbox which contains text …

Member Avatar for bhagawatshinde
0
387
Member Avatar for CharliePrynn

Hey, I have this code [CODE]Public Class Form1 Private Declare Sub mouse_event Lib "user32" (ByVal dwFlags As Integer, ByVal dx As Integer, ByVal dy As Integer, ByVal cButtons As Integer, ByVal dwExtraInfo As Integer) Private Const MOUSEEVENTF_MOVE As Integer = &H1 ' mouse move Private Const MOUSEEVENTF_LEFTDOWN As Integer = …

0
147
Member Avatar for nore

Hello all, i want to know some textbox case. I want to make my textbox (example textbox1) only can be written by numeral, if there was non numeral input, textbox1 not allow or just being ignored. Thanks for attention or help :)

Member Avatar for nore
0
346
Member Avatar for jcb0806

Using VbScript:: I have a list of several different prices and I'm trying to figure out how to round these 5 decimals adding zeros if necessary. For example: I want 2.84 3.1 4.896 to look like 2.84000 3.10000 4.89600 Can somebody please help me? Thanks!

Member Avatar for jcb0806
0
209
Member Avatar for markdean.expres

I have posted more than one once about this but no one has ever given me the answer that I really need. How do I filter my datareport in vb 2008? When I run my form containing my datareport everything is being displayed. Is it possible to filter my datareport? …

Member Avatar for markdean.expres
0
39
Member Avatar for ukshir

hi, I have a windows forms application with one exe and several dlls(Class libraries) in a single solution. The application uses common data that is used across all the dlls. I would like to load the data when the application is starting up and use the loaded data at various …

Member Avatar for GuruJin
0
169
Member Avatar for dhirananda

can someone help me how to connect database from ms access to vb.net?????? please help me.. :(

Member Avatar for deshmukh dinesh
0
810
Member Avatar for markdean.expres

Hi, I have posted a question regarding this but no one has ever had the will to help. Maybe it was too long so I'm cutting it down to this more simplified question; How do I create subtables in MS Access 2007, or is it possible in the first place? …

0
47
Member Avatar for tendaimare

i have this function and it is giving me this warning. and i have many similar functions so by the time i'll be done i'll have a thousand warnings how can i get rid of the warnings Function 'SelectRows_local' doesn't return a value on all code paths. A null reference …

Member Avatar for Unhnd_Exception
0
108
Member Avatar for BleepyE

Hi, I was just wondering if there was anyway to create some sort of stopwatch, that doesnt include labels signifing, milli seconds etc? Thanks

Member Avatar for BleepyE
0
110
Member Avatar for anqe_tb

Hi All, I've looked everywhere and cannot find a reason for this. I'm essentially try ing to loop through every row in a datagridview, and trying to remove the entire row, if a certain cell's value matches another value. Please find the code below. This is working, however is skipping …

Member Avatar for anqe_tb
0
774
Member Avatar for jason7361

Hi! everyone. I am doing a bar chart project. my project should looks like this: [img]http://i6.tinypic.com/86gjn2e.jpg[/img] the problem i have right now is that i don't know how to draw the rectangle in the right way. my rectangle start to draw at the left top, how do i fix my …

Member Avatar for eltincho2202
0
390
Member Avatar for emaduddeen

Hi Everyone, Can you help me out of a concurrency violation error? It happens on this statement: [CODE] objDataAdapterCustomerDetails.UpdateCommand = _ objCommandBuilderParentDetails.GetUpdateCommand [/CODE] It thinks I'm using a key value of 1 when the actual value is really 1218. I'm using a command builder and I'm also new to doing …

Member Avatar for emaduddeen
0
138
Member Avatar for satiss7pwr

i have one window application developed in VS 2005 which is running successfully on client side,My question is that now i want to convert this window application in WPF browser based application, so what should i keep in mind to convert this application to wpf applicaton, One more thing that …

Member Avatar for satiss7pwr
0
933
Member Avatar for suis

Hi every body, I have a big problem, well my problem is i have a collection of .PST file in my hard drive now i have to write a programme using vb.Net to READ .PST files ! basically i need to be able to read the content of the .PST …

Member Avatar for David699
0
387
Member Avatar for tendaimare

I am trying to carry out a synchronisation of two databases one on the server and the other on a local machine so that even when they are not connected on the networkthe local database can carry on accepting data but when the network is back on the local database …

Member Avatar for kvprajapati
0
190
Member Avatar for cirno

Hello again, codegurus. I need to ask your assistance in converting string to datetype, from 'dd/mm/yyyy' to 'yyyy-mm-dd'. The user could key in either the 'dd/mm/yyyy' format or 'yyyy-mm-dd' format in a textbox. the system would check for both format and convert both to the 'yyyy-mm-dd' date format, to be …

Member Avatar for cirno
0
5K
Member Avatar for rick.eavans

[CODE] Imports System.Data.SqlClient Imports System.Data.SqlClient.SqlDataReader Imports System.Data.SqlClient.SqlConnection Public Class Order Inherits System.Windows.Forms.Form Dim myConnection As New SqlConnection Dim myCommand As New SqlCommand Dim ds As New DataSet Dim cmdtext As Integer Dim action As String Dim view As DataView Dim dr As SqlDataReader Sub fill() Dim adp As New SqlDataAdapter …

Member Avatar for kvprajapati
0
106
Member Avatar for saiju_menon

I am developing an application which downloads pdf files, then water marks and then print. Downloading part is completed using internet controls and water marking also done using itextsharp dll. With the following code I am able to set the printer also. [CODE]Public Function SetPrinter(ByVal prtName As String) As Boolean …

Member Avatar for saiju_menon
0
527
Member Avatar for ryan311

[CODE] ryan = "Select A.*, B.* from training as A, participant as B where B.partname = '" & TextBox1.Text & "' and A.traincode = 'B.traincode'" rs1.CursorLocation = ADODB.CursorLocationEnum.adUseClient rs1.Open(ryan, cn, ADODB.CursorTypeEnum.adOpenDynamic, ADODB.LockTypeEnum.adLockOptimistic) Form11.ListView1.Items.Clear() Dim AddItem As ListViewItem Do While Not rs1.EOF AddItem = New ListViewItem(rs1.Fields!traincode.Value.ToString) AddItem.SubItems.Add(rs1.B.Fields!title.Value) AddItem.SubItems.Add(rs1.Fields!venue.Value) AddItem.SubItems.Add(rs1.Fields!sdate.Value & "-" …

Member Avatar for crapulency
0
153
Member Avatar for sidyusuf

Hi everyone.I m new to vb.net and i m presently working on a project "Telecom Billing System".I have two different forms for "Adding New Connections" and "View Connections", Firsty i m unable to add new connections.... Moreover on "view connection" form,i can navigate the records but i want that when …

0
41
Member Avatar for ruchi18

hi i am working in .net project with c# coding i had design all of my forms in unsequential manner now at the time of debugging it shows some other which is the first form as in vb design but according to my procedure its not so how to start …

Member Avatar for Kinney
0
70
Member Avatar for IAFYM

Hi, I'm writing my own DLLs in vb.net. I'm making a DLL which contains layouts for printed forms - so these layouts could be updated easily. I'm using a DLL, because well... I dont know how else to do it really. But I want values from a form to be …

0
38
Member Avatar for tendaimare

can someone help me with why this code is not inserting into the database [CODE] Dim MyConnection As SqlConnection Dim sqlstring As String = "INSERT INTO Workers (FName, LName, FullName) VALUES ('" & Me.txtName.Text & "', '" & Me.txtSurname.Text & "', '" & Me.txtFullName.Text & "')" 'Dim data_base As String …

Member Avatar for tendaimare
0
120

The End.