What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Need VB help(Visual Basic)

Pages: (5): « First « 1 [ 2 ] 3 4 5 » Last »
Need VB help(Visual Basic)
Author: Message:
dylan!
Senior Member
****

Avatar
l33t p4int3r

Posts: 665
Reputation: 30
– / Male / Flag
Joined: Jan 2005
O.P. RE: Need VB help(Visual Basic)
where can i get this "media player control"?:P
08-22-2005 08:39 AM
Profile E-Mail PM Find Quote Report
spokes
Full Member
***

Avatar
I <3 Rollerblading

Posts: 423
Reputation: 10
34 / Male / Flag
Joined: May 2004
RE: Need VB help(Visual Basic)
in an open VB window, press ctrl + t (project - components)

and click browse, and goto your system folder and select msdxm.ocx

[Image: sig15ws.png]
08-22-2005 08:47 AM
Profile E-Mail PM Web Find Quote Report
dylan!
Senior Member
****

Avatar
l33t p4int3r

Posts: 665
Reputation: 30
– / Male / Flag
Joined: Jan 2005
O.P. RE: Need VB help(Visual Basic)
ok...im not worrying about that anymore but now i need to know if theres a quick code to make it enter
e.g
Dim message As Interger

message= "Hello World!"
print (pagedont/enter here)message

and it would normally just print
" Hello World"
but i want it to print
"(pagedown/enter in affect here!!!)
Hello World"

and yeah i was wondering what i could put to make it like that?
08-22-2005 09:13 AM
Profile E-Mail PM Find Quote Report
spokes
Full Member
***

Avatar
I <3 Rollerblading

Posts: 423
Reputation: 10
34 / Male / Flag
Joined: May 2004
RE: Need VB help(Visual Basic)
i don't get what you mean :S

[Image: sig15ws.png]
08-22-2005 09:22 AM
Profile E-Mail PM Web Find Quote Report
dylan!
Senior Member
****

Avatar
l33t p4int3r

Posts: 665
Reputation: 30
– / Male / Flag
Joined: Jan 2005
O.P. RE: Need VB help(Visual Basic)
like where it would normally say
"Hello World"
it leaves a blank line before it says it like this:
"
Hello World"

just like you press enter in the box where u reply to me it goes down a line but i need this in vb:P
08-22-2005 09:24 AM
Profile E-Mail PM Find Quote Report
spokes
Full Member
***

Avatar
I <3 Rollerblading

Posts: 423
Reputation: 10
34 / Male / Flag
Joined: May 2004
RE: Need VB help(Visual Basic)
print vbnewline & message

:p

[Image: sig15ws.png]
08-22-2005 09:33 AM
Profile E-Mail PM Web Find Quote Report
dylan!
Senior Member
****

Avatar
l33t p4int3r

Posts: 665
Reputation: 30
– / Male / Flag
Joined: Jan 2005
O.P. RE: Need VB help(Visual Basic)
ok...ahah...ONE LAST THING!!:P...ok se heres my code
code:
Private Sub Command1_Click()
Dim intMsg As String
Dim Message As String

Open "C:\Documents and Settings\!~DyLaN~!\Desktop\VB\sample.txt" For Output As #1
intMsg = MsgBox("File sample.txt opened")
Message = InputBox("Enter Message")
Print #1, vbNewLine; Message
intMsg = MsgBox("Writin " & StudentName & " to sample.txt ")

Close #1

End Sub


Private Sub Form_Load()
MsgBox "Hello"

End Sub

and i want to give that to people so they can send me messages but whenever someone writes a message it saves over the last one and i was wondering how i could get it to just keep adding on to sample.txt

here it is if u wanna send me a message:P

This post was edited on 08-22-2005 at 10:05 AM by dylan!.
08-22-2005 09:48 AM
Profile E-Mail PM Find Quote Report
spokes
Full Member
***

Avatar
I <3 Rollerblading

Posts: 423
Reputation: 10
34 / Male / Flag
Joined: May 2004
RE: Need VB help(Visual Basic)
Open "C:\Documents and Settings\!~DyLaN~!\Desktop\VB\sample.txt" For Append As #1

[Image: sig15ws.png]
08-22-2005 10:01 AM
Profile E-Mail PM Web Find Quote Report
spokes
Full Member
***

Avatar
I <3 Rollerblading

Posts: 423
Reputation: 10
34 / Male / Flag
Joined: May 2004
RE: Need VB help(Visual Basic)
path not found, lol

this isn't going to work, unless we r on your pc

you should learn some winsock, make a server, listenin for messages, and make a client which sends the messages :p

[Image: sig15ws.png]
08-22-2005 10:10 AM
Profile E-Mail PM Web Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Need VB help(Visual Basic)
dylan!, I suggest you first try some basic VB samples and coding, what you're asking for is more then you can handle (atm), even the media player is much more difficult then you think.

Grab some beginners book for VB, or at least learn to use the help files which come with VB (Press F1 very regulary and almost with each command you type, property you use, etc. to know exactly what it means and does). Online tutorials are also good to learn. But stick with the basics, and until you master that try some more difficult things gradually.

Btw, the send message stuff you wanted to do is very advanced and shouldn't be attempted until you are very experienced in VB; it is of nu use that we answer all your single questions, as that would make this thread 6541641 pages long because you will encounter error after error and problem after problem

This is not to put you down or something, but you don't run when you can't walk... You need to start at the beginning, not somewhere in the middle or even beyond that ;)


To illustrate:

code:
Private Sub Form_Load()
  Left = (Screen.Width - Width) \ 2
  Top = (Screen.Height - Height) \ 2
End Sub
1) Why do you use the properties like "Left", "Width" and not "Form.Left", "Form.Width", etc?
2) Why do you use "\" and not "/"?

code:
File1.Pattern = ("*.wma")
1) What is the meaning in VB of the brackets if you use them like that?
2) What is use of the .Pattern property and how to you use it exactly?

code:
Private Sub Command2_Click()
  If AudioPlayer.Mode = 524 Then Exit Sub
  If AudioPlayer.Mode <> 525 Then
  AudioPlayer.Wait = True
  AudioPlayer.Command = "Stop"
  End If
  AudioPlayer.Wait = True
  AudioPlayer.Command = "Close"
  End Sub
1) Put all that in a decent IF.. THEN...ELSE structure
2) Put all that in a SELECT CASE structure....


All these questions are basic VB stuff to know....

Happy learning and experimenting
.-= A 'frrrrrrrituurrr' for Wacky =-.
08-22-2005 11:05 AM
Profile PM Find Quote Report
Pages: (5): « First « 1 [ 2 ] 3 4 5 » Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On