Click here to Skip to main content
15,914,162 members
Home / Discussions / C#
   

C#

 
AnswerRe: Set label's background color to transparent. Pin
Martin#21-May-07 21:53
Martin#21-May-07 21:53 
GeneralRe: Set label's background color to transparent. Pin
blackjack215021-May-07 22:48
blackjack215021-May-07 22:48 
GeneralRe: Set label's background color to transparent. Pin
Martin#21-May-07 22:54
Martin#21-May-07 22:54 
GeneralRe: Set label's background color to transparent. Pin
blackjack215021-May-07 23:15
blackjack215021-May-07 23:15 
GeneralRe: Set label's background color to transparent. Pin
Martin#21-May-07 23:32
Martin#21-May-07 23:32 
GeneralRe: Set label's background color to transparent. Pin
blackjack215021-May-07 23:40
blackjack215021-May-07 23:40 
GeneralRe: Set label's background color to transparent. Pin
Martin#21-May-07 23:43
Martin#21-May-07 23:43 
QuestionHelp!!! Pin
MarkB77721-May-07 21:30
MarkB77721-May-07 21:30 
AnswerRe: Help!!! Pin
Martin#21-May-07 21:48
Martin#21-May-07 21:48 
GeneralRe: Help!!! Pin
MarkB77722-May-07 0:19
MarkB77722-May-07 0:19 
AnswerRe: Help!!! Pin
Giorgi Dalakishvili21-May-07 22:01
mentorGiorgi Dalakishvili21-May-07 22:01 
GeneralRe: Help!!! Pin
Martin#21-May-07 22:06
Martin#21-May-07 22:06 
GeneralRe: Help!!! Pin
Giorgi Dalakishvili21-May-07 22:11
mentorGiorgi Dalakishvili21-May-07 22:11 
GeneralRe: Help!!! Pin
Martin#21-May-07 22:16
Martin#21-May-07 22:16 
GeneralRe: Help!!! Pin
Giorgi Dalakishvili21-May-07 22:23
mentorGiorgi Dalakishvili21-May-07 22:23 
QuestionAbout use ocx question.I need Help Pin
jason_mf21-May-07 19:29
jason_mf21-May-07 19:29 
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 

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.