20,284 Topics

Member Avatar for
Member Avatar for vbdotnetlover

I have following codes [CODE] str2 = "select sno,name from employees where sno =" & Val(Me.TextBox1.Text) cmd2 = New SqlClient.SqlCommand(str2, con) da2 = New SqlClient.SqlDataAdapter(cmd2) dt2 = New DataTable da2.Fill(dt2)[/CODE] Now dt2 has two columns as sno and name But I want to add a 3rd column city type char(80) …

Member Avatar for vbdotnetlover
0
332
Member Avatar for Pari13

Have nice Evening! I have an error message of "[B]Overflow Exception was Unhanded by User code[/B]"when i am trying to exceute below very simple code. [CODE] Partial Class zeesant Inherits System.Web.UI.Page Dim x As Integer Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load x = (Val(TextBox1.Text) …

Member Avatar for Pari13
0
128
Member Avatar for OldQBasicer

I'm a novice at VB.NET and I'm having a problem with the compiled versions of my applications. If I take the .exe file (it's real small, like 40KB) from the BIN/DEBUG directory, it runs fine on most computers (I've tried it on 5), including Windows 7, Vista and XP. When …

Member Avatar for OldQBasicer
0
201
Member Avatar for jbrock31

I have been reading books trying to learn .net on my own. I am working on an exercise that asks me to create a 1MB file. what i have below does work, but it seems to me there would be a more efficeient way. It seems like what i am …

Member Avatar for jbrock31
0
292
Member Avatar for RTK

Hi everyone, I've created an application that runs queries against a SQL server (via Data Adaptors) in VB.NET 08 and returns the results to a DataGridView. It works great and returns my data, but when I switch to a different query that returns different columns, the DataGridView keeps the old …

Member Avatar for RTK
-1
7K
Member Avatar for samuel_1991

Hi, I am using datagrid to show my products. The products have a image and I should show it. Problem is, datagrid is only text and there was some reference on creating custom columns but I still dont quite understand (Mostly are custom url columns). Any help please, thank you!

Member Avatar for kvprajapati
0
55
Member Avatar for yorro
Member Avatar for lein.o16

our group will be developing a pawnshop system and one of our teacher's requirements is to send SMS via infrared. the PL we're using is vb.net. hope you'll help me people :)) thanks in advance. :D

Member Avatar for debasisdas
0
37
Member Avatar for Myko17

Greetings, I am suffering a loss of sanity at the hands of this issue. I think i have something worked out, however, could someone shed some light and keep me sane? [B][U]Problem Description[/U][/B] It would be of interest to others if you could write a program that would allow other …

Member Avatar for ChrisPadgham
0
172
Member Avatar for c_abhi
Member Avatar for jlego

im am trying to find the best method to use for the following: I have an applicaiton that is going to be loaded 24/7 running in the background. what is the most efficient way to display the current date on the top of the form so that it changes on …

Member Avatar for kvprajapati
0
81
Member Avatar for tdspaul

I am trying to update a sequence of records where the field WebSvc = No Here is the code [code] cn.Open() da = New SqlDataAdapter("SELECT * FROM dbo.DurexBOL", cn) cmdBuilder = New SqlCommandBuilder(da) da.Fill(ds, "DurexBOL") Do While ds.Tables("DurexBOL").Select("WebSvc = 'No'") ds.Tables("DurexBOL").Rows(0)("WebSvc") = "Yes" da.Update(ds, "DurexBOL") Loop Console.WriteLine("City updated successfully") cn.Close() …

Member Avatar for kvprajapati
0
102
Member Avatar for tqmd1

Dears Datagridview column1 has data as follows 21/12/09 22/12/09 23/12/09 I want to display it in this format 21-12-09 22-12-09 23-12-09 This is datetime data type comes from table1 What Should I do?

Member Avatar for kvprajapati
0
74
Member Avatar for Myko17

Hey guys, Just trying different little programs. I was looking though a book on Visual Basic .Net and came across a little password-protection program (A very simple one). Problem is, that this was written for VB6, not the 2008 version, so i did a little editing as shown below: [CODE] …

Member Avatar for apegram
0
96
Member Avatar for jlego

Not sure if anyone has experiance with Active Reports In vb6, i used acive reports 2.0 and used a simple ado connector with dsn - user - pass to connect to a database and pull the data needed. Active reports 6 seems to be different and i am having problems …

Member Avatar for scottwilleke
0
222
Member Avatar for emompong

Hi! I am planning to create a system for my case study wherein i can Add tags from images and search for it by [B]"tags"[/B] such as [B]photobucket. [/B] For example i open an image to my system, and it's file name was [B]"WhiteHouse.jpg"[/B] and i added or[B] tagged[/B] it …

Member Avatar for emompong
0
136
Member Avatar for hanhhanh23

I have to do my project in computing which requires extract data from excel to VB for further processes. I am a beginner. I know a little bit about VB and Pascal. Thank a lot

Member Avatar for hanhhanh23
0
29
Member Avatar for GeekByChoiCe

I have created a CustonControl (NOT a usercontrol) and defined a DependencyProperty as following: [CODE=vb] Public Shared ReadOnly HelpBrushProperty As DependencyProperty = DependencyProperty.Register("HelpBrush", GetType(String), GetType(ComboBox_with_helpBrush), New UIPropertyMetadata("Select..."), New ValidateValueCallback(AddressOf StringProp_Validate)) Public Property HelpBrush() As String Get Return DirectCast(GetValue(HelpBrushProperty), String) End Get Set(ByVal value As String) SetValue(HelpBrushProperty, value) RaiseEvent PropertyChanged(Me, New …

Member Avatar for GeekByChoiCe
0
123
Member Avatar for tqmd1

What is wrong in these codes, it do nothing Please help [CODE] Dim oExcel As Object Dim oBook As Object Dim osheet As Object oExcel = CreateObject("Excel.Application") oBook = oExcel.Workbooks.Add osheet = oBook.sheets("sheet1") 'Paste the data. Dim j As Integer For i = 0 To DataGridView1.RowCount - 2 For j …

Member Avatar for tqmd1
-1
146
Member Avatar for Brian Charlie

[code] Dim Briggs As New Z_SCART_CREATE_SALES_ORDER Dim P1 As New Briggs_N_Stratton.Zvscartordhdrin Dim P2 As New Briggs_N_Stratton.Zvscartorditmin Dim P2arr(1) As Briggs_N_Stratton.Zvscartorditmin Dim P3 As New Briggs_N_Stratton.Zvscartorditmout Dim P3Arr(1) As Briggs_N_Stratton.Zvscartorditmout Dim P4 As New Briggs_N_Stratton.Zvscartordtxt Dim P4ARR(1) As Briggs_N_Stratton.Zvscartordtxt Dim p5 As New Briggs_N_Stratton.Zvscartordmsgs Dim p5Arr(1) As Briggs_N_Stratton.Zvscartordmsgs Dim P6 As …

0
48
Member Avatar for Gotang

Hi, I have been searching for a few days now for a solution to my problem. Please excuse any programming faux pas as I am very new to programming. I have created a textbox array based on the number of 'Channels' on another form. This number dictates how many textboxes …

Member Avatar for Gotang
0
722
Member Avatar for dor.marchan

Hi All, I'm a student who really need help in this problem...what I need to do is to call/run/execute a subroutine using a varaible name from a subroutine. [code] Public Sub Main(ByVal subName as String) Call subName ' subName may be contain the value AAA or BBB End Sub '=========================== …

Member Avatar for dor.marchan
0
5K
Member Avatar for pardeep3dec

Hi friends, I am making a project on cyber cafe and i want to generate username and password automatically on different clicks. I am using txtusername.text=cstr(int(rnd()*1000)) It gives random numbers but in a same sequence like whenever i run and click on generate button it shows 973 again click 950 …

Member Avatar for apegram
0
121
Member Avatar for dor.marchan

Hello All, I need some help to convert the macro I recorded in Excel into a working Vb.Net application. It involves attaching a file into a Excel cell. The file is a Word document named "File.doc". Here's the recorded macro: Sub DemoAttachFile() Workbooks("Book1").Activate Sheets("Sheet1").Select Range("B2").Select ActiveSheet.OLEObjects.Add(Filename:= _ "C:\Documents and Settings\File.doc", …

0
72
Member Avatar for neo-samol

Please help me. Now i'm using VB.NET to update my project. I have webcame but i don't code for capture Image from Webcam Please help me.

Member Avatar for ananthsp
0
424
Member Avatar for pardeep3dec

Hi Friends, I am getting a problem on running my small programme. Problem is that whenever i run my programme it runs but can't taking coding effects. Suppose when i am using msgbox("Hi") on form load event or form click event it can't print message box's matter i.e. Hi I …

Member Avatar for kvprajapati
0
66
Member Avatar for raju_oct1

Hi Friends, I just want to send [COLOR="Red"]Sms [/COLOR]to mobile through application.. Can any one help me on this? Please i need it in urgence. If you know please post the code and the steps to my mail id.. My id is <<Snipped>>

Member Avatar for kvprajapati
0
47
Member Avatar for JAM1011

Hey all, I am having trouble converting a string value to a text box name. The text boxes are created at runtime and I need to get the text value out so I can store them. I keep getting the error Error 24 Value of type 'String' cannot be converted …

Member Avatar for GeekByChoiCe
0
504
Member Avatar for tqmd1

Dear Experts Is there an easy way to move into datagridview columns with ENTER key instead of TAB key. In other words: how to move in next column with enter key? Please help

Member Avatar for kvprajapati
0
720
Member Avatar for learn_vb.net

hello. can anybody help me please with database connectivity in Vb.net where do i start with step by step. I downloaded a lot from google but not able to follow. Even a link would do but preferably step by step of what to compile first and what next. Thank you.

Member Avatar for sknake
0
37

The End.