473,769 Members | 5,724 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
WindwosMediaPla yer. The code is:

Dim WithEvents MusicPlayer As New WMPLib.WindowsM ediaPlayer

....

Private Sub FormMain_Load(B yVal sender As Object, ByVal e As
System.EventArg s) Handles Me.Load
MusicPlayer.URL = "Sounds\TitleSo ng.mp3"
MusicPlayer.set tings.volume = 64
MusicPlayer.set tings.playCount = 999
MusicPlayer.set tings.mute = False
MusicPlayer.con trols.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 1274
"ZikO" <ze***@op.plwro te 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
WindwosMediaPla yer. The code is:
Dim WithEvents MusicPlayer As New WMPLib.WindowsM ediaPlayer
...
Private Sub FormMain_Load(B yVal sender As Object, ByVal e As
System.EventArg s) Handles Me.Load
MusicPlayer.URL = "Sounds\TitleSo ng.mp3"
MusicPlayer.set tings.volume = 64
MusicPlayer.set tings.playCount = 999
MusicPlayer.set tings.mute = False
MusicPlayer.con trols.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.plwro te 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
WindwosMediaPla yer. The code is:
Dim WithEvents MusicPlayer As New WMPLib.WindowsM ediaPlayer
...
Private Sub FormMain_Load(B yVal sender As Object, ByVal e As
System.EventArg s) Handles Me.Load
MusicPlayer.URL = "Sounds\TitleSo ng.mp3"
MusicPlayer.set tings.volume = 64
MusicPlayer.set tings.playCount = 999
MusicPlayer.set tings.mute = False
MusicPlayer.con trols.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 -- MasterProgramme r 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.plwro te 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 -- MasterProgramme r 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.plwro te 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*********@gm ail.comwrote in message
news:11******** **************@ 73g2000cwn.goog legroups.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 -- MasterProgramme r 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.plwro te in message
news:el******* ***@news.onet.p l...
>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*********@gm ail.comwrote in message
news:11******** **************@ 73g2000cwn.goog legroups.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 -- MasterProgramme r 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.plwro te 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 -- MasterProgramme r 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
2075
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 to edit the contents of that list and then pass back the results to the first class. So my question is, can a method in one class change an object in another class? If the answer is no, I suppose I could pass in the list as an argument when I...
12
1810
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> >>> pete <pfiland@mindspring.com> wrote: > >>> >If you have >>> > int array; >>> >then
31
2636
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
2399
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 integer were signed. I want to confirm my interpretation of this behaviour as there have been differing understandings of why it works. On my system (P4 using gcc under linux), the results are as follows: len before sign swap : 9 shlen...
20
1324
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+"); fputs("bla", pf);
5
8256
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 I do this? class A { .... } class B
3
2693
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 application with a GUI interface as well (let's call it BASE). I don't have access to the code of this application. This application has hooks through which other applications can be called. I have defined a hook in this application which bring up...
10
1807
by: subramanian100in | last post by:
Consider the following code: #include <iostream> #include <cstdlib> using namespace std; int main() { const double& ref = 100;
20
1986
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
9589
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
9994
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9863
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8870
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6673
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5298
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3958
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3561
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.