|
I was able to determine that I needed to use:
labels.SetValue( SeriesComponent.Label, datapoint, monthArray(dataPoint))
|
|
|
|
|
OK, great!
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Can you use just a connection string to connect to a database or do you always have to define it using the database connection dialog? I am using vb.net 2005 express. Also if not is it possible in another language?
|
|
|
|
|
Sure. It's a Connection String. All you need to do is specify what the SQL Server name is and the database to use:
Dim conn As New SqlConnection("Data Source=serverName;Initial Catalog=databaseName")
This is, of course, a bit different for an Access database:
Dim conn As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=filePath;")
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-- modified at 15:01 Friday 10th February, 2006
|
|
|
|
|
what about an oracle connection?
|
|
|
|
|
|
I love that site....
do you need to investigate an online backup[^] company
|
|
|
|
|
This is what I am using to populate a combo box.
cboSectionTitle.DataSource = premiumsListDataSet
cboSectionTitle.DisplayMember = "SectionTitle"
cboSectionTitle.ValueMember = "SectionID"
I get an error on the ValueMember line as follows:
can not bind to the new display member
I think there is a problem with the data but do not see what it is.
P.S. The SectionID column is not unique
in the table the fields parentID and SectionID are both primary keys
Thanks
|
|
|
|
|
Does that DataSet object have more than one table?? Bind to the appropriate Table or DataView in the DataSet, then the DisplayMember and ValueMember will actually mean something.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I am a vb/VB.Net programmer. Pls i need a vb code or snippet on how to enroll fingerprint, save it to the database and later use it to verify a life finger print.
Any assistance will be appreciated
aransiola
|
|
|
|
|
Google for ""vb fingerprint free"[^]" and you should find what you're looking for.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I need to convert 14 numbers to 32bit words. any suggestions are appreciated.
|
|
|
|
|
Could you be more specific? Do you mean that you have strings with numbers in decimal format that you want to convert to strings with numbers in binary format?
---
b { font-weight: normal; }
|
|
|
|
|
hellow ..
here is my problem ..
i am codeing a doing reports in the crystal ...
i need to run them on differnt databases , but when i do the report i bind them to the server in my computer ...
then when i run it on other computers it ask for logon information , but i do not wanna the user every time he wanna view report to enter the server info ..
i know there is a databaselogon command in the vb.net , but it is not working for me ..
anyone have suggestion or can offer a sample code ?
thxx
|
|
|
|
|
I need to print Code 39 barcodes on a Star printer. In order to do this I need to send a series of control string directly to the priter like Chr(27) + Chr(98) + Chr(52) + Chr(50) + Chr(49) + Chr(57) + message+ Chr(30).
How could I code suing the System.Drawing.Printing object. I've tried to using DrawString function, but I've just get the text printed out, not the bar code.
Anyone have any suggestion
Anh.Vu@Pb.com
|
|
|
|
|
|
hi friends
How to develope Barcode Reader program in VB and by RS232 port
can you help me.
thx, kamal
|
|
|
|
|
Hi I'm also trying to create a program to automatically read a bacode data from a usb barcode reader in VB .net. Anybody knows how to do this?
|
|
|
|
|
Hi
I'm using the combo selectedIndexChanged Event to trigger the population of a lot of data (Indented Bill of Materials).
If the combo has focus and you move the mouse wheel... Well lots of events and lots of data.
How can I disable the mousewheel for this combo.
I tried to use e.handled in the mousewheel event, but handled is not a method that can be used.
Any ides?
Cheers
Richard
|
|
|
|
|
the erro:
Format of the initialization string does not conform to specification starting at index 0.
"Dim Myconn As New SqlClient.SqlConnection("ConnectionString2")"
this is the problem line.
|
|
|
|
|
The connection object will not read the value from the config file, you have to do that yourself and pass the value to the connection object.
---
b { font-weight: normal; }
|
|
|
|
|
how can i do that?can u show me an example.
|
|
|
|
|
Example from MSDN:
Public Sub ReadMyAppSettings()
Dim appName As String
appName = ConfigurationSettings.AppSettings("Application Name")
Console.WriteLine()
Console.WriteLine("Reading AppSettings")
Console.WriteLine("Application Name: " & appName)
End Sub
The ConfigurationSettings class is in the System.Configuration namespace.
---
b { font-weight: normal; }
|
|
|
|
|
Hi guys,
When I used visual studio 7, to send a mail I used System.Web.mail.namespace .
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Imports System.Web.Mail
Public Class Form1
Dim obj As System.Web.Mail.SmtpMail
Dim Attachment As System.Web.Mail.MailAttachment
Dim message As New System.Web.Mail.MailMessage()
Private sub send_Mail()
obj.SmtpServer = text_Server.txt
message.to = text_To.txt
message.from = "\" & txtFromDisplayName.Text & "\ <" & txtFrom.Text & ">"
message.BodyFormat = MailFormat.Text
message.Subject = text_Subject.Text
message.Body = txtMessage.Text
Try
obj.Send(message)
catch ex as Exception
MsgBox("Problem with sending..please retry!",,"Attention!")
End Try
End sub
End Class
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Now in Visual Studio 2005 (8), when I try the same code, the program "suggests" me to use the latest System.Net.Mail.namespace because System.Web.Mail.namespace is absolete!
So,is there someone to help me with this? I try to find examples in Web, but I find only examples in C# .net not in vb .net. Help me please!
Thanx in advance.. ;)
|
|
|
|
|
The syntax is mostly the same. Use:
<br />
Dim obj As System.Net.Mail.SmtpClient <br />
Dim Attachment As System.Net.Mail.Attachment<br />
Dim message As New System.Net.Mail.MailMessage<br />
A couple of the parameters are different - for example .host instead of .SmtpServer, but apart from that it's pretty much the same. Intellisense should be able to fill in anything else you need.
|
|
|
|