Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I would like to create a Semi transparent popup window that simply appears at a location on the desktop for 3 seconds, it fades in and fades out but doesnt take any focus.
To do this I need to pass a string and fire up the popup in c#, similar to a jQuery popup but this popup must appear on the top most layer above every other window
Whats the correct approach?
If this is WinForms, then you'd just use a timer and the opacity property of the form. The form also has a TopMost property.
As already noticed, Timer+Opacity for fade in/out
and override Form.CreateParams for get rid of focus. You shoud play with Style and ExtStyle properties of params to get exactly what you want. Here is an article with general explanation on this topic:
http://www.codeproject.com/Articles/71808/Creating-a-Form-That-Doesn-t-Take-Focus
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
Oddly, my text boxes gets blurred after i did some changes in the form properties. I think that i changed opacity of form due to which this is happening but changed it back, nothing happened. Still stuck in this problem. Tried adding new text boxes. Same problem :(
Screenshot
You seem to have set the form's TransparencyKey property to Black. This makes everything in your form that is drawn in black color transparent.
Simply change the property to something else, or just set it to Transparent to make it only apply to completely transparent colors.
EDIT: You can also right-click the TransparencyKey property and press Reset.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
I want to move an object on WinForms (with WASD) and it goes pretty well,but when I add a button at the Form, the object doesn't move anymore.
Controls like Button take focus and "eat" the keypress events. A form will always set focus to one of its child controls if there is one that allows getting focus.
Set KeyPreview = true on your form to receive these events regardless.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
My goal is to have three panels on one winform and each of them has one listview which docked onto it so that when maximize window, all listview componenets gets automatically resized properly.
As I understand, docking is the the way to go, but it seems I can only dock one listview per panel and one penal per winform, does anyone know a better soluton?
this is in VS2010 c# I am using .net3.5 but Im not limited to any specific versions, but prefer using older version for comaptibility
As noted, you can dock more than one panel in a form. But only one of them can be Dock = Fill, the others won't resize automatically. Unless you add the code to do so in the OnResize override.
A TableLayoutPanel can resize all panels automatically.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 9 years ago.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Improve this question
I have a modal window on a page, inside the window it loads a .aspx page within it using an iframe.
I would like the ability on click of a link within the modal window (.aspx) to send back a value to the page that holds the modal window.
Do you know how I can do that? It's basically so I can use the modal as a search, select an item then do things with it in the previous window.
Thanks.
To communicate from the iframe with the caller window you use the window.top.document or the window.parent.document which is suits you.
With simple javascript you look for elements like that:
window.top.document.getElementById("ControlIdToFindOnTop")
and because you work on asp.net make sure that you have set static control id, on your control because the two pages can not communicate to locate the control id using the usual ControlIdToFindOnTop.ControlID
Now using jQuery you can do the same, locate an object on top windows as:
jQuery("#ControlIdToFindOnTop", window.top.document)
And to call functions from iframe that exist on top window you can call something like:
window.top.FunctionToRun();
After you have the control object, you can read the value, the text, their properties, etc...
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I've designed a winforms dialog that is too large for a netbook's 800 x 480 resolution.
How can I fix that the dialog is shown properly. Is there a simple way that avoids a complete redesign?
Here's a screenshot of my problem: http://img689.imageshack.us/img689/2449/allgemeina.jpg
You might want to look at this thread:
Windows Forms resolution problem
The question that you should be asking is..
Do I really need to have all of the form fields displayed at the same time?
If not, how about breaking it down into sub-groups and placing each group onto a separate tab?
I second #p.campbell in asking for a screenshot.
Perhaps take a stab at redesigning your dialog. Perhaps consider:
using tabs
moving some information out of the dialog
using scrollbars
If netbooks are not used much by your users, so you just need your software to work on them rather than to be nice, you could enable AutoScroll on the Form/Dialog, or use a one or more Panel controls with AutoScroll enabled.
You will then need to check the screan size and set the size of the dialog to be no bigger then the screan before showing it.