|
the error is :
Value of type 'System.Configuration.ConnectionStringSettingsCollection' cannot be converted to 'System.Data.SqlClient.SqlConnection'.
so?
|
|
|
|
|
Dude i am not vb programmer but maybe i can help by this
Imports System.Configuration
..
Dim ConnectionStringSettingsCollection c As New ConnectionStringSettingsCollection
Dim cc,command As String
cc=c[""urconn"].ConnectionString;
command="select * from Customers"
Dim SqlConnection scon As SqlConnection()
scon(cc)
Dim SqlCommand cmd As SqlCommand()
cmd(scommand,scon)
...
|
|
|
|
|
You have posted similar questions before. It seems to me that you really are struggling with this topic despite the help provided by others. May I respectfully suggest that you go back to basics and read up on how to interact with these objects within VB?
...Steve
"Give a man a fish and you've fed him for a day. Teach him how to fish and you've fed him for life." (Translation: I'll show you the way, but not write the code for you.) I read that somewhere once
-- modified at 18:58 Thursday 2nd March, 2006
|
|
|
|
|
hi
how to access a DLL in VB?
"Every morning I go through Forbes list of 40 richest people in the world. If my name is not in there, I go to work..!!!"
|
|
|
|
|
VB6 Declare Statement[^]
VB.NET Declare Statement[^]
The exact details of using your particular .DLL will be up to your knowledge of that .DLL. Without any documentation on it, it's near impossible.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
i want to access sql server in a defferent location. I pass the connection string through a web service on the server but it gives me this exception
system.web service exceptionerror server was unable to process request. Server does not exit or access denied
-- modified at 6:25 Thursday 2nd March, 2006
|
|
|
|
|
|
what access level are you trying to access it from? if you can't get in with the sa login it's possible you're hitting the firewall at the host...?
Regards,
Johny Rodriguez
The GDC, New York.
|
|
|
|
|
Hello Everybody
i got a problem , iwant to save a webpage trough my vb application i know the url of the page.
i want to save the page in the same manner as we do from the file menu as we click save as coommand.Please helm
Thanks
|
|
|
|
|
|
thanks i got the solution now your code is working
Thanks
|
|
|
|
|
hi,
How to add a folder to an ActiveX dll Application.
also how to save a ActiveX dll application as .vpb
plz help
bye
Paritosh
|
|
|
|
|
You can't add a folder to an application. An application is not a container, so how could you possibly add a folder to it?
Or are you asking how to add a folder for an ActiveX .DLL PROJECT?
What is a .VPB file? You can't save as application as an arbitrary file. What are you trying to do with this?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hi i am doing a project , in which i want to add a radio buttons as a new column, i mean there should be a new column which consists of radio buttons ,its a window application , plz help me out
...sam...
Impossible is nothing
|
|
|
|
|
How to count freqency of letters appeared in a textbox as input?Let say we type 'I believe', thus the code should count how many each letter appears and also in percentage.
e.g. Letter 'E', Frequency = 3, percentage = 0.3 % (out of all letters)
Any code example on this? thank you~
mijan
|
|
|
|
|
mijan wrote: How to count freqency of letters appeared in a textbox as input
Homework question?
How do you think the problem would be solved?
Here are some highlevel hints: Create some way to map letters to a count. Iterate through the string and add one to the relevant count for each letter you encounter. Add one also to an total counter (so you know how many letters there are in total, so you can work out the percentage) When you finish the iteration of the string, iterate through the map and output the frequency of each letter and its percentage (by the way, you need to work on that calculation as the letter 'E' occurs 37.5% of the time, not 0.3%)
If you have a problem on any particluar aspect, show us what you tried and then we can help you fix it.
ColinMackay.net
Scottish Developers are looking for speakers for user group sessions over the next few months. Do you want to know more?
|
|
|
|
|
I've tried using javascript, which kind of easier.I only tried out two letter which 'a' and 'b'..how can i proceed until 'z' in much easier way?
var letter, length, total, percent;
total = 0;
total1 = 0;
letter = window.prompt('Please enter a letter', '');
length = letter.length;
var my_array = letter.split("");
for(var i=0;i<length;i++){
if( my_array[i] == 'a' ){
total++;
percent = total/length * 100;
}
if (my_array[i] == 'b' ) {
total1++;
}
}
document.write('The number of \'a\'s you have input is ' + percent)
document.write( 'The number of \'b\'s you have input is ' + total1)
mijan
|
|
|
|
|
mijan wrote: I've tried using javascript
Given that this is the Visual Basic.NET forum, I would have expected you to be using that.
Anyway, did you think of using an array to hold the totals in? Create an array with 26 elements starting each at 0. item[0] represents A; item[1] represents B; and so on........
ColinMackay.net
Scottish Developers are looking for speakers for user group sessions over the next few months. Do you want to know more?
-- modified at 11:21 Thursday 2nd March, 2006
|
|
|
|
|
how do i connect my database to my visual studio express project. When i add information on my form it must then be added to my database in the specific tables. Please i need your help, can your helpe detailed.I am using Microsoft Access 2003.
Please Help: SOS
Leavashni
|
|
|
|
|
Hi,
I want to make our VB Project support multilanguage/multilingual. As of now it doesn't support all the characters. Please sugguest & Help.
Thanks
Ranjan
|
|
|
|
|
There is the language Property for every form. Begin with one language. Enter the test property for every control, then change the language of the form and fill the text properties for the new language. If the language is found it will be set to the windows startup language (I hope so, didn't tried it on my own, but a fellow worker did this).
Greetings,
Ingo
------------------------------
A bug in a Microsoft Product? No! It's not a bug it's an undocumented feature!
|
|
|
|
|
Hi, Thank you for the response. I am not able to find the Language option for forms.Please provide details.
Thanks & Regards
Ranjan
|
|
|
|
|
Well, you find it in the property-window (there I found it) when you have selected the form itself.
Greetings,
Ingo
------------------------------
A bug in a Microsoft Product? No! It's not a bug it's an undocumented feature!
|
|
|
|
|
I'm doing the movie ticket reservation system. Is there any related topic. The problem is there is seat plan function for user to choose for their seats. What tools shall i use and is there anything related that might help? Thank You..
Siew Chin
-- modified at 3:51 Thursday 2nd March, 2006
|
|
|
|
|
Specifically, what part of this are you having a problem with? The UI, database, ...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|