I’ve define a panel on my from and define the panel dock as none, and increase the panel height each time I add new item at the button of the panel, once the panel size exceed form size, the form create vertical scroll bar and its great.
The problem is that I can use the mouse in order to scroll down the panel but the keyboard is not working such as page up, page down, up key and down key
I look at the form and panel property and I didn’t find anything that could help
If you have a scroll bar and the control has focus, then it will either just work ( which would have been my guess ), or you need to write code to handle it ( which seems odd to me, but if it doesn't work at all, that's probably the solution ).
Does the control have focus when you press the keys ?
I was trying to Automate MS Excel, I want to check the validity of a COM Object in C#. For Instance, after releasing a sheet Object using "Marshal.ReleaseComObject(m_oSheets)" Sheet object is not equal to null. How to check a COM Object is valid or not.
Thanks in Advance.
Docs says it will be null for C# Object but it is not null even after releasing the Excel Object with the following code "Marshal.ReleaseComObject(m_oSheets)". I don't want to set it to null. My question is "How do i know the particular Excel Object is valid or not".
Thanks for response
I guess the simplest way to put it is that I need to figure out how to launch those programs. I've heard of images being able to be shown in pictureboxes...but I really will only have one image. All of the others are going to be some sort of application. How do I make it so when a button is clicked, the application will open. It doesn't have to open within the program though. Also, I'm going to be handing the program out on cds and I need to make sure there will be a way for the program to find the applications on the computer it is in. I'm thinking this can be done by just saving the application onto the cd as well.
Any idea about how to get the content-type for a video file? I am writing an ASP.Net application which writes video binary content back to browser client to invoke related media player, and needs to fill-in the content-type field of response header.
You've been here long enough to know where the ASP.NET forum is. There's also tons of websites that list all the known content types. If you're asking how to know what the type is, the file extension is your best bet.
i have a c# window application form in which i have made options through the menustrip like file---> Open-----> New----> EXIT .... etc
here i have written the code this.close() for EXIT. and if i run the application and click the EXIT it will close the application
Now i want the same thing to be occured if i press ctrl+x through the Keybord.