|
|
Because you posted it on at least 3 different forums on this site within minutes of each other.
Doing something like that will not get you an answer any faster, and may annoy someone who does know it enough that they won't bother to reply.
-- modified at 13:44 Thursday 2nd March, 2006
|
|
|
|
|
Unable to solve ... please help
CODE:
-----
public ProductObject[] OProduct;
ArrayList myProduct;
public void MyProduct()
{
ProductObject OProduct = new ProductObject();
myProduct = new ArrayList();
for (int i=1; i<=10; i++)
{
OProduct.Loader(i);
myProduct.Add(OProduct);
}
OProduct = (ProductObject[])myProduct.ToArray(typeof(OProduct));
}
ERROR:
------
Cannot implicitly convert type OProduct[] to OProduct
|
|
|
|
|
Pete Madden wrote: typeof(OProduct)
typeof(ProductObject)
|
|
|
|
|
|
Hello Coders,
In my Form I have LinkButton, PictureBox. I want to populate the ContextMenu MenuItems Dynamically based on the Control .
for this i need to find at which control mouse pointer is ?
any sounds will be appriciated.
regards
GV Ramana
|
|
|
|
|
Your question, at face value, sounds meaningless. Handle right click on the link button and populate the context menu accordingly (as it should be for the link button), and handle right click for the picturebox, and do the same in its handler. That's it!
But obviously the fact that you have asked the question means that there is more to it than that! So what's more?
Koushik Biswas
|
|
|
|
|
I think he is looking for a generic way, something like Form.KeyPreview is for keys but for the mouse. The only way I think is to use hooks, as this is the only approach I have seen.
|
|
|
|
|
Hi, I have an aspx page that I want to accept 2 files. These two files in turn I wish to be parameter to a C# console App on the same webserver. Whats the best way of going about this? Also the main function Program.cs returns an int depending on results etc, how can I retrieve this? Thanks in advance,
|
|
|
|
|
Hi,
I have been searching for help on this issue since many days.
I have a video on my desktop and it has some properties assgned to it through summary.
this can be done by right clicking the video and going into properties and then to summary tab.
Now the requiremnt is to get these details from c# code .
Any amount of help will be appreciated.
Thanks
Sama
|
|
|
|
|
You need to do a search on extracting the metadata from video files.
|
|
|
|
|
Read this article[^]
regards,
Mircea
Many people spend their life going to sleep when they’re not sleepy and waking up while they still are.
|
|
|
|
|
Hi Mircea,
Thanks a ton for the article.
It helped me in solving a major part of my problem.
But i have seen the the code doesnt work for .mov,etc kinds of files.
my req was to take metadata including comments,keywords from video files.
if you could provide me more help , i would be very grateful to you.
Thanks,
Sama
|
|
|
|
|
you'll need to google other formats to find how they store thier meta data. Info on the .mov format can probably be found on apples website somewhere.
|
|
|
|
|
Hello all,
I made one project in VS 2005 C# in which i use on dll file. I also make setup for that. So when i install this it will copy all sll files.
Now error is that when one dll i use it will error that LoadLibrary(DLL Difile)fail. Reinstall application will fix it.
Now a computer which has VS 2005 the error is not come for this PC. & a PC which has no VS2005 only FrameWork 2.0 it will give error.
Rearads,
Divyang Mithaiwala
|
|
|
|
|
I have a form based application , i overrided the Form1_Closing event in order to perform a minimize instead of closing and i let the form close only in case of menu close (don't ask me why I did this), anyway since usually the application runs in the system tray area i cannot shutddown or logoff without first closing the app.
How can i intercept if the window is closing because tehre's a system shutdown in progress, or logoff?
I downloaded the SystemEventsHandler on this site but it didn't work.
|
|
|
|
|
If you remove the control box for closing then the user have to use the menu to close the application. If a closing-event occurs without calling the menu, the user will probably logoff or shutdown.
sterenzi wrote: and i let the form close only in case of menu close (don't ask me why I did this)
Why are you doing this?! I wouldn't have asked but now I'm curious.
Greetings,
Ingo
------------------------------
A bug in a Microsoft Product? No! It's not a bug it's an undocumented feature!
|
|
|
|
|
1st thank for suggestion but unfortunately it doesn't work, ...
OK, i have to tell why iI did this....
My application uses the closing button (and system menu but whoever used it?) only to minimize and a custom menu on the system tray to close(set a flag and do a test in the form_closing), I did this because should be very easy and quick to minimize my window, the window is vey small so that the minimize box is not shown.
So that i cannot distinguish if the x was pressed or a shutdown is in progress.
I know i could show the minimize box and disable the close box but now is a question between me and C#, I want to do like this!
Regards Stefano
|
|
|
|
|
Add the following method in your main form and evaluate the variable allowClosing in the event handler of the closing event.
protected override void WndProc(ref Message m)
{
if (m.Msg == 0x0011)
this.allowClosing = true;
}
www.troschuetz.de
|
|
|
|
|
Don't forget to add the base.WndProc(ref m) at the end, or your application will stop receiving events (windows messages).
--------
"I say no to drugs, but they don't listen."
- Marilyn Manson
-- modified at 10:12 Thursday 2nd March, 2006
|
|
|
|
|
Ups, I've forgot to copy this very important line cause i had some more stuff in my override of WndProc.
Thanks for your comment
www.troschuetz.de
|
|
|
|
|
I assumed you forgot it, I just wanted the guy not to be lost if he forgot it also. That could be a nasty one to figure out.
--------
"I say no to drugs, but they don't listen."
- Marilyn Manson
|
|
|
|
|
No my friends,
this is just what I was looking for and i already put the base.WndProc so that couldn't tell you it was working since finally my computer was shutting down and logging off!!!!
Really thanks to both of you!
Now the question could be (but I won't ask) : HOW TO DEBUG A SYSTEM SHUTDOWN?
Stefano
|
|
|
|
|
You could use the System.Diagnostics.Debug class and companions, since you cannot use a debugger in a system shutdown.
--------
"I say no to drugs, but they don't listen."
- Marilyn Manson
|
|
|
|
|
Can anyone tell me what's software have that function.
Nothing
-- modified at 8:43 Thursday 2nd March, 2006
|
|
|
|