Click here to Skip to main content
15,911,360 members
Home / Discussions / C#
   

C#

 
AnswerRe: Get/use data in a c# program? Pin
Abhishek Sur15-Nov-09 10:55
professionalAbhishek Sur15-Nov-09 10:55 
GeneralRe: Get/use data in a c# program? Pin
ahlm15-Nov-09 18:54
ahlm15-Nov-09 18:54 
GeneralRe: Get/use data in a c# program? Pin
Abhishek Sur15-Nov-09 21:02
professionalAbhishek Sur15-Nov-09 21:02 
GeneralRe: Get/use data in a c# program? Pin
Shameel16-Nov-09 3:04
professionalShameel16-Nov-09 3:04 
GeneralRe: Get/use data in a c# program? Pin
Abhishek Sur16-Nov-09 3:35
professionalAbhishek Sur16-Nov-09 3:35 
GeneralRe: Get/use data in a c# program? Pin
dojohansen15-Nov-09 23:16
dojohansen15-Nov-09 23:16 
GeneralRe: Get/use data in a c# program? Pin
ahlm16-Nov-09 6:25
ahlm16-Nov-09 6:25 
QuestionForm's height being cut off Pin
gdub15-Nov-09 9:17
gdub15-Nov-09 9:17 
On a new windows form app, I have this code:

public Form1()
{
    InitializeComponent();
    this.AutoScroll = true;
    for (int i = 0; i < 500; i++)
    {
        Button btn = new Button();
        btn.Text = i.ToString();
        btn.Height = 100;
        btn.Dock = DockStyle.Top;
        this.Controls.Add(btn);
    }
}


so I should get 500 buttons, 100px height each on a scrollable form. However I don't, I get the following:

http://img204.imageshack.us/img204/2564/22179761.png[^]

however, if my scroll bar is NOT at the top, and I resize the form a little bit, everything shows up. Any ideas? Thanks.

edit: the height before the form cuts off controls is around ~32 800px.
AnswerRe: Form's height being cut off Pin
Luc Pattyn15-Nov-09 10:09
sitebuilderLuc Pattyn15-Nov-09 10:09 
GeneralRe: Form's height being cut off Pin
dojohansen15-Nov-09 23:20
dojohansen15-Nov-09 23:20 
Questionproblem in reading of connection string inside app.config by application Pin
Mohamed El-Wehishy15-Nov-09 8:58
Mohamed El-Wehishy15-Nov-09 8:58 
AnswerRe: problem in reading of connection string inside app.config by application Pin
PIEBALDconsult15-Nov-09 13:45
mvePIEBALDconsult15-Nov-09 13:45 
AnswerRe: problem in reading of connection string inside app.config by application Pin
Shameel16-Nov-09 3:08
professionalShameel16-Nov-09 3:08 
Questionsome Windows 7 and C# question Pin
E_Gold15-Nov-09 7:49
E_Gold15-Nov-09 7:49 
AnswerRe: some Windows 7 and C# question Pin
Christian Graus15-Nov-09 8:56
protectorChristian Graus15-Nov-09 8:56 
GeneralRe: some Windows 7 and C# question Pin
Adam Maras15-Nov-09 14:19
Adam Maras15-Nov-09 14:19 
GeneralRe: some Windows 7 and C# question Pin
Super Lloyd15-Nov-09 15:18
Super Lloyd15-Nov-09 15:18 
GeneralRe: some Windows 7 and C# question Pin
dojohansen15-Nov-09 23:27
dojohansen15-Nov-09 23:27 
GeneralRe: some Windows 7 and C# question Pin
Super Lloyd16-Nov-09 2:27
Super Lloyd16-Nov-09 2:27 
GeneralRe: some Windows 7 and C# question Pin
Shameel16-Nov-09 3:12
professionalShameel16-Nov-09 3:12 
QuestionHow to play video in c# Pin
Xelalem15-Nov-09 6:17
Xelalem15-Nov-09 6:17 
AnswerRe: How to play video in c# Pin
Abhishek Sur15-Nov-09 6:40
professionalAbhishek Sur15-Nov-09 6:40 
GeneralRe: How to play video in c# Pin
Xelalem15-Nov-09 6:50
Xelalem15-Nov-09 6:50 
GeneralRe: How to play video in c# Pin
Christian Graus15-Nov-09 8:57
protectorChristian Graus15-Nov-09 8:57 
GeneralRe: How to play video in c# Pin
Xelalem15-Nov-09 10:25
Xelalem15-Nov-09 10:25 

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.