how to dock three panels on same winform in VS2010 [closed] - c#

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.

Related

Trouble using multiple panels on visual studio [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I'm using visual studio 2012 and i'm finding it extremely difficult(and irritating) to handle multiple panels. I have almost 20 panels stacked on top of each other. I had to make changes to a lower panel so I removed the panels from the top and updated it. Now the lower panel buttons and group boxes keep sticking on all other upper panel buttons and keep covering them.
So basically i can't see half portion of upper panels as the lower panel's controls keep covering 'em up. I don't know what caused this. Please help me out.
Without seeing what your problem looks like it is hard to answer, but since you have multiple panels you probably accidently changed the Parent of some of your controls or panels.
I find that working with layered controls can be a pain, you need to get used to using the BringToFront and SendToBack Editor Commands.
To answer your question you can try looking at your InitializeComponent Method to see if you can determine exactly what happened.

getting value from jQuery modal window page [closed]

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...

How to build Pentomino game [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I want to build the Pentomino game in C#/XAML for Windows 8(8.1). I need field and draggable figures.
How I can do it? For draggable I'm using ManipulationDelta property, but how do I know that the figure is in the field and how do I attach it (figure in field)?
As your question stands, it's too broad.
For future reference, you should try splitting your problem into smaller problems, and asking seprate questions for each of them after doing some home research first.
Also, sharing some code about what you've tried can get more people to help you.
Having said that, I've never worked with XAML, though I've worked with C# for some time now.
About your problems:
For pentomino you will need a board. using Grid or DataGridView sounds like a good approch to me.
For representing your figures, your grid can be queried to find out if your figure can be droped on a certain square. Prepare for writing some for loops.
Abput drag'n drop, here are some links that you may find useful:
XAML GridView to GridView Drag and Drop Mouse vs Touch
Dropping an item on an UserControl item in GridView doesnt trigger Drop event (includes sample project)
How do I drag an element in Windows 8 XAML app?

transparent popup window that doesnt take focus .net [closed]

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

Dialog too large for netbook's 800 x 480 resolution [closed]

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.

Categories

Resources