|
Books aren't written to accommodate ones business-requirements. There are a bunch of video's and how-to's on MSDN, that'd might be a useful introduction into the specific topics you request. I'd recommend "Head on C#", but it's not about VB and not about Access.
|
|
|
|
|
Hi!
I am a VB.Net programmmer. I use the SQL Server and as backend but when I deploy my application to another computer, It is required the SQL Server must be installed on another computer. Please suggest how to work with SQL database (.mdf,.ldf) without installing SQL Server on another computer becuase I cannot go everywhere for each computer to install the application If user of my application is just simple user. If there is another solution, please let me know. I will be very thankful to him/her.
|
|
|
|
|
How is the application going to be installed? Perhaps you can include it there
|
|
|
|
|
hi
how writen code in vb for 8queen genetic algoritm
please send for me source code
|
|
|
|
|
This is not the kind of site which will just give you an answer to your homework.
You must prove that you have made an attempt to solve a problem and the folks here will be happy to help you.
|
|
|
|
|
See here[^].
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
for this system do i need DAQ hardware?
TQVM
WISEL UTeM
modified 21-Nov-12 9:29am.
|
|
|
|
|
So you've slept through your entire course, not learnt anything, and now you expect someone else to write your final year project for you?
That's not going to happen.
I suggest you go and talk to your tutor to find out what your options are.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
tq for ur word.
i haven't learn about visual basic for this 5 years.
i only learnt computer hardware.
|
|
|
|
|
Friends
Please inform me how can we control the monitor brightness
in visualbasic 6.0
Thanks and regards,
Muhammed Niyas
|
|
|
|
|
A quick check on Google shows this article.
http://www.vbforums.com/showthread.php?561682-2008-How-to-adjust-screen-brightness[^]
But please remember that VB6 is a depreciated product and not alot of people will support it.
Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch
|
|
|
|
|
I need code for Export data from Gridview to Sql Server in vb.net windows application
|
|
|
|
|
..this ain't MacDonalds, so you can't "order" code like you would do with a hamburger.
The grid is called a DataGridView , not a "gridview". There are quite some examples and tutorials on manipulating data using VB.NET; what did you try?
We don't deliver ready-made solutions here, if you have a specific question we can help.
|
|
|
|
|
Gridview is in the webdev for Visual Studio... I'll bet there's a good chance he picked that because of the work "web", without understanding the differences.
That said, now you've made me hungry for a burger.
|
|
|
|
|
Bert Mitton wrote: That said, now you've made me hungry for a burger.
I said nothing about a burger..?
Now you made me hungry too
--edit
MacDonalds..
|
|
|
|
|
Hi All,
How to read the complex type data from WSDL in vb.net? I am using below code for same.I am getting 'Warning 1 Variable 'ct_BundleBalanceDetails' is passed by reference before it has been assigned a value. A null reference exception could result at runtime.' message. Please help me.
'
Partial Class _Default
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Try
Dim wbService As New WEB_APIs.Service
Dim ct_BundleBalanceDetails As WEB_APIs_SCBF.BundleBalanceDetailsComplexType()
Response.Write("Calling BundleBalanceRequest <br>")
Dim ResponseCode As String = wbService.BundleBalanceRequest(WEB_APIs_SCBF.InterfaceSimpleType.WEB, "03189719", ct_BundleBalanceDetails)
Response.Write("<br> BundleBalanceResponse ")
Response.Write(ResponseCode)
Catch ex As Exception
Response.Write("<br> API call is failed <BR>" & ex.Message)
Finally
End Try
End Sub
End Class
dadsadasd
|
|
|
|
|
If the BundleBalanceRequest just sets the ByRef parameter, you can either ignore the warning or set the variable to Nothing .
e.g.
Dim ct_BundleBalanceDetails As WEB_APIs_SCBF.BundleBalanceDetailsComplexType() = Nothing
I think computer viruses should count as life. I think it says something about human nature that the only form of life we have created so far is purely destructive. We've created life in our own image.
Stephen Hawking
|
|
|
|
|
Hi Zac,
Thanks for reply.I am facing below mentioned error.
Please help me.
WSDL:
<xs:element name="BundleBalanceRequest">
<xs:complexType>
<xs:sequence>
<xs:element name="Interface" type="tns:InterfaceSimpleType"/>
<xs:element name="MSISDN" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="BundleBalanceResponse">
<xs:complexType>
<xs:sequence>
<xs:element name="ResponseCode" type="xs:integer"/>
<xs:element name="ResponseData">
<xs:complexType>
<xs:sequence>
<xs:element name="BundleBalanceDetails" type="tns:BundleBalanceDetailsComplexType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
Code:
Try
Dim wbService As New WEB_APIs_SCBF.Service
Dim ct_BundleBalanceDetails As WEB_APIs_SCBF.BundleBalanceResponseResponseData
Response.Write("Calling BundleBalanceRequest ")
Dim ResponseCode As String = wbService.BundleBalanceRequest(WEB_APIs_SCBF.InterfaceSimpleType.WEB, "03189719", ct_BundleBalanceDetails)
Response.Write(" BundleBalanceResponse ")
Response.Write(ResponseCode)
Catch ex As Exception
Response.Write(" API call is failed " & ex.Message)
Finally
End Try
Output:
Calling BundleBalanceRequest
API call is failed
There is an error in XML docuement (1,580).
dadsadasd
|
|
|
|
|
how to call SQL functions in Visual Basic 6.0
|
|
|
|
|
You don't. VB6 is deprecated and no new software is written in the language. It's no longer supported, and no longer sold.
There are quite some examples on how to do this using VB.NET, which is available for FREE.
If you "must" use VB6, you'll have to research yourself. The preferred way in VB6 was called ADO[^], but you could also use ODBC.
|
|
|
|
|
Hello,
I'm working on a project with a database. I'm taking the selected item from a databound Combobox and using the selected text to get a row from another table.
I'm using:
Microsoft Visual Basic 2008, Professional Edition
Here's the code:
sStringTemp2 = "Name = '" + sStringTemp + "'"
Dim tRow As DataRow() = tPlazimBases.Select(sStringTemp2)
When I set a watch for my row variable it shows it loaded the specific row from the table. But I'm unable to figure out how to put that row data in to text boxes or strings.
I'm not sure if when I did the 'select' function if that moved the selected row of the datatable to the row I'm looking for and I should then refer back to the datatable
or
If I should be using the tRow directly to get my information to load into form components
Any links or code samples would be appreciated!!
Thank you for any help!
|
|
|
|
|
Use your tRow variable:
txtName.Text = DirectCast(tRow("Name"), String)
or
txtName.Text = DirectCast(tRow(0), String)
I don't speak Idiot - please talk slowly and clearly
"I have sexdaily. I mean dyslexia. Fcuk!"
Driven to the arms of Heineken by the wife
|
|
|
|
|
Thank you for your help.
I tried your sample code but I still get and error, I've also tried tweaking is a few ways and I still get the following errors:
"Conversion from string "Name" to type 'Integer' is not valid."
"Value of type 'System.Data.Datarow' Cannot be converted to 'String'"
"Conversion from string "Name" to type 'Integer' is not valid"
Here is how I'm building my search string:
sStringTemp = CBPlazim.SelectedValue.ToString()
sStringTemp2 = "Name = '" + sStringTemp + "'"
CBPlazim is a Combobox that is displays the 'Name' column from the table I'm trying to 'pull' the row from.
It's pulling the right row in the second table. Like I mentioned above, I set a watch on the two string variables and when I have it stop before attempting to put the row somewhere, it's the right row.
Am I just going about finding the row I want in the second table wrong?
I've confirmed that the Column 'Name' in the table is a string variable
Do you know if when I'm using the search code, does it move the active record to the row I'm looking for?
modified 18-Nov-12 22:41pm.
|
|
|
|
|
Try this:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim dt As New DataTable
With dt
.Columns.Add("Name")
.Columns.Add("Address")
.Columns.Add("Salary")
.Rows.Add(New Object() {"John", "123 Some Street", 1234})
.Rows.Add(New Object() {"Frank", "15 TheOther Street", 1400})
.Rows.Add(New Object() {"Harry", "3 No Street", 450})
End With
Dim dr As DataRow = GetDataRow(dt, "John")
Label1.Text = String.Format("Name = {0}{3}Address = {1}{3}Salary = {2}",
dr("Name").ToString, dr("Address").ToString, dr("Salary").ToString, vbCrLf)
End Sub
Private Function GetDataRow(ByVal dt As DataTable, ByVal name As String) As DataRow
Dim sStringTemp2 = "Name = '" + name + "'"
Dim tRow As DataRow() = dt.Select(sStringTemp2)
Return tRow(0)
End Function
Note that your tRow object is an Array; Dim tRow as DataRow() , so we returned the first result, you may need to iterate through the array if there ismore than one result returned from the Select method.
Hope this helps.
I don't speak Idiot - please talk slowly and clearly
"I have sexdaily. I mean dyslexia. Fcuk!"
Driven to the arms of Heineken by the wife
|
|
|
|
|
Thank you again.
I didn't use your example fully but finally figured out how to use the datarow I created by tweaking what you posted. I noticed you put tRow(0). I had been using that to try and access the elements. When I typed that from your example it gave me the option of .item and I tried that. Thanks again!
I used:
tRow(0).Item(15)
and that worked to access the element in the datarow!!!
|
|
|
|