|
this is working fine
this.lblTest.Font = new System.Drawing.Font("Tahoma", 18.25F);
am using c# 2005 expression edition
With regards
Amjath
|
|
|
|
|
if you can catch the exception, show it with ToString() method.
DO NOT USE MESSAGE PROPERTY
ToString() shows everything there is, Message only gives a short one-line summmary.
|
|
|
|
|
Hi to all,
I want some information about the playing the multiple video clips on the web page one by one. Please help me how can i do it.
Pravin
|
|
|
|
|
you might want to take a look at Silverlight. I remember seeing a demo at the Remix convention about several video clips being play simulatenously on a webpage. Go to http://www.silverlight.net
Edit:
Here is a tutorial which explains how to use Silverlight and streaming videos via webpage
http://aspalliance.com/1342_Streaming_a_Silverlight_Media_Application_from_Silverlight_Live#Page5
In particular go to the section titled " Invoke multiple video files from a single web page" which is the answer you are seeking.
Silverlight rocks when it comes to media streaming.
|
|
|
|
|
But i am using shockwave flash player object/component here. It does not shows the properties and events. so how can i use it.
Pravin
|
|
|
|
|
It doesn't expose properties that you can natively hook into through C#. The properties are all controlled through HTML using the PARAMS and EMBED tag on the object. Here's an example:
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" WIDTH="550" HEIGHT="400" id="superflashMovie"><PARAM NAME=movie VALUE="superflashMovie.swf"><PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE=#FFFFFF><EMBED src="/support/flash/ts/documents/superflashMovie.swf" quality=high bgcolor=#FFFFFF WIDTH="500" HEIGHT="350" NAME="superFlashMovie" TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT>
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
ya i tried that but i want to show the second clip at the end of first clip. I am unable to find out how can I handle it? is there is any event occures at the end of clip or video?
-- modified at 5:08 Tuesday 24th July, 2007
Pravin
|
|
|
|
|
Well, the only way that I can think (off the top of my head) to do this would be to use javascript to play the next movie in a sequence after a period of time. Assume that you've given the Flash object an id of "mySecondMovie", you could do this to trigger the movie:
<SCRIPT LANGUAGE = "JavaScript">
<!--
var secs
var id = null
var isTimerRunning = false
var delay = 1000
function InitializeTimer()
{
secs = 15
StopTimer()
StartTimer()
}
function StopTimer()
{
if(isTimerRunning)
clearTimeout(id)
isTimerRunning = false
}
function StartTimer()
{
if (secs==0)
{
StopTimer()
playMySecondMovie()
}
else
{
self.status = secs
secs = secs - 1
isTimerRunning = true
id = self.setTimeout("StartTimer()", delay)
}
}
function playMySecondMovie()
{
if (document.mySecondMovie)
{
if (document.mySecondMovie.Play)
document.mySecondMovie.Play();
}
}
</SCRIPT> Then, in your body onload, you would call InitializeTimer .
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Thanks for it. but how can i calculate the length of the first movie. Is there any event occures at the end of Video clip? so that I can check it?
Pravin
|
|
|
|
|
Not that I'm aware of. Mind you, if you have the flash itself, you could always call the javascript to play the next movie using an ActionScript command:
getUrl("javascript:playNextPage();") Then, you would implement the playNextPage javascript in your page to play the next movie as outlined above.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Ok Thanks.
I hav one more doubt.
I hav created a object in html tags of my application. Now i want to access that object in my code behind page.
Can u plz tell me how can i access that object and properties of it in code behind page?
Pravin
|
|
|
|
|
Mark the object with runat="server" .
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Sorry but it didn't worked. I'll show u my code.
<%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="Video.WebForm1" %>
<title>WebForm1
<object id="Player" runat="server" width="425" height="350" viewastext=""><param name="movie" value="http://www.youtube.com/v/5Uahw5BU9N8" /><param name="wmode" value="transparent" /><embed src="http://www.youtube.com/v/5Uahw5BU9N8" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350" />
Now, Player is the object id of object i hav created in Html tags. I want this object to be accessed in Code behind, like Textbox or Label or Button etc objects can be accessed there.
Pravin
|
|
|
|
|
I'm not sure what you are trying to achieve here - the flash is a clientside object. What exactly do you hope to achieve?
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hi,
Im hoping someone here can help...
I am involved in a project that needs to perform some image analysis on an image to interpret results. The functions I need are as follows: scaling image, image rotation and finally analysis at a pixel level. We are running on WinCE and coding with C#. I am able to find good image processing libraries for WinXP which unfortunately don't work on WinCE due to the cut down functionality in Compact Framework 2.0.
I haven't been able to find a WinCE compliant libraries. Maybe someone here knows of one? Any other suggestions? Or is my best bet writing something myself? I see a few posts on accessing pixels and image manipulation using unsafe methods.
Hoping for some leads...
Thanks.
Regards,
Myron
|
|
|
|
|
If you have access to unsafe code, try my image processing code as a starting point. If not, then you're stuck with the getpixel method, which is slower.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi..
Im using IFrame as my body in my aspx page to generate Emails. To edit IFrame i just wrote the following code in Javascript..
IFrame1.document.designMode="On";
After this line is executed the Iframe is editable and i can type any text inside iframe.
Now Im using VBScript to create a word application as an object for spell checking. In this case I need to pass the Text of the iframe as a parameter value to VBScript funtion i wrote.
The issue is i cant get the Value or text inside the IFrame using VBScript.
i wrote the above code in VBScript Function but it is not getting the text inside the iframe.
set Ctrl = document.getElementById("IFrame1")
MsgBox(Ctrl.innerText)
How to get the value or innertext of the iframe using vbscript or the other way is how can i create a word as an object and using that object how can i spell check in Javascript?
pl. help me in this issue. im working for this for the past 1 week. its urgent.
Thanks in advance
Selvaganesh.G
|
|
|
|
|
Does this have anything to do with C#?
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
Sorry to mail in the C# Forum. But unfortunately when i searched for Scripts Forum, i didnt get any. since my webpage code behind file is designed in c# i just posted my query in the c#. sorry again. call u pl help me in this above thing?
Thanks in advance..
Selvaganesh.G
|
|
|
|
|
SelvaGanesh G wrote: unfortunately when i searched for Scripts Forum
The web development forum maybe a better bet.
SelvaGanesh G wrote: help me in this above thing?
Sorry, VBScript isn't a strong point with me.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
Hi,
Can anyone tell me wat will be the return type if i am returning a interface?
i.e. My code has a function which has to return an interface..so wat should be my return type for that function.
Thanx,
SRUJANA
|
|
|
|
|
I don't get the question. If you need to return an interface, then that interface is the return type. So, if you want to return an IDisposable, then IDisposable is your return type.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Christian Graus wrote: I don't get the question.
You aren't the only one. I couldn't figure out exactly was being asked. Must be getting tired here
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
You can return an object which impelement interface.
marcin
|
|
|
|
|
The return type will be your interface, as already said. The underlying object should be one that implements your interface, directly or indirectly.
Cheers,
Vıkram.
After all is said and done, much is said and little is done.
|
|
|
|