Anchor problems

  • Thread starter =?ISO-8859-1?Q?Melanie_R=F6sch?=
  • Start date
?

=?ISO-8859-1?Q?Melanie_R=F6sch?=

Hi all,

I have an application where I docked a TabControl with 'FILL'.
In these TabControl I have:
- a Label with anchor 'Left, Top'
- a TextBox with anchor 'Left, Top, Right'
- a Button with anchor 'Top, Right'
All these elements are placed in one row.

On my computer every thing works fine, but if I send
the programm to a friend, then he says the Button does
not appear. What problem can this be for?

Thanks in advance.
 
H

Herfried K. Wagner [MVP]

Melanie said:
I have an application where I docked a TabControl with 'FILL'.
In these TabControl I have:
- a Label with anchor 'Left, Top'
- a TextBox with anchor 'Left, Top, Right'
- a Button with anchor 'Top, Right'
All these elements are placed in one row.

On my computer every thing works fine, but if I send
the programm to a friend, then he says the Button does
not appear. What problem can this be for?

Do the other controls fill the space where the button should be shown or
is there a free space between the other controls? Do both systems use
the same .NET/Windows versions?
 
?

=?ISO-8859-1?Q?Melanie_R=F6sch?=

Do the other controls fill the space where the button should be shown or
is there a free space between the other controls? Do both systems use
the same .NET/Windows versions?

The TextBox control fill the space where the button should be shown.
The .Net is the same and the windows is win2000. The only difference
is, that I have service pack 2 and my friend service pack 3.
 
H

Herfried K. Wagner [MVP]

Melanie Rösch said:
The TextBox control fill the space where the button should
be shown. The .Net is the same and the windows is win2000.
The only difference is, that I have service pack 2 and my friend
service pack 3.

That's really weird. You can add test code to loop through the 'Controls'
collection of the container that contains the button in order to see if the
button has been added correctly to this collection.
 
?

=?ISO-8859-1?Q?Melanie_R=F6sch?=

Herfried said:
That's really weird. You can add test code to loop through the
'Controls' collection of the container that contains the button in order
to see if the button has been added correctly to this collection.

Hi Herfried,

now I have tried to put all the things in a seperate panel.
That means the label docked right in the panel, the textfield docked
fill and an empty label for space and the button docked right. But
the problem is the same. I get the button but my friend not.

How can I see that the button has been added correctly to the collection
of the label? I also can send you a screenshot of both scenarios, if you
want.

Thanks Melanie
 
H

Herfried K. Wagner [MVP]

Melanie Rösch said:
now I have tried to put all the things in a seperate panel.
That means the label docked right in the panel, the textfield docked
fill and an empty label for space and the button docked right. But
the problem is the same. I get the button but my friend not.

How can I see that the button has been added correctly to the collection
of the label? I also can send you a screenshot of both scenarios, if you
want.

You can send me screenshots (GIF format preferred) and/or a small sample
application that can be used to repro the problem, if you want. My email
address can be found at <URL:http://dotnet.mvps.org/meta/author/#Contact>.
 
C

Cor Ligthert

Melanie,

Did you look at my message too?

Cor

Hi Herfried,

now I have tried to put all the things in a seperate panel.
That means the label docked right in the panel, the textfield docked
fill and an empty label for space and the button docked right. But
the problem is the same. I get the button but my friend not.

How can I see that the button has been added correctly to the collection
of the label? I also can send you a screenshot of both scenarios, if you
want.

Thanks Melanie
 
H

Herfried K. Wagner [MVP]

Update:
You can send me screenshots (GIF format preferred) and/or a small sample
application that can be used to repro the problem, if you want. My email
address can be found at <URL:http://dotnet.mvps.org/meta/author/#Contact>.

OK, I received the screenshots and replied by mail in German. If there are
any news on this topic, please post them to this thread.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top