Hi Kevin I added the above lines of code. I am getting the same error. However, Thanks for your help :)
united18
Posts
-
Problem in SQL Connectivity code -
Problem in SQL Connectivity codeHi, The following code is generating an error....I have put comments in front of the line that generated error. Can anybody help me in this? :) Thanks,:):-O Public Sub ConnectSQL() Dim conn As New SqlClient.SqlConnection Dim da As New SqlClient.SqlDataAdapter da = SqlDataAdapter1
'This Adapter is manually created using the Wizard
conn = SqlConnection1'This Connection is manually created using the Wizard
Dim selectCommand As New SqlClient.SqlCommand("SELECT cFName from PersonalDetails")'Selecting The first column from the table
da.SelectCommand = selectCommand Dim Reader As SqlClient.SqlDataReader Dim RecordCount As Integer = 0 conn.Open() Reader = selectCommand.ExecuteReader()'This line is generating an error!!
Dim Records As String While Reader.Read() Dim i As Integer = 0 For i = 0 To Reader.FieldCount - 1 Records &= Reader(i) & "-" Next RecordCount += 1 End While -
Help me please... TextBox Control1)yes u should try the keydown() 2)to replaceonly a part of a textbox u should use replace func. :- TextBox1.Text = TextBox1.Text.Replace("IBeam", "new text")
-
Packaging/Deploying a VB.Netgo to new project and select 'setup and deployment projects' from the left pane. and then u can either select 'setup wizard' or any other template as per your convenience. Before that test ur software for any bugs.
-
Help me please... TextBox Control"I need that when i type in textbox... if text starts with "<" then i get combobox with items for html tags... buth annywhere in textbox if i type i get thet... Get it now?" in the key press event of the textbox u can check for < or .......if(textbox1.text="<") then u can either i) create a combo box or u can set the visible property of a combo box to true --- (combobox1.visible=true) sorry can't get ur second ques - is it that u wanna fetch a value from a dialogbox and use it in a textbox???
-
i need help please anyone- prompt for and accept the day’s date cout<<"Enter date"; cin>>date; (but before this u need to create a variable for date - i guess u already know that) 2) - initialise all the hours in the day to “free” u can use a for loop for this. and yes for 'hour' integer variable u need to create an int array. 3)- repeatedly prompt the user for an hour number i don't understand.....repeatedly means what intervals it should follow? 4) - if the hour is “free” mark it as “booked” use the if else construct for this 5)- otherwise tell the user “already booked” same if then used as in 4) 6)- display the day and its appointments in a for loop u need to use cout. I hope that helps u? Regards
-
Help me please... TextBox Controlpls can u tell step by step what exactly u want? Regards, uni
-
Alphanumericu can fetch the value of textbox and store in a string variable and perform the validation on the string variable.
-
string concati know this sounds strange, even u can check like this when u get time and if possible clarify me if u think i am making a mistake. Whatever, atleast this way (labels) it is working. btw the class i was using for fetching id3 tags from mp3 files is : http://www.codeproject.com/vb/net/vbmp3header.asp
-
string concatyes.... u r right. 1) i will copy the code rather than typing it here. 2) objMP3V1.Frame(MP3ID3v1.FrameTypes.Title) .This code return the value of title and similarly objMP3V1.Frame(MP3ID3v1.FrameTypes.Artist) returns the value of Artist. But when i try to concat by either i) artist + title or ii) artist & title ---- it returns only artist's value. But this problem was solved when i created 3 label fields :- label1, label2, label3. what i did was:- label1.text=objMP3V1.Frame(MP3ID3v1.FrameTypes.Title) label2.text=objMP3V1.Frame(MP3ID3v1.FrameTypes.Title) label3.text=label1.text + "-" + label2.text With this code it was concatening. But in this case also if i make these 3 label fields invisible ('label1.visible=false') then it doesn't concatenate again. So i have to always set the visible property to true of these 3 labels. This is quite strange though. Anyways thanks a lot for your help. Regards
-
File Properties - mp3thanks a lot. my application is now complete. I will post the application as soon as i design it fully and deploy it. strings were not concatenating so i created labels and then concatenated them.
-
string concatI tried this also, then also it is not concatenating. Both ways i do not get a compilation error, but only one value is stored in 'newName'
-
string concatsorry actually i wrote dim newName as string it was just a typing mistake here. in the program i wrote 'newName' only and not 'new name'
-
string concatHi, I am facing a strange problem in this. http://www.codeproject.com/vb/net/vbmp3header.asp When i try to trap the value of artist and title as: dim artist as string artist = objMP3V1.Frame(MP3ID3v1.FrameTypes.Artist) dim title as string title = objMP3V1.Frame(MP3ID3v1.FrameTypes.title) dim new Name as string newName = artist + title The variable 'newName' does not contain the values of both title and artist. It only contains of artist whereas individually i am able to see the values of artist (msgbox(artist)) and title (msgbox(title)). Pls reply within half hour.......
-
File Properties - mp3Hi, I am facing a strange problem in this. When i try to trap the value of artist and title as: dim artist as string artist = objMP3V1.Frame(MP3ID3v1.FrameTypes.Artist) dim title as string title = objMP3V1.Frame(MP3ID3v1.FrameTypes.title) dim new Name as string newName = artist + title The variable 'newName' does not contain the values of both title and artist. It only contains of artist whereas individually i am able to see the values of artist (msgbox(artist)) and title (msgbox(title)). Pls reply within half hour.......
-
File Properties - mp3Thanks :)
-
File Properties - mp3In mp3 files there are tags/properties of Artist Name, Song Name, Album Name. Is there any way through which i can fetch these values (provided i have a list of mp3 files) into variables. Pls help Thanks :-0
-
BrowseThanks Steve. :-O
-
BrowseHi, I am developing an application in which i have to create a browse button and a list box. as soon as the user clicks on the browse button, he gets an option to choose a directory from the hard disk. As soon as he chooses a folder, the contents of the folder are displayed in the list box. Can someone help me on this? Thanks :-O
-
installation problemWhen I am trying to install .NET i am very much able to install 'Disc 1' and 'Component'. But after I install Disc 1 it does not prompt me to enter Disc 2 and even if I enter Disc 2 there is no setup file in it. Please suggest. :confused: UNI