473,405 Members | 2,287 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Custom controls moving around in VB .Net not C#

Ron
I have this weird problem...I have a custom composited control written in C#
comprising of a label and a textbox (in an assembly)

If I import the control into a C# Win Forms project and place several of the
controls on a page everything is fine...all of the positioning properties
are correctly serialized to the designer code and the controls remain in
their designtime positions. HOWEVER if I import the custom control into VB
..Net win Forms project and follow EXACTLY the same procedure, then I save
the form and close it...when i open the form back up the controls have all
moved and it is also reflected in the designer code. If I repeat the
procedure again, they move again but a different amount.

I have triple checked all properties and even removed the set mutator to no
avail.

Has anybody ever heard of this before? What can i do to troubleshoot this
problem?

Thanks for any info,
Ron

Jun 27 '08 #1
2 1932
On May 29, 3:11*pm, "Ron" <rs_herh...@yahoo.comwrote:
I have this weird problem...I have a custom composited control written in C#
comprising of a label and a textbox (in an assembly)

If I import the control into a C# Win Forms project and place several of the
controls on a page everything is fine...all of the positioning properties
are correctly serialized to the designer code and the controls remain in
their designtime positions. *HOWEVER if I import the custom control intoVB
.Net win Forms project and follow EXACTLY the same procedure, then I save
the form and close it...when i open the form back up the controls have all
moved and it is also reflected in the designer code. *If I repeat the
procedure again, they move again but a different amount.

I have triple checked all properties and even removed the set mutator to no
avail.

Has anybody ever heard of this before? *What can i do to troubleshoot this
problem?

Thanks for any info,
Ron
Hi,

Compare the code generated by the IDE in both cases, one thing you do
not mention though, is if the movement is inside your control or in
the form, or in other words the controls inside your control or your
control in the form
Jun 27 '08 #2
Ron
Ignacio,

Thank you for the reply.

We narrowed it down to a 3rd party control and one of the properties in our
control was not setting the base property correctly. It appeared to be
happening differently in VB .Net than C# .Net but the reality is that we
didn't have the control in our C# project, which ended up being the issue.

Thank you for your reply.
Ron
"Ignacio Machin ( .NET/ C# MVP )" <ig************@gmail.comwrote in
message
news:3c**********************************@p39g2000 prm.googlegroups.com...
On May 29, 3:11 pm, "Ron" <rs_herh...@yahoo.comwrote:
I have this weird problem...I have a custom composited control written in
C#
comprising of a label and a textbox (in an assembly)

If I import the control into a C# Win Forms project and place several of
the
controls on a page everything is fine...all of the positioning properties
are correctly serialized to the designer code and the controls remain in
their designtime positions. HOWEVER if I import the custom control into VB
.Net win Forms project and follow EXACTLY the same procedure, then I save
the form and close it...when i open the form back up the controls have all
moved and it is also reflected in the designer code. If I repeat the
procedure again, they move again but a different amount.

I have triple checked all properties and even removed the set mutator to
no
avail.

Has anybody ever heard of this before? What can i do to troubleshoot this
problem?

Thanks for any info,
Ron
Hi,

Compare the code generated by the IDE in both cases, one thing you do
not mention though, is if the movement is inside your control or in
the form, or in other words the controls inside your control or your
control in the form

Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

19
by: Dales | last post by:
I have a custom control that builds what we refer to as "Formlets" around some content in a page. These are basically content "wrapper" sections that are tables that have a colored header and...
5
by: Dag | last post by:
Hi all, I have a project where we use lots of user controls. We would like to move them to private assemblied custom controls but from what I see this can't be done because the .ascx file must...
19
by: Jamey Shuemaker | last post by:
I'm in the process of expanding my knowledge and use of Class Modules. I've perused MSDN and this and other sites, and I'm pretty comfortable with my understanding of Class Modules with the...
15
by: rizwanahmed24 | last post by:
Hello i have made a custom control. i have placed a panel on it. I want this panel to behave just like the normal panel. The problem i was having is that the panel on my custom control doesnt...
5
by: jbeckh2 | last post by:
Hi, I am trying to create a custom server control that contains several dropdownlists. The control looks like this: Dim pnlHeader As New Panel Protected Overrides Sub RenderContents(ByVal...
2
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
3
OuTCasT
by: OuTCasT | last post by:
Ive added controls to the form dynamically. I would like to know how do i go about being able to give the user the ability to move the controls around. Like in dragging and moving a the controls...
4
by: jmessenger | last post by:
I have an application that i am writing that uses a simple activex control that i built. the application is for inventory tracking and projections of future sales. i am using a continuous form to...
0
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.