473,499 Members | 1,660 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Another fanny behaviour of VB.NET 2005

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
GG 5557876
Dec 10 '06 #1
8 1265
"ZikO" <ze***@op.plwrote in message news:el**********@news.onet.pl...
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.
--
ZikO
GG 5557876
Dec 10 '06 #2
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 fucker !

Steve Ray Irwin

ZikO wrote:
"ZikO" <ze***@op.plwrote in message news:el**********@news.onet.pl...
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.
--
ZikO
GG 5557876
Dec 11 '06 #3
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 fucker !
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
GG 5557876
Dec 11 '06 #4
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.
--------------------------------
"ZikO" <ze***@op.plwrote in message news:el**********@news.onet.pl...
>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 fucker !

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
GG 5557876

Dec 11 '06 #5
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

RobinS wrote:
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.
--------------------------------
"ZikO" <ze***@op.plwrote in message news:el**********@news.onet.pl...
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 fucker !
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
GG 5557876
Dec 11 '06 #6
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.
------------------------------------
<aa*********@gmail.comwrote in message
news:11**********************@73g2000cwn.googlegro ups.com...
>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

RobinS wrote:
>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.
--------------------------------
"ZikO" <ze***@op.plwrote in message
news:el**********@news.onet.pl...
>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 fucker !

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
GG 5557876

Dec 12 '06 #7
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 fucking majority.

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

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

and what does Microsoft do about this?

NOT A GODDAMN THING; EXCEPT BLOCK MY MOTHER FUCKING POSTS

-Aaron
RobinS wrote:
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.
------------------------------------
<aa*********@gmail.comwrote in message
news:11**********************@73g2000cwn.googlegro ups.com...
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

RobinS wrote:
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.
--------------------------------
"ZikO" <ze***@op.plwrote in message
news:el**********@news.onet.pl...
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 fucker !

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
GG 5557876
Dec 12 '06 #8
"RobinS" <Ro****@NoSpam.yah.nonewrote in message
news:bd******************************@comcast.com. ..
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.
--
ZikO
GG 5557876
Dec 12 '06 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2058
by: Stewart Midwinter | last post by:
I've got an app that creates an object in its main class (it also creates a GUI). My problem is that I need to pass this object, a list, to a dialog that is implemented as a second class. I want...
12
1785
by: RoSsIaCrIiLoIA | last post by:
On Mon, 07 Feb 2005 21:28:30 GMT, Keith Thompson <kst-u@mib.org> wrote: >"Romeo Colacitti" <wwromeo@gmail.com> writes: >> Chris Torek wrote: >>> In article <4205BD5C.6DC8@mindspring.com> >>>...
31
2587
by: DeltaOne | last post by:
#include<stdio.h> typedef struct test{ int i; int j; }test; main(){ test var; var.i=10; var.j=20;
7
2375
by: Netocrat | last post by:
The code at the bottom illustrates the nature of a situation discussed on comp.lang.asm.x86. Basically an unsigned integer is being used as a negative index in a loop, and it works as though the...
20
1295
by: Friedrich Dominicus | last post by:
I stumbled upon the following code (stripped to the minimum) #include <stdio.h> #include <stdlib.h> int main(void){ char *file_name = "t1.txt"; char ch; FILE *pf = fopen(file_name, "r+");...
5
8236
by: DBC User | last post by:
I have 2 classes which are exactly same except the name. I do not have access to either of the class to change anything in it. In my code, I need to copy one of one class to another class. How can...
3
2670
by: asadikhan | last post by:
Hi, I have written a windows application with a GUI (let's call it MENU). I own the code for this application and have access to it. We have another application that is a third-part windows...
10
1781
by: subramanian100in | last post by:
Consider the following code: #include <iostream> #include <cstdlib> using namespace std; int main() { const double& ref = 100;
20
1958
by: xinxin | last post by:
hi eyeryone 001101000000000000100000000000000 is a number in binary system.how can i get the number of '1's ? thanks in advance
0
7134
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7014
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7229
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5485
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4609
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3108
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3103
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
667
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
311
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.