Click here to Skip to main content
15,900,816 members
Home / Discussions / C#
   

C#

 
Questionurgent................ Pin
fgfdhghgfd21-May-07 19:25
fgfdhghgfd21-May-07 19:25 
AnswerRe: urgent................ Pin
Luka Grabarevic21-May-07 20:17
Luka Grabarevic21-May-07 20:17 
GeneralRe: urgent................ Pin
Expert Coming21-May-07 20:29
Expert Coming21-May-07 20:29 
GeneralRe: urgent................ Pin
Luka Grabarevic21-May-07 20:39
Luka Grabarevic21-May-07 20:39 
GeneralRe: urgent................ Pin
Expert Coming21-May-07 21:01
Expert Coming21-May-07 21:01 
AnswerRe: urgent................ Pin
Luka Grabarevic21-May-07 20:18
Luka Grabarevic21-May-07 20:18 
AnswerRe: urgent................ Pin
Muammar©21-May-07 21:12
Muammar©21-May-07 21:12 
QuestionLocation of controls on scrollable Panel? Pin
kbalias21-May-07 19:06
kbalias21-May-07 19:06 
Hi
I am using Visual Studio 2005 and C# to develop a windows application. I have a UserControl that various input forms (textboxes). On my windows form I have a Panel with AutoScroll = true.

I add the UserControls at runtime. They are all added under each other and I determine the Y position on the Panel and then add the next UserControl to Panel as follows:

private int verticalGap = 5;<br />
private int yLocation = 1;<br />
<br />
yLocation += userControl1.Size.Height + userControl1.Location.Y + verticalGap;<br />
userControl1.Location = new Point(1, yLocation );<br />
panelEntries.Controls.Add(userControl1);


The UserControls are all added to Panel and all display as required under each other. However once I have scrolled down to see the UserControls at the bottom of the Panel, and I add more UserControls they do not seem to adhere to the verticalGap value I use in my formula because the gap between the last UserControl and the previous one is now suddenly much more than it should be.

When I add the new UserControl using the Point coordinates, does it use only the visible part of the Panel to determine the position rather than using the full sizes of the Panel?

Any ideas of how I can remedy this?

Kobus
AnswerRe: Location of controls on scrollable Panel? Pin
Expert Coming21-May-07 21:16
Expert Coming21-May-07 21:16 
AnswerRe: Location of controls on scrollable Panel? Pin
PandemoniumPasha21-May-07 22:36
PandemoniumPasha21-May-07 22:36 
QuestionHow can I recovery Crystal report version 9 ? Pin
Unpungman21-May-07 17:18
Unpungman21-May-07 17:18 
QuestionHow can I create Installer for a lot of computer in network synchronously ? Pin
Unpungman21-May-07 17:07
Unpungman21-May-07 17:07 
AnswerRe: How can I create Installer for a lot of computer in network synchronously ? Pin
Expert Coming21-May-07 20:26
Expert Coming21-May-07 20:26 
QuestionCrystal Report: How to set paper size to A3 before export? Pin
Doan Quynh21-May-07 16:35
Doan Quynh21-May-07 16:35 
AnswerRe: Crystal Report: How to set paper size to A3 before export? Pin
AMIT_BHAGAT28-Sep-16 20:44
AMIT_BHAGAT28-Sep-16 20:44 
Questionhow to display the image in DataGridView in ImageBox? Pin
Khoramdin21-May-07 12:54
Khoramdin21-May-07 12:54 
AnswerRe: how to display the image in DataGridView in ImageBox? Pin
nikita_sinenko21-May-07 21:43
nikita_sinenko21-May-07 21:43 
QuestionNeed help making a basic program in C# [modified] Pin
cmh62321-May-07 11:38
cmh62321-May-07 11:38 
AnswerRe: Need help making a basic program in C# Pin
Christian Graus21-May-07 11:46
protectorChristian Graus21-May-07 11:46 
AnswerRe: Need help making a basic program in C# Pin
Muammar©21-May-07 21:16
Muammar©21-May-07 21:16 
QuestionToolStrip Question Invalid Argument Pin
Rick van Woudenberg21-May-07 10:44
Rick van Woudenberg21-May-07 10:44 
AnswerRe: ToolStrip Question Invalid Argument ( fixed ) Pin
Rick van Woudenberg21-May-07 11:51
Rick van Woudenberg21-May-07 11:51 
GeneralRe: ToolStrip Question Invalid Argument ( fixed ) Pin
Expert Coming21-May-07 20:34
Expert Coming21-May-07 20:34 
GeneralRe: ToolStrip Question Invalid Argument ( fixed ) Pin
Rick van Woudenberg22-May-07 12:29
Rick van Woudenberg22-May-07 12:29 
Questionhow to work with regular Expression. Pin
hdv21221-May-07 10:38
hdv21221-May-07 10:38 

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.