Hi I developed an application (C#) which draws some images on windows form. I am able to load images but trying to load swf file, but when I am trying to do load this swf file I am unable to load it. I tried to load it using flash control which has been provided as a activeX control but using that swf gets loaded but not able to see it properly. My application runs very slowly.
Pls suggest how to run an swf file into .Net (C#)
A WebBrowser control does that. I think it instantiates a COM object representing a flash player behind the scenes anyway, just like the AxShockwaveFlash class. Alternatively, you could parse the file format and draw the shapes with the coordinates specified. I can't help you beyond that though
Between the idea
And the reality
Between the motion
And the act
Falls the Shadow
what do u mean by 1015:35 is it H:M if it's
TimeSpan end = new TimeSpan(1015, 35, 0);
TimeSpan start = new TimeSpan(1058, 15, 0);
TimeSpan sub= end.Subtract(start);
double TotalSeconds = sub.TotalSeconds;
What format are txtstarttime.Text and txtendtime.Text in? Are they hours:minutes:seconds like your output? If so, then you can replace the System.Convert.ToDateTime calls with System.DateTime.Parse("input goes here", "hh:mm:ss", null)
You can replace the System.Convert.ToDateTime calls with System.DateTime.Parse("input goes here", "hh:mm", null). The first parameter will be your Text properties instead of the string "input goes here"
Hmm, you need to stop for a moment and think about what you are trying to do.
If the measured time span is 24 hours or more then information about the number of days that have passed is required to perform the calculation.
If the time span is guaranteed to be less than 24 hours the following pseudocode is valid
// Calculate time span
duration = endtime - starttime;
// if the value is negative then assume that// midnight has passed// and therefore end day = start day + 1if duration < 0 then duration = duration + 24 hours;
Note how this would fail as soon as the actual time span is 24 hours or more.
If you convert those strings to DateTime structures (possibly using DateTime.ParseExact, I don't know the exact form of the strings you gave) then you can simply subtract the starting time from the ending time to get the elapsed time as an instance of the TimeSpan structure. That lets you access such properties as TotalHours, TotalMinutes, TotalSeconds and TotalMilliseconds
I am assigned to a project where I have to develop a web service which will serve client with different video files according to some certain criteria of the client. A large number of video files will be stored in the web server for this purpose and in the client end a C# application will be used for watching the sent video.
I am a newbie. I have basic idea on designing webservice and consume them from client end. But I've never dealt with video stuffs. Please give me an insight on how can I start designing this project. Also please refer me some useful articles regarding this. I have to design both the server and client end softwares.
I have the follwing problem:
I bought es closed source dll which has several non
virtual methods which I want to override in order
to do model based testing.
Does anybody know a trick by using System.Reflection or
anything else to override a non virtual method?
i am using microsoft indexing services for searching documents. but when i search for arabic words an error occur indicating that following : --The query contained only ignored words--.
Any help was appreciated.
I have an application that uses some transparent windows that are put on an other application's windows. These transparent windows contains some boxes that are meant to show some information on the windows of the other application. A need that when the use clicks on the transparent parts of my windows, mouse clicks are carried to the element that is below my transparent windows.
I use a .net Form with background color set to the transparentkey.
Everything works good under Win XP but under Vista the transparent window blocks every mouse click , it's transparent for the eyes but not for the mouse.
Anyone knows a solution?
i found a solution using interops
This works under Vista.
public const int GWL_EXSTYLE = -20;
public const int WS_EX_LAYERED = 0x80000;
public const int LWA_ALPHA = 0x2;
public const int LWA_COLORKEY = 0x1;
static extern bool SetLayeredWindowAttributes(IntPtr hwnd, uint crKey,
byte bAlpha, uint dwFlags);
//..in the form constructor
//if the win is not layered , the layered attribute needs to be speciefied in its styles