Trouble using multiple panels on visual studio [closed] - c#

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.

Related

Visual C# - How can I layer the status strip to be behind my list view? [closed]

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 8 years ago.
Improve this question
When I resize my window, the StatusStrip I have located at the bottom of the form sits on top of the ListView.
How I can set the StatusStrip to be behind the list view?
I figured it out! You just have to right click on the StatusStrip and click "Send To Back"
Set Anchor property of StatusStrip to Bottom, or you can add the code on maximize - statusStrip.SendToBack()

Best way to implement Drag and Drop Dashboard items in WPF? [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 2 years ago.
Improve this question
I'm trying to make a dashboard application, and I'm trying to create the layout rules for it and such and I'm not sure the best way to go about it. Originally I had a custom grid control, so I could add my custom controls to it easily enough. It worked in the sense that if you initially put stuff there, it was fine. But I want to implement a drag and drop facility in it and it kinda doesn't really like that.
The biggest annoyance is just detecting what position my mouse is on in terms of what row and column its in in the grid. So So I thought instead of a grid, I could use a Canvas, and just manually measure the grid slots. But I'm not sure if there's a better way. I'd like to mimic how on android, you can have widgets for the home screen and you can drag and drop them around the screen. I'd like it to just be like that essentially.
When dragging, I'd like have a green rectangle move instead of the thing and make it red if it overlaps with something else. Like I said, basically just like how android widgets work. I'd love some code examples since I'm new to WPF. If you've got any more general suggestions as well, that would be well appreciated.
Thank you!
check out blacklight and its newer version on github
the dashboard demo is what you need to look at.
You may have trouble to compile the code, but simply by removing the silverlight projects you can get the WPF demo running.
I know this is an old question. Creating this answer for anyone else who stumbles onto this question looking for a WPF Dashboard. I couldn't find any other Dashboards with dynamic widgets out in the wild so I created my own and I am sharing for anyone else who needs a better solution. This sounds like what Gentatsu was looking for in his initial question.
You can find it here:
https://github.com/DustinBryant/WpfDashboardControl

how to dock three panels on same winform in VS2010 [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
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.

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?

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