|
anyone know the command to pause the media player and continue playing?
|
|
|
|
|
|
yes i seen tis b4 i try to .play but error pop up said it not a memeber of the axmediaplayer...
|
|
|
|
|
1. how to write and create a ms word document usign vb 6.0
2. how to read and write to and from a txtfile
3. how to create a program using vb 6.0 that reads all the tables and their fieldnames on a database, and put them on a txtfile or in a textbox
thank you!!!!
adikkaymonic
|
|
|
|
|
Based on your questions, I can't figure out your level of experience. Based on question #2, I think your totally new to programming, but I can't be sure. So don't take this the wrong way when I say "Google is your friend!".
Google results for "vb6 read text file[^].
"vb6 create Word document"[^]
#3 depends heavily on the "table" you're using, be it an Excel worksheet, Access database, SQL Server, or something else...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
i use access database
adikkaymonic
|
|
|
|
|
Good Day,
Can I add custom tool strips other than the ones in VS2005?
Where can I download them from?
Regards
Leavashni
|
|
|
|
|
What do you mean by "custom tool strips"??? If you're looking for different prebuilt controls you can check to see if any of the big vendors has what you're looking for. Like Infragistics, ComponentOne, ... I think you'd be looking for Layout Managers or something similar.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hi
i have a stastic method in tha calss, how to invoke constructor,
when called with class name in VB.NET
Thanks in advance
Understanding comes form failures
Sucesses comes form understandinf failures
|
|
|
|
|
in my above question ...
I am sorrry Shared Method...........
|
|
|
|
|
Shared (Static in C#) methods don't belong to any instance of a class, so there is no constructor to call...
When calling a Shared method, you do not have to create an instance of the class that's hosting the method. You just call it! For instance, the Environment[^] class is full of Shared methods. You can call any of them at any time, without creating an instance of the Environment class first:
Dim myPath As String = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hi,
how to upload files into webserver that is in to our project folder
thanks..
|
|
|
|
|
A little searching of the articles goes a long way!
File Upload with ASP.NET
[^]
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
As the title, any method to do so?
|
|
|
|
|
use this
DateTime.Now.ToString("dd/MM/yyyy hh:mm:ss.ttt")
|
|
|
|
|
What's a minisecond?? I take it you're talking about a millisecond?
The DateTime structure can only return the time accurate to about 10 milliseconds on an NT Kernel machines and about 55 milliseconds on Win9x, no greater. This is because of system timer limitations, not because of any bug in the .NET Framework.
What are you trying to do with such an accurate time?
You can get the current time, down to the approximate millisecond, with:
Dim currDateTime As DateTime = DateTime.Now()
Debug.WriteLine( String.Format("Current Time: {0}", currDateTime.ToLongTimeString) )
Debug.WriteLine( String.Format("Current Milliseconds: {0}", currDateTime.Millisecond) )
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
The Top and Left properties are the coordinates of the control.
---
b { font-weight: normal; }
|
|
|
|
|
Can anyone please help me by providing any url/resources where i can get help to understand developing & designing a project in vb.net using oop and also data connectivity.
|
|
|
|
|
|
If you want a really ambitious framework try Rocky Lhotka's "VB .NET Business Objects" book.
http://lhotka.net/[^]
Kevin
|
|
|
|
|
is it a problem if contain too much label will make the system lagging?
i have 400 label actually cause i doing a game want to move the token at specific direction. And i using 3 timer also on dice and movement.
if tis the reason make the system run slow?
|
|
|
|
|
Your question doesn't make any sense, but...
If you're moving 400 labels around or are waiting for 400 labels to paint themselves, you'll be waiting a long time. So, yes, it's possible that this is what's causing your app to lag.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
actually the label were fix in the location whic i dont move it.
but i will move the image to the according label, like when i want to move it to label1 or label 100.
u think that cause lag also?
|
|
|
|
|
Without seeing or knowing anything of your code, it's impossible to say what's lagging...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Here is it, first i create 400 label for each player to move to it own position, the checkplayerpos() is i set the position where i locate it in my design form there, the timer2() is where i use timer to move around the token one by one according to their dice value from 1-6
------------------
Public Sub checkplayerpos()
If PTurn.Text = 1 Then
z = 1000
ElseIf PTurn.Text = 2 Then
z = 2000
ElseIf PTurn.Text = 3 Then
z = 3000
ElseIf PTurn.Text = 4 Then
z = 4000
End If
End Sub
------------------------------
Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick
'Control array
Dim squarelabel As Label() = ControlArrayUtils.getControlArray(Me, "Label")
Dim PlayerP As PictureBox() = ControlArrayUtils.getControlArray(Me, "Player")
Dim Ppos As Label() = ControlArrayUtils.getControlArray(Me, "PP")
Dim com As Label() = ControlArrayUtils.getControlArray(Me, "com")
'Get the value whos turn at PTurn.text label
Turn = PTurn.Text
'Get Current Player position
x = Ppos(Turn).Text
checkplayerpos()
'Move Piece 1 by 1
If dicelabel.Text = 1 Then
On Error Resume Next
Static AA As Integer
If AA > 100 Or AA < 1 Then AA = 1
Select Case AA
Case 1
soundmovement()
PlayerP(Turn).Top = squarelabel(z + x + 1).Top
PlayerP(Turn).Left = squarelabel(z + x + 1).Left
AA = 1
PlayerP(Turn).Enabled = False
x = x + 1
'Show player position
Ppos(Turn).Text = x
Check()
'Move to next player
NextPlayerTurn()
Dice.Enabled = True
Timer2.Enabled = False
End Select
ElseIf dicelabel.Text = 2 Then
On Error Resume Next
Static BB As Integer
If BB > 100 Or BB < 1 Then BB = 1
Select Case BB
Case 1
soundmovement()
PlayerP(Turn).Top = squarelabel(z + x + 1).Top
PlayerP(Turn).Left = squarelabel(z + x + 1).Left
BB = 2
Case 2
soundmovement()
PlayerP(Turn).Top = squarelabel(z + x + 2).Top
PlayerP(Turn).Left = squarelabel(z + x + 2).Left
BB = 1
PlayerP(Turn).Enabled = False
x = x + 2
Ppos(Turn).Text = x
Check()
NextPlayerTurn()
Dice.Enabled = True
Timer2.Enabled = False
End Select
ElseIf dicelabel.Text = 3 Then
.....
ElseIf dicelabel.Text = 4 Then
.....
ElseIf dicelabel.Text = 5 Then
.....
ElseIf dicelabel.Text = 6 Then
....
End Sub
------------------
~Thank you so much for helping me out~
|
|
|
|