|
Hello Everyone,
Can anybody let me know how to run the videos in video-player.
Actually i've 5 links each link hold a flash file or video and i want to run these videos on the video-player.So plz give me the way to come out of this problem.........
And also how can i take a video-player to run the video.............
Or Also ..........
Is this code useful for me to an extent............
System.Diagnostics.Process.Start("wmplayer.exe",ur);
Thnx & Regards
Manoj Bisht
|
|
|
|
|
|
hello friends,
I have selected mutple rows of datagrid by highlighting them into different color, progrmatically. But when i click anywhere on datagrid then all the highlighted rows gets unhighlighted, which i don't like..........
my code to select rows
dataGrid1.Select(i);
dataGrid1.SelectionBackColor=System.Drawing.Color.RoyalBlue;
I have to delete any single row from datagrid without changing the color of other rows.
Can, anyone suggest me the appropriate solution for this..
Thanx in advance.
Nisar Inamdar.
|
|
|
|
|
I have some old com class that return to me VARIANT as string array.
How can i use it in C#? what i meen is how can i getting back this variant and use it as string array ?
Thanks for any help.
|
|
|
|
|
Not sure, but what I would do is grab the return value as an object, jump in the debugger, and see what you get. I mean, a VARIANT has, as it's claim to fame, it's ability to be many things. Perhaps you can cast the return type to the thing that it is, in this case. But, starting from object means you get something to look at, instead of a crash.
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 )
|
|
|
|
|
OK ,
SO if i getting back object - and the variant is actually a string array - i can do casting to Array object and by using TYPE of reflection i can know which type i have in the Array ?
I`m right ?
|
|
|
|
|
In the debugger, if you type the variable name, it will actually show you the type. So, just set a breakpoint the line after the object is set, and experiment in the debugger ( where you can try casts, etc, also )
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 )
|
|
|
|
|
|
Since you dont tell us anything about your app and dont show code, no. How could we?
Did you check your MouseDown handler ?
does your code contain Control.MouseButtons somewhere ?
|
|
|
|
|
I have A long number I want to reverce it to Ip address
merwa
|
|
|
|
|
|
Hello all,
I've posted this before in another thread[^] but I'm anxious to get some more opinions so I'm posting this again.
Consider the following small command line application:
class Program
{
static void Main(string[] args)
{
NextDouble(Double.MinValue, Double.MaxValue);
Console.ReadLine();
}
public static void NextDouble(double minValue, double maxValue)
{
double range = maxValue - minValue;
if (double.IsPositiveInfinity(range))
Console.Out.WriteLine("NextDouble: Infinity");
else
Console.Out.WriteLine("NextDouble: Not infinity");
}
}
Looks very simple and should always print out "NextDouble: Infinity", but it does NOT.
If running the program in debug mode everything is fine.
If the program is run in release mode, it prints out "NextDouble: Not infinity"!!
If the program is run in release mode with the last line in NextDouble uncommented everything is fine again.
First I thought it may be some problem with code optimization that is by default activated for release build, but deactivating the code optimization has no influence on the result. I've furthermore taken a look at the IL code but could not see any obvious error that could explain the behavior.
In my previous thread I got two responses: One responder obeserved the same weird behavior and one does not i.e. the program always prints "NextDouble: Infinity" as expected.
Does anyone have an explaination or clue what is happening here?
Also, maybe some of you have the time to run the program in order to get some more observations.?
I'm looking forward to your input.
-- modified at 5:02 Thursday 2nd August, 2007
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
Hi again,
Stefan Troschuetz wrote: If running the program in debug mode everything is fine.
If the program is run in release mode, it prints out "NextDouble: Infinity"!!
If the program is run in release mode with the last line in NextDouble uncommented everything is fine again.
So what is the problem ??
And did you ever care to print out range (that is, if it ever goes wrong) ?
|
|
|
|
|
Luc Pattyn wrote: So what is the problem ??
Error in my post: It should be: "If the program is run in release mode, it prints out "NextDouble: Not infinity"!!". I modified this.
Luc Pattyn wrote: And did you ever care to print out range (that is, if it ever goes wrong) ?
Yes I did. The last line in NextDouble prints out range (if uncommented of course). It always gives that range is positive infinity and as I said in this case the program works as expected.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
I save the login IP adress in my Application DB as Long data Type, I want to Retrive it a gain in a report as IP address. can you help me.
merwa
|
|
|
|
|
|
How can i create a folder/file in registry and how can I write in the registry file?
Regards, Qaiser Nadeem
|
|
|
|
|
Hello,
Look at "Microsoft.Win32" namespace, ther you find the "RegistryKey" class.
This Article[^] will help you!
All the best,
Martin
|
|
|
|
|
I set the TopMost property to true in the Load event, and I call BringToFront() in the Activate event.
But these things seem to have no effect. The form appears, but doesn't come to the front or stay in front.
The form Border Style is set to None, so it has no title bar or border.
Does that make a difference?
How do I cause a form to come in front of all other windows, and stay on top?
--------------------------------
"All that is necessary for the forces of evil to win in the world is for enough good men to do nothing" -- Edmund Burke
|
|
|
|
|
Have you tried SendToBack() in the form that opens the modal form?
Visit my blog at http://dotnetforeveryone.blogspot.com/
|
|
|
|
|
Hello,
I am using TextBox to display some information to user. I made it disable(Uneditable) as restriction.
i want to highlight the text in TextBox but due to Enable = false, displaying the text always grayed.
How can i highlight the text of Uneditable textbox..
Thanks.
gajesh
|
|
|
|
|
Try to set the ReadOnly property to true and Enabled to false and check its behaviour.
Visit my blog at http://dotnetforeveryone.blogspot.com/
|
|
|
|
|
You can change the backcolor explicitly, so that your textbox will be in the color you choose...
|
|
|
|
|
How do we create a folder by using C#? For example , suppose if we want to create a new folder means , Right click --> New Folder. The same way I want to create a New folder dynamically
|
|
|
|
|
hi,
use following statement
DirectoryInfo obDir = new DirectoryInfo(MainDataDirectoryPath);
obDir.Create();
hope this helps
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
|
|
|
|