20,285 Topics
![]() | |
I have a file which should contain only numeric data. Sometimes, i notice that junk characters or some alpha chars coming in the file. I want to write a script which would delete those unwanted characters and give me only those numbers. It would be better if i could copy … | |
Hi all! I'm trying to create search criteria for searching my sql server database. It selects the correct data when you select an option to search by; however i'm trying to make it so that if nothing is selected in an option it selects all data. the code i'm using … | |
Public Sub ValidateID(ByVal IDno As String) Dim a As Integer = 0 For i As Integer = 0 To 5 a += CInt(ID.Substring(i * 2, 1)) Next Dim b As Integer = 0 For i As Integer = 0 To 5 b = b * 10 + CInt(ID.Substring(2 * i … | |
Hi, I'm trying to change the button backcolor once the Done event is completed. But it didn't work.. [CODE] Public Event Done() Private Sub checkinput() 'Port = ReceivedString.Split("&") 'For i = 0 To UBound(Port) 'Debug.Print("Port: " + Port(i)) 'Next i RaiseEvent Done() End Sub Private Sub changecolor() Handles Me.Done RD6.BackColor … | |
When we run a program and if the program is having a error...then we a popup message saying that there is a error in ur program.... The error message has a option of "Dont Show this message next time" I have enabled the Dont show me error message next time. … | |
Right away, Im fairly new to vb.net. Is there a way to have a local db cache that will use a connection string saved in settings? IE: program obviously has a central db remote computers will sync with when connected. can I save the connection string in the program settings … | |
This may seem like an easy question, but I am new to vb and though I have searched and searched I have come up empty. What I am trying to do is create a piece of software that will give users access to certain things based on their level. almost … | |
I received this error whenever I update an int(3) type field. [B]Error: 438 public member close on type integer not found[/B] This is my code [CODE=vb] conn.ConnectionString = "server=localhost;user id=root;password=;database=test" SQL = "UPDATE testTable SET int = 1 WHERE Name= 'Bob'" Try Dim myData With myCommand .Connection = conn .CommandText … | |
Basically what I want is to have the timer be reset back to 3 sec once the [COLOR="red"][B]Reset button[/B][/COLOR] is clicked. Preferably, I want the code to be in the same sub as the timer, though any better ideas are most welcomed. I've already put in comments where i want … | |
the idea of what i want to do is to display the cpu temperature in a label that will refresh through a timer. i have search several sites including this one that do have the code and how to do it, but then my problem is that several items are … | |
Hi everyone. I am pretty new to Visual Studio .NET and would love to use it. I can understand most of the coding syntaxs in VB. Currently I dont know where to start using VB .NET. Anyone who can help me show me a bit of a highlight where to … | |
hey all, i'm working on a code that i want to start creating new classes with but i want to know if there's a more direct way to send the variables used in the form to a new class for storage. for example i've got this on a form... [code] … | |
Hi all; I'd be really grateful if someone could assist me with this problem. What i am trying to do is create a query that pulls information from two different tables: tblBooking and tblConcessions. tblBooking holds the ID number of tblConcessions as a ForeignKey. What i need within my statement … | |
Hi, I am creating an Excel 2007 add-in using Visual Studio 2008 and I have a Windows Form that allows a user to select a date. What I want to do is store that date in the Workbook that the user saves so that the plug-in can reference that date … | |
m using access 2007 and vb 2005 this is my code [CODE] Dim drNewRow As DataRow = m_DataTable.NewRow() drNewRow("Code") = txtColourCode.Text.Trim drNewRow("Colour Name") = txtBaseColour.Text.Trim drNewRow("Price") = txtPrice.Text.Trim m_DataTable.Rows.Add(drNewRow) m_DataAdapter.Update(m_DataTable) [/CODE] | |
1) What are the benefits of using Class Library? Secondly tell me one thing, I was asked in one of my interviews.Different types of cursors?? As u all know, cursors are of diff types in ADO,RDO,DAO??? So which answer to give???? Do I all have to know all the cursor … | |
Hi, I am facing prblm in selecting compbobox... I have a 2 combobox...cboxSelunits and cboxseldept In selected index change of Cbxunit i am filling CbxDept..... and in selected index change of cboxseldept i need to populate the treeview ----------------------------------------------------------------------- Private Sub cboxSelunits_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles … | |
[code]Public Class Form1 Private Sub Button1_Click(ByVal sender As _ System.Object, ByVal e As System.EventArgs) - Handles Button1.Click Button1.Text = "Hello World" End Sub Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load End Sub End Class[/code] The name of the button isn't changing to Hello World... Anyone … | |
Hi all, I have a program that need to insert the data to the database. In the form, I have 5 textbox control which required the user to insert the data in the database. To create this, I am using the visual studios 2005 and sql server 2005 for the … | |
Hi I am working on a page which requires the grid to be populated with 'n' number of rows, as the user enters the number 'n' in a text box. Can anyone help me out in this? | |
Hi When i use the currency expression in my format string, by default it brings the Pound symbol (£). How can I edit my code for it to be a dollar sign? [code] Private Sub txtPrepaid_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtPrepaid.TextChanged If txtPrepaid.Text <> "" Then … | |
Hi All, I'm trying to find a way to display a table to the user using mySQL DB. [better then the DataGrid View] The table should have options to merge cells for related items and to embed buttons in the cells. Thanks for your help. | |
Hi, I'm new to VB :sweat: Basically what I am trying to achieve is a browse button where the user is required to find a location for the file that my program will be creating. I'll give an example. |TextBox1| (Button4) When button4 is clicked it will open up a … | |
I am required to use Microsoft Visual Studio for my VB.net class. My question is this. If I use MS Visual Studio 2008, can my instructor, who uses MS Visual Studio 2003 or 2005, access my files? I posed this question to my instructor before posting this and he could … | |
Hi, I'm trying to pass a string from form1 to form2. The string will change dynamically change as it receive inputs in form1. I've tried some example on passing by property and passing by constructors. But, I can't read the string in the second form. Any pointers? Thanks. Dan | |
Hi; I am new to VB.net and am developing a memory quiz. The quiz contains more than 100 questions imported from access 2002 db. For the learning process, I need to run the game again and again. At the moment, I can't randomize the question order, I am getting the … | |
Hi All, Can I Show my file-dialog form as Right-to-Left? because Persian language is Right-to-Left. Thanks. | |
Hi all, I am doing a project on abstract the numbers that i get from the datagridview to append it on the other textbox. Ok I elaborate more. I have 2 form which is form1 and form2. For the form1, the view is 2 textbox and a 'To' button. when … | |
Hi all, I am doing an application where I want to display the numbers in the textbox which the numbers is separated with a comma. could anyone help me? After getting the numbers from the datagridview, it will display in the textbox but I want to display it in the … | |
Hi all :) First of all, sorry for my bad english :) Actually I'm creating a little program that should replace Vista's welcome center (that one that shows the system info's, microsoft's related links, etc..). So far I've made the "header" part of the form (see attached image) and now … | |
hey all, im sort of new on .net and i was hoping if u can help me again. i am to search a a student record on sql server 2005 database. my problem is, i can search for records but i failed to display their pictures in the picturebox. here … | |
Hii, i am working in Vb.net 2008 And Sql 2005. My problem is dat i have four columns. For eg: Name, Department, Address and Phone no. In DGV first column , name is dispalyed in DataGridViewTextBoxColumn second columns is , Department which is displayed in DataGridViewComboBoxColumn. which i have to … | |
1)What are different types of Cursors? Explain me in detail plz. 2)What are diff types of locks? In some sites- Four types of locks availbale in ADODB 1.Optimistic 2.pessimistic 3.batch optimistic 4.readonly In some sites Forwardonly , lock,adLockUnspecified What are exact locks,can somebody tell me? 3) What is Z order … | |
hi, i am new on vb.net and i'm facing problem in datagridview. what i need a population of data from database(access) and then after editing, inserting all rows of datagridview in a new table in access. population in gridview from database is done but the problem is with insertion back … | |
hi every one i have many times to discover the right way to create a sales bill with advanced way but all my results goes to fail i try to create a view from my sales table sales table fields is : 1- company name 2- responsible name 3- date\time … | |
I am having a problem in displaying image to the web browser using html. I can only make it when the image and the html file is in the same folder. Is there a way to display an image getting it from the different folder of my hard drive? | |
Hey everyone, I know there are literally thousands of questions and answers on the internet for getting the SCOPE_IDENTITY(), but I haven't found a single one that relates to my particular situation... So here we go... I've decided to use VS .NET's built in Data Components, which in my case … | |
In VB.net (2008 or 2005), how can I ping a website (like for example [url]www.bigtreeworld.com[/url]) and store the website's IP address to a string? | |
I use MYSQL 5.0 I have a table with a field named ArticlePrice. The content of the ArticlePrice field looks like this [COLOR="red"]10.50[/COLOR] My question is: is there an environment variable or system variable MYSQL who can change the locale currency in to Europe setting . So that the content … | |
Very very new to visual basic.net (first day actually) but struggling already with the basics. I am attempting to create a single form application taking data from an existing MS Access database using SQL query. All works great, I can fill the dataset, seek, sort and display all my data … | |
Hi All, In my application, i have a datagridview with 5 colums, at the form load the datagridview contains one row, I am showing a combobox in each of the 4 columns to select the values (i doesnot type any thing in that 4 columns), when i press tab the … | |
Application failed to initialize 0xc0000135 I got above problem while trying to run a .exe of a vb.net program I wrote.(in a different machine). How can I solve it? | |
the below action working just on the first mail in inbox how can i customized it to work on all mail item ----------------------------------------------------------------------------- Public Class ThisAddIn Private WithEvents mailItem As Outlook.MailItem Private WithEvents items As Outlook.Items Private Sub ThisAddIn_Startup(ByVal sender As Object, ByVal e As System.EventArgs) _ Handles Me.Startup Dim … | |
Hi All, Can I have a Listvew in which Groups have ability to expand or shrink? Now I Generate a Listviw in which groups are expand always, in Vb.Net. [CODE][/CODE]for i as integer=0 to Number 'Add Items ListView1.Items.Add(i) 'Add tow SubItems ListView1.Items(i).SubItems.Add(1) ListView1.Items(i).SubItems.Add(2) next 'Generat a Group ListView1.Groups.Add(New ListViewGroup("BaSalam", HorizontalAlignment.Left)) … | |
hello all, I have an access database and working with vb 2005. I have one date column which is in MM/dd/yyyy format but my problem now is that if i search for date less than (it will use the month alone.) here is my code for search criteria. [CODE] search … | |
I want to know how to send a POST XML command to a web server. I need to do this in order to upload some data in XML format. Thanks! | |
Hi, i am using vb.net2008 and mySql 5.1.36 to do an assignment. I need to count the number of seat available in a table in my database. When i run my code, the error [COLOR="Red"] MySQL :: invalid attempt to access a field before calling Read()[/COLOR] occurred in the code … | |
hey everyone i need help with navigating images in a database, i was able to insert image to a database. btw, i am using sql server 2005 and visual studio 2008. i only converted a sample code of visual c to .net and i was able to do so, but … | |
The basic concept is that you have a VB form to input two distiguishable words into a single text box. The two words have a length specification were the first word must be 5 characters long and the second must be 6 characters long. A single character seperates the two … | |
How to Change Default exe Icon in vb.net Windows Application it is not from project- properties- application- icon. when form is in run mode then its showing visual studio icon on task bar i want to change that icon, and i also want to change icon for setup.exe. pls its … |
The End.