20,278 Topics
| |
HI i have this error null reference i don't know why Imports System.Data.SqlClient Imports System.Configuration Imports System.Configuration.ConfigurationSettings Public Class Form1 Private ConName As New DataAccess Private Sub cmdconnect_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdconnect.Click Dim conn As String Dim m_server As String Dim m_db As String m_server … | |
Hi all, I have a form that is supposed to query a website. I have the following code that first looks at and uses data from an SQL Server db connection: ConnString = "Data Source=SQL2008T1;Initial Catalog=EconAnalysis;Integrated Security=True" SCqryStr = "" SQLConn.ConnectionString = ConnString SQLConn.Open() SQLStr = "SELECT vSeries_Number FROM tblVSeriesList" … | |
I have a rootnode and its value is (1) then it's childnode is (2,3) I add childnodes to (2) but on (3) I do not know. how can I add childnodes to 3? | |
Hello Community, I was wondering if its possible to make an editor like [Notepad++](http://notepad-plus-plus.org) (I'm talking about the text area). So it will change the colour of the words (funtions and commands) also with the margin with the numbers and the code folding. Please help with what you can even … | |
Can you Close or Exit an application from within a Sub or what would be the 'best practise' for Exiting when the app has failed a logic test? My app checks for the existance of various files in a Sub Routine off the Form_Load and writes to a log along … | |
For thos who is nice enough to answer. I am buidling a web bot usig vb.net and learning is ok for now. But I have a question to ask. I made a bot that automaticly login in a webpage using one click. **Now how do I continue by putting a … | |
hi! can anyone help me in creating an vb.net code.? i have an textbox, dropdownlist connected to the database and a submit button. my problem is , i don't know how to connect the 3 of them and the output will be seen on my database,.. thanks.. | |
I want to build a module to combine multiple text file in a .csv file by using vb.net. My text file data like this: (T1.txt) UnitCode|Qty 001|56 002|45 003|100 004|78 005|67 (T2.txt) UnitCode|Qty 001|78 002|166 003|10 005|12 I want the output like this: (Output.csv) UnitCode,T1,T2 001,56,78 002,45,166 003,100,10 004,78, 005,67,12 … | |
Hello, Im new to VB and therefore i require some guidance in this tricky situation that im stuck in. Basically, what my program does is calculate the mach number of an aircraft when the speed of sound and value of temperature are added into the text box. The problem arises … | |
Hi all, I have a .NET form where I want to connect to a table and then pass each defined (by query) string from the table into a string within the code. I have created a connection to the database already via Data Sources but I'm unsure about the syntax … | |
| Hi DaniWebbers, I would like to map a string to a Property using the Dictionary class. For example, I want to map "port" to a textbox's Text property, e.g. myDict.Add(tbPort.Text, "port"). How would I go about defining the dictionary? I've tried the following: * Private myDict As Dictionary(Of Property, String) … |
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Click Dim cmd As New OleDb.OleDbCommand If Not cnn.State = ConnectionState.Open Then 'open connection if it is not yet open cnn.Open() End If cmd.Connection = cnn 'check whether add new or update If Me.txtReg.Tag & "" = "" Then … | |
Hi, I am fairly new to VB.NET and i'm just wondering if anyone can help with a problem I am having. I am looking to pass some parameters to a vb.net application fwhen I call the app from another program (written in oracle forms). My question relates to how these … | |
| Hello DaniWebbers, I have the following classes in their respective namespaces; so far so good. When I have received data from the server, the AsyncTcpClient's *DataReceived* event gets raised and the Client's *OnReceivedData* method gets called. Also so far so good. The one thing that does not work (and which … |
Hi Guys i need help on my school project.Currently i want to validate some important data in a textbox as soon as they are entered by the user Here is my coding........ Private Sub Textbox1_Leave(ByVal sender As Object, ByVal e As System.EventArgs) Handles Textbox1_Leave Call ValidateTextbox(Textbox1.Text) - Set saved = … | |
i have a combobox that binding to table , what i need is wneh i retured the data i dont want to duplicate entries for example i have combobox with item BOQ Section and the item as the following "concrete , concrete, concrete , Utilities , utilities, concrete, AirCondiotioning ,utilities, … | |
i am trying to add values in two coloums of data grid view. Howeaver the result is values are concatenated instead of adding. i.e 10+25 result is 1025 and not 35. DgvLedger.Rows.Item(GRNO).Cells(6).Value = DgvLedger.Rows.Item(PRNO).Cells(6).Value + DgvLedger.Rows.Item(GRNO).Cells(3).Value howeaver multiplaying two coloums value result is correct. | |
Hi I have an app that needs to read the file creation time from a jpg on a website. The jpg has a constant filename but is updated every 5 minutes or so. I want to read the creation time and compare with the previously downloaded image time to ascertain … | |
How i can hide or remove a column in DGV??? i use this code : DGVname.columns.remove(colindex) but the column didnt remove it jsut became the last column | |
Dear All ! I have a table titled Customer_DETAIL I want to check and make sure That there are no other records in the table that have The same CustomerID . The CustomerID are FK's From customer table. How can I check for duplicates so they do not create duplicate … | |
Hi, I would like to be helped with automating my application. I work in an environment where we receive a high number of files daily. I am given a task to read a file extract strings and compare them with data in mysql database. I use visual studio 2010. Here's … | |
I have combobox on child form. combobox get populated when form is loaded. Now the problem is when child form is closed and reloaded combobox get populed twice with same items. it appears that combobox dosen get cleared when for is closed. Below code dosen work CboScrip.Items.Clear() Below code is … | |
hi friends i am new in vb coding. i have two tables in ms access table 1 containing location column and id and table 2 containing id, name and date1, date 2...date 30 i have made form design in visual basic with "name" label with combo1 that selecting data from … | |
I'm new in Vb.net and try to make a simple program. I need one variable to be used in all subs. How can i do that with this: RTB As Richtextbox = CType(TabControl1.SelectedTab.Controls.Item(0), Richtextbox) | |
i have a datagridview , i need to change the col(6) to combobox and filling it with data , how i can do this ?? my DGV not bounded with data , its read from sqltable | |
I want to allow other to use a vb.net application I created, I shared the executable file with them and they have Microsoft .NET Framework 4 installed (from the VB 2008 express install) but the executable will not run. I get a "File has stopped working" pop-up and that's all. … | |
Hi, I am attempting to draw graphics on a PowerPoint slide. Say I draw a line and a rectangle. What code do I add to the function to have those objects group together? Thanks, Ken | |
Hey guys, I need help. See, im trying to compare dates. if say, deadline is set and if the user is over the set deadline, it should display a message box saying that he passed his deadline. what i have so far is: If Date.Today > txtDeadline.Text Then Msgbox.Show("You've passed … | |
Please folks I nid ur help, I av a data mismatch error in criteria expression. I av a variable of data type string which I added to my OleDbcommand object the code is below: I used 2 textbox for surname and fname I av a textbox I used for calculation … | |
I AM WORKING ON A PROJECT IN WHICH I AM SAVING AN IMAGE IN ACCESS DATABASE,RETRIEVING THE IMAGE,UPDATING THE IMAGE AND THEN WHEN I TRY TO RETRIRVE THE UPDATED IMAGE I GET AN ERROR "PARAMETER IS NOT VALID" SO PLZ POST THE CODE FOR UPDATING PLS REPLY SOON ITS URGENT |
The End.