Another fanny behaviour of VB.NET 2005

  • Thread starter Thread starter ZikO
  • Start date Start date
Z

ZikO

Hi.

I appologise for noob problems but I don't know what Im doing wrong.
Yesterday I descibed a strange behavoiur of VB, as transparency doesn't work
for all the time the program work. It work only when I run prog.

Today I found another thing. I have music in background and use
WindwosMediaPlayer. The code is:

Dim WithEvents MusicPlayer As New WMPLib.WindowsMediaPlayer

....

Private Sub FormMain_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
MusicPlayer.URL = "Sounds\TitleSong.mp3"
MusicPlayer.settings.volume = 64
MusicPlayer.settings.playCount = 999
MusicPlayer.settings.mute = False
MusicPlayer.controls.stop()
End Sub

In module:

Friend mf As New FormMain
Friend pf As New PictureForm

and I use Hide and Show method to open and close forms.

I switch music on off by a button. When I open another form (i dont hide
mainform) and come back to mainform I can't switch music off. Instead I
switch on another instance of music, so 2 copies of the same song play
together. BUT If I have music off and open another form, come back to main
then everything work properly onwards, until the end of prog.

Can someone help me. By Thursday I need to submit it. I have been using VB
only for 4 months and I can't manage it.

Thanks so much.

Regards.
 
ZikO said:
Hi.
I appologise for noob problems but I don't know what Im doing wrong.
Yesterday I descibed a strange behavoiur of VB, as transparency doesn't
work for all the time the program work. It work only when I run prog.
Today I found another thing. I have music in background and use
WindwosMediaPlayer. The code is:
Dim WithEvents MusicPlayer As New WMPLib.WindowsMediaPlayer
...
Private Sub FormMain_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
MusicPlayer.URL = "Sounds\TitleSong.mp3"
MusicPlayer.settings.volume = 64
MusicPlayer.settings.playCount = 999
MusicPlayer.settings.mute = False
MusicPlayer.controls.stop()
End Sub
In module:
Friend mf As New FormMain
Friend pf As New PictureForm
and I use Hide and Show method to open and close forms.
I switch music on off by a button. When I open another form (i dont hide
mainform) and come back to mainform I can't switch music off. Instead I
switch on another instance of music, so 2 copies of the same song play
together. BUT If I have music off and open another form, come back to
main then everything work properly onwards, until the end of prog.
Can someone help me. By Thursday I need to submit it. I have been using
VB only for 4 months and I can't manage it.
Thanks so much.
Regards.

I think I managed it. I have used an Form.Activate() method instead of
Form.Show() one. That resolved my problem but I still don't know why my
transparency doesn't work.

Regards.
 
Just whom do you think you are. I spent years learning how to program,
and you just expect to arrive and for me to tell you how to do
everything you lazy ****er !

Steve Ray Irwin
 
Just whom do you think you are. I spent years learning how to program,
and you just expect to arrive and for me to tell you how to do
everything you lazy ****er !

Don't write me this way!!!I Cause you don't have bloody idea how large
effort I have done to create my program, which is probably the most trivial
you'd ever seen you genius!!! but it's done by myself.

I am not lazy and and you don't know how many things I found by myself
looking at MSDN and CodeProject and webs like those, trying understand
things, which I saw first time not knowing what particular keywrods mean,
spending time trying and try again. Books seemed to be written by different
language.

You can't even imagine how many hours I spent in internet and at uni to
obtaine WHAT I HAVE NOW.

I don't understand you. If you say you spent years how to program you are
jeallous that someone could get knowledge a bit faster than you!! I don't
need you and I don't need your help.
You probably don't know that there are some problems everybody cannot
resolve by himself but for you it is someting new, because you probably
don't programm but you're only boasting yourself.
 
ZikO -- MasterProgrammer is just a troller who seems to have
a tendency towards rudeness (RobinS says, understating the issue).
Don't hesitate to post your questions here; other people will help
if they can.

Robin S.
--------------------------------
 
I dont think that rudeness is MP's problem

it's a symptom of being subjected to a development environment that is
SLOW AS MOLASSES and it crashes twice a day for me.

and you can't deploy .NET on any desktops-- because it's impossible to
tell if the .NET framework is even consistent on a particular machine

-Aaron
 
Well, lots of people feel that way, but they manage not to
be mean to people looking for help. That's all I'm saying.

You know, both you and MP could both be right about how annoying
..Net is, but that doesn't mean you can do anything about it.
Berating others isn't really going to change anything.

Have a nice day!
Robin S.
------------------------------------
 
I don't think that we berate others

sure.. if a half dozen people stand up and start freaking out over
stupid shit-- and they start spreading lies -- then of course I'll
stand up for myself.

I'm just not willing to accept the FUD that you throw at us

The fact of the matter is that VB.net is a complete market failure.
And I've seen too many junior programmers that are stuck in an obsolete
langauge-- so i'd rather say something about it now-- then see yet
another developer being pigeonholed as a wannabe because they used the
WORLDS MOST POPULAR LANGUAGE

we're not JUNIORS.
we're in the ****ing majority.

and it's just about ****ing time that Microsoft starts ****ing taking
us seriously.

I have a half dozen mother ****ing bugs in Microsoft Access-- random
execution of sprocs is not a trivial ****ing matter

and what does Microsoft do about this?

NOT A GODDAMN THING; EXCEPT BLOCK MY MOTHER ****ING POSTS

-Aaron

Well, lots of people feel that way, but they manage not to
be mean to people looking for help. That's all I'm saying.

You know, both you and MP could both be right about how annoying
.Net is, but that doesn't mean you can do anything about it.
Berating others isn't really going to change anything.

Have a nice day!
Robin S.
------------------------------------
 
RobinS said:
ZikO -- MasterProgrammer is just a troller who seems to have
a tendency towards rudeness (RobinS says, understating the issue).
Don't hesitate to post your questions here; other people will help
if they can.
Robin S.

Thanks. I will post and if I can I will help anybody else. I have an
experience from the other groups, having to read post from people that
cathegory as MP. Sad.
 
Back
Top