Similar Threads
1. Form Designer resize controls by itself.
Hi,
I have a problem with the Form Editor VS2008 in a C# Windows application.
Form Editor seems to change size of some controls to an arbitrary large
values by its own will.
I position, resize, dock and anchor controls in a Form Editor, run my
application and all works fine. But when I close the form and reopen it in
again in the VS2008 Form Editor some controls become resized to very large
values. If I position them correctly they will be OK until next time I will
reopen the form in the Editor.
This is in particular very intense on the second (third, etc ..) tabs of the
Tab Control, when I am using top, left, bottom anchoring and controls in
question are inside the Split Container.
Is it a way to get rid of that behavior?
Thanks,
Victor
2. Can I automatically resize all controls in a Dialog without adding user codes
3. how is a spin button control connected to a buddy edit control
Hello!
I have this piece of code below and the code works fine.
I have one question that I can't understand how is the spin control field
here called IDC_SPIN1
connected to the buddy edit control which actually display the value from
the spin control.
I have looked everyway but I can't see where the connection is made.
The buddy edit control field is called IDC_BUDDY_SPIN1
I would understand all the code if the last line instead had this row
"SetDlgItemText(IDC_BUDDY_SPIN1, strValue);"
but now it hasn't so hopefully somebody might explain how the spin control
field is connected to the buddy edit control field .
void CEx06bDialog::OnVScroll(UINT nSBCode, UINT nPos, CScrollBar*
pScrollBar)
{
if (nSBCode == SB_ENDSCROLL)
{
return; // Reject spurious messages
}
// Process scroll messages from IDC_SPIN1 only
if (pScrollBar->GetDlgCtrlID() == IDC_SPIN1)
{
CString strValue;
strValue.Format("%3.1f", (double) nPos / 10.0);
((CSpinButtonCtrl*)
pScrollBar)->GetBuddy()->SetWindowText(strValue);
}
}
//Tony
4. BCB 5 resizes the form by itself - Borland C++ Builder VCL Components
5. Resizing Font automatically depending on Width and Height
Hello,
I have several panels in my application with labels on it. If the user
switches off one panel, another panel should resize (bigger) and the caption
on labels should be bigger.
How can I calculate the font size at runtime, depending of Panel->Width and
Panel->Height?
Thanks
6. Correct way to resize a control when form is resized - CSharp/C#
7. Looking for C# Spin Control
Is there a control equivalent to the old Spin control? The one with two hour heads and an optional
textbox in the middle? The closest I can find is the NumericUpDown control and it's not the same as
the Spin control. I just want a sizeable up/down arrow pair.
8. how to spin the date (a new control in C#) - CSharp/C#