|
hi,
now i am devloping an report using crystal report in my application. i need to print in preprinted sheet. i need to set fixed width for details section and after the fixed size then print goes to next new page. any one help to me.
thanks in advance
Have A Nice Day!
Murali.M
|
|
|
|
|
I made a cd player in vb.net using the windows media player active x
control (OCX). I am incrementing songs in a list box, the code is
below.
The problem I am haveing is that when I play mp3 tracks, the very
begining is getting cut off. I think the song needs to buffer first.
How can I do this?
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Timer1.Tick
If AxWindowsMediaPlayer1.playState() = WMPPlayState.
wmppsStopped Then
If ListBox1.SelectedIndex() <= ListBox1.Items.Count - 2
Then
ListBox1.SelectedIndex() = ListBox1.SelectedIndex() +
1
AxWindowsMediaPlayer1.URL = ListBox1.SelectedItem
AxWindowsMediaPlayer1.controls.play()
'Else : MessageBox.Show("End of Playlist")
End If
End If
End Sub
Many thank's,
Glen Conaway
|
|
|
|
|
You can't control the buffering of WMP.
After you set the URL of the player, you might want to poll the Player.playState property and make sure it is Ready (value: 10) before you "hit the play button".
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
How do I do this?
I tried a loop with a check to see if the playstate property is ready and it doesn't change to ready, and when I try to set it to ready it says its a read only property.
Many Thanks,
Glen Conaway
|
|
|
|
|
I've never used the WMP as a control in any app, so I'm not an authority on how exactly how it works. But, from what I can gather, you either set the Player.URL property to whatever source MP3 your using, then poll, in a loop, the status of the Player.playState property to see if it ever becomes Ready
Do
Application.DoEvents()
Loop Until (Player.playState = 10)
I can't say if it will ever become ready, but I think what is happening is that your trying to play the file before it's loaded or buffered. The player starts, but with no data, you get silence. Then, when the file is loaded it starts playing from where the player's timer says it's supposed to be and not at the beginning of the file.
As a test, set the .URL of the source MP3, then do Thread.Sleep(5000), then do Player.Controls.Play() and see what happens.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thank's for the help, the thread.sleep method will come in helpfull.
In my program I have a stop button (AxWindowsMediaPlayer1.controls.stop(), and if I click it and wait, then select a different track, and then hit play I still have the save problem.
I converted my tracks to MP3 using the MusicMatch Jukebox convert file feature, Maby the MusicMatch didn't put enough empty space at the begining of the tracks, yet when I play the tracks in the windows media player (from operating system), and in the Music Match Jukebox, they play fine.
Many thanks,
Glen Conaway
|
|
|
|
|
To all out there... sorry if i'm asking too much in this forums.. Its ok if u all cant help me but if there's one soul out there who's willing to help me in this.. May God bless you in everything that you do..
Peace to the WOrld!!
|
|
|
|
|
Hello there. You should take Dave's point. When you ask for complete solutions, realize that most of the folks who answer questions on these forums are professionals who are paid for developing complete solutions.
Also know, that there are many (like Dave) who believe in contributing to the community and are willing to donate their time to answer questions of a specific nature - to assist other developers through a specific problem, but not to do their work for them.
There are many kind souls here. Please post a specific question rather than a request for a complete solution and you'll likely see a great deal of kindness in the response.
|
|
|
|
|
Anybody out there who can provide me with the complete codes for sending email.. Need it for my project also.. Thanx...
Peace to the WOrld!!
|
|
|
|
|
bearnini wrote:
provide me with the complete codes for sending email
That's the wrong question to ask around here. We're not doing homework for anyone. We'll help you with specific questions/problems you have, but we're not a One Stop Source Code Shop.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I was wondering how to create a program with an option to load external modules. Can you load vb modules at runtime? I mean, a file with code and create modifications to the forms of the program? Or should I look for a different method?
Anyone experience with this concept, because it is commumly used in bussiness software...
Greetz
JT
|
|
|
|
|
Anybody out there who can help me asap.. I'm doing a school project on online learning. I'm doing the teacher's part where i need to set online quizzes for the student to do and upload documents online for the students to print.. I need the codings for this application asap and very urgently... Please help me for those kind hearts out there...
Peace to the WOrld!!
|
|
|
|
|
bearnini wrote:
I need the codings for this application asap and very urgently...
That's a pretty broad request, don't you think? How about you give it your best shot and ask for help on *specific* issues that you run into. This is not the best place to look if you want your entire homework project done for you.
Charlie
if(!curlies){ return; }
|
|
|
|
|
i was relieved when i came across ths superb website.. Thought that i would get help in here.. I'm really not good in VB.net programming.. stupid.. i just need to complete my project asap.. its ok if u all cant help me at al.. anyway thanx.. If i'm a genius, i don mind going thru the extra mile to help someone who is really in need..
Peace to the WOrld!!
|
|
|
|
|
I don't recall enrolling you in your class. I don't recall impeding your progress so that you are running up against a hard deadline. I only recall being asked to complete your project for you.
I (among many others) am happy to help with specific issues (I'm not a genius, but I manage to get by), but this website would be much less "superb" if it turned into a one-stop homework shop.
Charlie
if(!curlies){ return; }
|
|
|
|
|
"Really in need", we'll help. But doing you homework for you isn't "Really in need", it's just plain lazy.
We'll help you if you have specific questions about something your having problems with. We won't help you with the problem of "Procrastination"!
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
No matter what SMTP server I use, my program has the same error when I try to send the message, "Could not access 'CDO.Message' object." Does anyone know what this is and what I can do to avoid it?
boom!
|
|
|
|
|
Do you have Outlook installed? (the Office version, not Express!)
You'll need the Collaboration Data Objects (CDO) to use the System.Web.Mail namespace, preferably version 1.21 or better. There is no place to download it from!! (Legally, that is...) You'll need to install Outlook 98 or 2000, 2002, or 2003 to get it, or it comes with Windows 2000 Server, Exchange Server 5.5 SP1 or better, or Exchange Server 2000 or 2003.
It does NOT come with Windows 2000 Professional, XP, or any version of Outlook Express!
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks, installing Microsoft office really helped.
y helothar noob
|
|
|
|
|
I am using BeginInvoke on a delegate to start a Sub. What will happen if I do not call EndInvoke on that delegate? I do not particularly need to monitor it or need to know if it is finished. I tried using threading but did not get it to work. Still trying though.
|
|
|
|
|
You might want to read Asynchronous Method Execution Using Delegates[^] on MSDN. Invoke and launching background threads are not 100% interchangable. Wheather one is better than the other depends on what you want to be done in the background. Sooo...
What are you doing on the background thread?
Are you having any problems with BeginInvoke/EndInvoke?
What were the problems you had with threading?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I'm checking for application updates on the background thread. My application does this once per day similar to Windows Automatic Updates. The problem I had with threading is that I was not able to pass arguments to the procedure I was calling. However, I've figured a way to work around that by making the arguments available to the procedure (thru a config file it reads). The question I had with BeginInvoke is what would happen if I do not call EndInvoke on that delegate? Will it just exit after it has done it's work. What would happen if the delegate i've invoked goes out of scope but the method invoked is not finished? Will the method being invoked keep working until it finishes? Or will it just exit or worse?
|
|
|
|
|
This is something that's usually done by a seperate app, not a component. The application usually launches the update app which goes off on it's own and checks for updates and downloads them. Some communication with the parent app is possible through Remoting. If the user requests that the update be installed now, it tells the updater to do so and quits. The updater continues on and installs the updates, then could optionally relaunch the new version of the parent app.
BeginInvoke returns an IAsyncResult object, that can be ignored without any consequences. You don't have to do anything with it or dispose it. You also don't have to call EndInvoke, unless you want any return values from your method call. The delegate you invoke won't go out of scope until it's done executing. Remember its on its own thread and executing completely independent of the thread that called it. It will keep running until it runs out of code to execute or fails and throws an unhandled exception. The problem with an exception is you won't know it happened on your main thread because exceptions don't cross thread boundries, unless you call EndInvoke. Any exception that was thrown on the background thread will finally be re-thrown on your main thread only upon calling EndInvoke.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi, i used to develop an application in Ms access. Because my form is too big, i set the scroll bar for my form. But now I want to design my new project for vb6 but I can't find scroll bar property in my form property sheet. To solve this problem, I create MDI and SDI form (whether my form is too big but MDI has a scroll bar. Does anybody know how to set a scroll bar on SDI form?
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
In VB6 you can't.
There are various hacks (nested control containers) but they were always troublesome for me.
Paul Watson wrote:
"At the end of the day it is what you produce that counts, not how many doctorates you have on the wall."
George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
Jörgen Sigvardsson wrote:
If the physicists find a universal theory describing the laws of universe, I'm sure the a**hole constant will be an integral part of that theory.
|
|
|
|