|
Hi Dave,
Many thanks for your reply. Right so the folder handling system I will leave that to the network manager.
Now we very often have 2 people working together on a file on the same PC logging naturally with one username. I have created an application to transfer the file to the other person's folder. It works fine on my computer. Now will this application still be possible if I change the path to the server with all the domain and permissions you suggested. I am only selecting a file with the Showdialogu Window and copying a file to the other person's folder. Is this possible?
Cheers
|
|
|
|
|
No, scince each user is the only person who has access to their own home folder. This CAN change if the user grants the other some rights to the folder, or creates a sub-folder and grants the other user rights to it.
The usual way around this is a shared folder that everyone has access to. They can create their own folders in there and collaborate using the files stored in that.
But that's also something you have to setup with your LAN Admin.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I am writing an application that needs lots of things dynamically created, Labels etc.
Here is the code I use to add a label to the form:
Dim lblTitle as label
With lblTitle
.Left = 24
.Top = 24
.Width = 632
.Height = 48
.BackColor = Color.Black
.ForeColor = Color.White
.Font = New Font("Arial", fontsize, FontStyle.Regular)
.Enabled = True
.Text = "Title of the song"
.AutoSize = False
End With
controls.add(lblTitle)
I want to make a scrolling label, so I need to create a panel on the form, then create a label in the panel with a width wider than the panel width, and move the .left of the label to make it look as if it is scrolling.
I can do this when dropping the items onto a form normally, but not by dynamically creating them, please can someone help, I have been trying for days.
Thanks
|
|
|
|
|
You didn't create an instance of the label. Change your first line to this:
Dim lblTitle As New Label
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Sorry, I did use: Dim lblTitle As New Label,
Bu, my question is, how to dynamically create a panel with a Label in it.
|
|
|
|
|
Create the panel using the same method, add it to the Controls collection of the form. Create the label the way you're doing it now but add it to the Controls collection of the Panel, not the form.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Excellent.
I used:
'panel1.controls.add(txtTitle)'
and it worked fine.
Thanks again
|
|
|
|
|
Set the parent property of the label to the panel you create. Set the parent property of the panel to the form on which you want it to appear. The labels location coordinates will be relative to the top left corner of the panel. If you want the panel to show on the form you must set its visibility property to true and call BringToFront. You must do the same for the label so it shows on the panel.
|
|
|
|
|
I am trying to write a DVD player in VB.net
I have used the WMP SDK and embedded WMP in a VB application. I can open an mpg file, avi etc, but when I load a dvd 'VIDEO_TS.ifo' file into the embeded WMP it plays, but without sound.
Here is the code I use to load the DVD into WMP:
OpenFileDialog1.ShowDialog()
If OpenFileDialog1.FileName <> Nothing Then
file = OpenFileDialog1.FileName
AxWindowsMediaPlayer1.URL = file
End If
As I said before, the sound is heard, but no video is shown.
|
|
|
|
|
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.
|
|
|
|