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

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.

Related

Change style of datetimepicker in windows form [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 5 years ago.
Improve this question
Is it possible to change the style of datetime picker in windows c# application, I want round shape border to my calendar. Required style and current view is provided in Image . Thank you.
Syncfusion DateTimePickerAdv supports creating rounded corner DateTimePicker. Here is an example.
Screenshot
You need Syncfusion Essential Studio to be installed for the sample to work.
The entire product is available in this link.
Note: I work for Syncfusion.
Short answer: No
Long answer: You can't do that 'out of the box' in win forms application, unless you are ready to pull your hair out to write custom controls (Even then you will not achieve what you are expecting, like above image)
Other options would be to use WPF and/or use some 3rd party controls (like Telerik or Syncfusion)

Closing windows form via taskbar different to close button? [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
I have a windows forms program which saves properties like its size, location, splitter bar locations &c in a properties file in hte usual way. I've noticed that whenever I close the application by right clicking on its taskbar icon and choosing 'close window', these properties don't save correctly and my application then either won't start or starts with size 0 or something.
Of course I can catch these problems and hack around them, but I would like to know what is different between closing via the form and via the taskbar, so I can handle the appropiate events.
As the first commenter to recommend the use of Form.Closed, I'm demanding my ransom money! :-)

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.

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?

Categories

Resources