Click here to Skip to main content
15,913,836 members
Home / Discussions / C#
   

C#

 
AnswerRe: is this good C# linq to sql code? Pin
omidh200713-Nov-11 11:58
omidh200713-Nov-11 11:58 
QuestionWinForms - Zoom In/Out (MS Word-Style) Pin
Matt U.12-Nov-11 6:46
Matt U.12-Nov-11 6:46 
AnswerRe: WinForms - Zoom In/Out (MS Word-Style) Pin
Alisaunder13-Nov-11 2:30
Alisaunder13-Nov-11 2:30 
GeneralRe: WinForms - Zoom In/Out (MS Word-Style) Pin
loyal ginger13-Nov-11 2:39
loyal ginger13-Nov-11 2:39 
GeneralRe: WinForms - Zoom In/Out (MS Word-Style) Pin
Alisaunder13-Nov-11 2:41
Alisaunder13-Nov-11 2:41 
AnswerRe: WinForms - Zoom In/Out (MS Word-Style) Pin
BillWoodruff13-Nov-11 11:00
professionalBillWoodruff13-Nov-11 11:00 
QuestionText Entry / Scrolling Dilema Pin
PDTUM12-Nov-11 6:41
PDTUM12-Nov-11 6:41 
AnswerRe: Text Entry / Scrolling Dilema Pin
BillWoodruff13-Nov-11 11:24
professionalBillWoodruff13-Nov-11 11:24 
WinForms .NET 4.0, VS 2010 Pro SP1

1. Create a WinForm project

2. Make the initial default Form1 800x600

3. put a TabControl on it: size it to taste

4. select any TabPage you've added (or one of the default two that are automatically created when you add the TabControl to the Form):

a. set the AutoScroll property of the selected TabPage selected to 'true

b. insert a Panel in the selected TabPage: set its Location to 0,0, and size to 1000x800:

Discussion: even with the Panel 'AutoScroll property set to 'false (in case you thought that that was a factor here): you can still scroll the TabPage at design-time and put Controls anywhere on the Panel.

But, you may notice a weird graphic hiccup that I consider a bug in WinForms: the bounding area of the Panel may appear to extend to the left of the TabControl in a way that has obviously nothing to do with the settings of the Panel: but, this has no effect on your ability to use the larger-than-TabControl Panel at design-time.

Also, if you copy and paste a Control which has been sited (for example at the right edge of your big Panel), you may be surprised the pasted Control appears outside the current viewport: but it's there and you may have to scroll around to find it and move it. Also, I think, a bug in WinForms. Although, to give the benefit of the doubt: is there any code of etiquette about what's supposed to happen when you copy and paste Controls in a container in terms of "placement" ? Smile | :)

I remember when I tried to do this once that I thought setting the Anchor property of the Control that was in the big Panel to 'Right would make the inserted Control "snap" to the right side of the big Panel, even if it was out-of-view at run-time: wrong.

In your case since you are using RadioButtons, and presumably are using them all in one container so that only one of them is "on" at any one time: why not just create some Panel or GroupBox or whatever, then site that where you need it to be in the big Panel, and then put all the RadioButtons in that ?
"I have always wished for my computer to be as easy to use as my telephone; my wish has come true because I can no longer figure out how to use my telephone." Bjarne Stroustrop circa 1990

GeneralRe: Text Entry / Scrolling Dilema Pin
PDTUM14-Nov-11 7:01
PDTUM14-Nov-11 7:01 
QuestionASP.NET Multi Language Pin
koncuk12-Nov-11 3:35
koncuk12-Nov-11 3:35 
AnswerRe: ASP.NET Multi Language Pin
Abhinav S12-Nov-11 21:35
Abhinav S12-Nov-11 21:35 
QuestionConnect and Read from USB Pin
Jassim Rahma12-Nov-11 3:11
Jassim Rahma12-Nov-11 3:11 
AnswerRe: Connect and Read from USB Pin
OriginalGriff12-Nov-11 4:57
mveOriginalGriff12-Nov-11 4:57 
QuestionCreate image from panel control to include child controls Pin
Danzy8312-Nov-11 2:02
Danzy8312-Nov-11 2:02 
AnswerRe: Create image from panel control to include child controls Pin
OriginalGriff12-Nov-11 2:28
mveOriginalGriff12-Nov-11 2:28 
GeneralRe: Create image from panel control to include child controls Pin
Danzy8312-Nov-11 2:40
Danzy8312-Nov-11 2:40 
GeneralRe: Create image from panel control to include child controls Pin
Matt U.12-Nov-11 2:55
Matt U.12-Nov-11 2:55 
GeneralRe: Create image from panel control to include child controls Pin
Danzy8312-Nov-11 3:36
Danzy8312-Nov-11 3:36 
AnswerRe: Create image from panel control to include child controls Pin
Luc Pattyn12-Nov-11 4:09
sitebuilderLuc Pattyn12-Nov-11 4:09 
GeneralRe: Create image from panel control to include child controls Pin
Danzy8312-Nov-11 4:29
Danzy8312-Nov-11 4:29 
AnswerRe: Create image from panel control to include child controls Pin
Luc Pattyn12-Nov-11 4:38
sitebuilderLuc Pattyn12-Nov-11 4:38 
GeneralRe: Create image from panel control to include child controls Pin
Danzy8312-Nov-11 4:53
Danzy8312-Nov-11 4:53 
AnswerRe: Create image from panel control to include child controls Pin
Luc Pattyn12-Nov-11 5:25
sitebuilderLuc Pattyn12-Nov-11 5:25 
AnswerRe: Create image from panel control to include child controls Pin
OriginalGriff12-Nov-11 4:53
mveOriginalGriff12-Nov-11 4:53 
GeneralRe: Create image from panel control to include child controls Pin
Danzy8312-Nov-11 4:56
Danzy8312-Nov-11 4:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.