|
Does it play just using Windows Media Player?? Don't use your application to try and play it, just launch WMP.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Yes, WMP works fine
Confusing....!
|
|
|
|
|
I have created a project that includes a dataset pointing to a SQL Server Table "Equipment". When I build my project I am getting the following errors in the Error List:
1.) Reference to a non-shared member requires an object reference - I've got several of these errors on the file Equipment_Dataset.vb (which VB.NET generated automatically for me). The real kicker is that the errors are in the Data Access Attributes.
i.e.
<system.diagnostics.debuggernonusercodeattribute()> _
Friend Sub New(ByVal rb As System.Data.DataRowBuilder)
MyBase.New(rb)
Me.tableEquipment = CType(Me.Table,EquipmentDataTable)
End Sub
The System has the squiggly blue underline attached to the Error message
2.) Data is not a member of String
Again, the error is located in the file Equipment_Dataset.vb (auto generated by VB), but this time the error is on the following code:
Dim previousConnectionState As System.Data.ConnectionState = Me.Adapter.UpdateCommand.Connection.State
If ((Me.Adapter.UpdateCommand.Connection.State And System.Data.ConnectionState.Open) _
<> System.Data.ConnectionState.Open) Then
Me.Adapter.UpdateCommand.Connection.Open
End If
The System.Data has the squiggly blue underline attached to the Error message.
I cannot find help on this anywhere. Do I need to add a particular reference to my project? Am I doing something wrong?
Help!
Thanks,
Trav
|
|
|
|
|
The above code is interesting, but I already have a connection, and am passing the row id to the module. All I want to do is get the information from that row of data. There must be an easier way? Thanks
sdkgolf
|
|
|
|
|
Hey all..
i'm sort of new to this..but please help me on this one...
i'm trying to find a program that can handle a three way connection between 3 or more laptops. more specifically, i need every node to be able to receive messages from other node and then forward them to the nodes that havent received it yet. the case that i'm trying to handle is the hidden station problem in the case of a wireless ad hoc network between 3 or more laptops or nodes. if a node sends a message to another node, i need the receiving node to forward that message to the nodes that its connected to that are not in turn connected to the original sending node.
if no such application exists...which i doubt..but i cant find one anyway...at least tell me what i should be looking for.
thx!
Ghassan.
|
|
|
|
|
You need a server that all the laptops can get to because you can use that server as a hub where all the laptops would connect. when a laptop sends a message, the program on the server will distribute the message to every laptop logged in.
Otherwise how do you know what laptops are on line and managing the connections and the distributing of messages would be a nightmare.
my humble opinion of course....
Nathan
|
|
|
|
|
hello
I use wizard of VS.net 2005 for access.
I push the save button but it not save in access.
please help me.
thanks for your help
|
|
|
|
|
Hello
thanks for your answer .
my database is access.i connect it to the VB.net 2005 and drag the one feild in form and VB.net 2005 create dataset,BindingSource,dataAdapter,BindingNavigator.
when I push the save button in BindingNavigator but when i exit my program and run it agian nothing save in my access database.
i'm not add Oledbconnection because it's work but not save the data in access data base
please help me
|
|
|
|
|
I still don't understand what you mean. Your description is still too vague.
alek hunter wrote: i'm not add Oledbconnection because it's work but not save the data in access data base
Without a connection to the database nothing will work because the application will not be able to connect to the database in order to issue it with instructions. Especially instructions to insert data.
|
|
|
|
|
hello
I use wizard of VS.net 2005 for access.
I push the save button but it not save in access.
please help me.
thanks for your help
|
|
|
|
|
You're going to have to add a lot more detail to the question than this.
Which wizard did you use? What do you want to do with the Access database? What Save button?
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Countered the nutter. I hate it when you post a perfectly valid request for more information to help solve the problem and someone votes you a 2! What is wrong with some people?!
|
|
|
|
|
Is there an easy way to cast from the checkbox.checkstate values of unchecked, checked and indeterminate to an integer? Shouldn't I be able to indicate in my checkbox dialog what the corresponding integer values should be?
thanks in advance
|
|
|
|
|
i = CInt(CheckBox1.CheckState)
or
i = CType(CheckBox1.CheckState, Int16)
you can always ask the value for an enum
|
|
|
|
|
|
I have read some of the articles on this site and others reguarding this issue and all of them involve custom controls or writing a class to accomplish this simple task. Someone has got to know a simple easy way to accomplish this with a few lines of code. I mean VB6 had this property for the textboxes but .NET doesnt and you have to make a custom control or write a class??? This doesnt make any sense. If anyone knows of a simple way to make a textbox accept ONLY numeric and ONLY alpha, please let me know. Thank you in advance.
|
|
|
|
|
pass the 'e' argument of the keypress event of the textbox into either routine:
Public Sub KeyPress_Numeric_Only(ByVal e As System.Windows.Forms.KeyPressEventArgs)
Select Case Asc(e.KeyChar)
Case Keys.Back, Keys.D0 To Keys.D9
'continue
Case Else
e.Handled = True
End Select
End Sub
Public Sub KeyPress_Alpha_Only(ByVal e As System.Windows.Forms.KeyPressEventArgs)
Select Case Asc(UCase(e.KeyChar))
Case Keys.Back, Keys.A To Keys.Z
'continue
Case Else
e.Handled = True
End Select
End Sub
|
|
|
|
|
is this going to work for the seperate keypad as well??? (keypad on the right of keyboard...
|
|
|
|
|
sorry:
Public Sub KeyPress_Numeric_Only(ByVal e As System.Windows.Forms.KeyPressEventArgs)
Select Case Asc(e.KeyChar)
Case Keys.Back, Keys.D0 To Keys.D9,keys.numpad0 to keys.numpad9
'continue
Case Else
e.Handled = True
End Select
End Sub
|
|
|
|
|
I get an error, "Failed to open rowset" when I try and produce an Crystal Report. I am using VB.Net 2003 with CR 8.5. The report database is a text file. I have tried vertifying the database etc but with no luck. Maybe there is something wrong with my Vb code which I have included. Am I doing something stupid with the code. Any help please?
It is a simple setup. Form with a button and Crystal Report Viewer.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim strReportPath As String = "C:\Program Files\reports\report1.rpt" 'report1
Try
'Load Crystal Report's rpt file
Dim cr As New CrystalDecisions.CrystalReports.Engine.ReportDocument
cr.Load(strReportPath)
CrystalReportViewer1.ReportSource = strReportPath
'Set the CrystalReportViewer's apperance and set the ReportSource
CrystalReportViewer1.ShowRefreshButton = False
CrystalReportViewer1.ShowCloseButton = False
CrystalReportViewer1.ShowGroupTreeButton = False
CrystalReportViewer1.Zoom(1)
CrystalReportViewer1.ReportSource = cr
Catch ex As Exception
MsgBox(Err.Description)
End Try
End Sub
|
|
|
|
|
I didn't realise that VB 6 was obsolete. What is a good program for a starter? I don't have any specific uses i want to use it for, just to learn more about computers, in general.... J.Paul Ghetty.
|
|
|
|
|
VB.Net is good for starters.
Trinity: Neo... nobody has ever done this before.
Neo: That's why it's going to work.
|
|
|
|
|
You can find the free Express Editions of VB.NET, C#, and others here[^].
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Oh, he was asking about programs to use, not about languages.
Trinity: Neo... nobody has ever done this before.
Neo: That's why it's going to work.
|
|
|
|
|
And your reply to the OP was what? How about a direct reference to a language and development environment!
The OP said that VB6 was obsolete - it is. To me, this means he's looking for the same thing, only more modern. So, I directed him to the free versions of development environments we use today.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|