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 2 1946
On May 29, 3:11*pm, "Ron" <rs_herh...@yah oo.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
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******** *************** ***********@p39 g2000prm.google groups.com...
On May 29, 3:11 pm, "Ron" <rs_herh...@yah oo.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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 provide an
open TD with a DIV in it for the content of this formlet. (The DIV is
for DHTML to hide and show the content)
I've created a web page showing step by step the two problems I'm
encountering. This problem is much easier to see than it...
|
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 be in the main project as a file...in other
words, it doesn't look like you can add a reference to a custom created
control and leverage an .asxc within it.
Is this correct?
|
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 exception of custom
Collection Classes.
Background: I'm developing an A2K .mdb to be deployed as an .mde at my
current job-site. It has several custom controls which utilize custom
classes to wrap built-in controls, and add additional functionality....
|
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 accept other controls. The
control i drag drop on it becomes the child of my custom control's
parent form and not the child of my custom control. Then i added this
line
""
before my custom control class (i dont know what this line does). Now
|
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 writer as HtmlTextWriter)
pnlHeader.RenderControl(writer)
End Sub
| |
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 will be writing this article intended for those who are in the same level, or maybe lower, of my technical knowledge.
I would be using layman's words, or maybe, my own words as how I understand them, hoping, you will understand it the same way that...
|
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 around in visual studio on the form.
|
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 display all of the products at each location, and i wish to use my control to display the percentage of product in each tank. the problem is that when i pass the percentage value to my control, it displays the last read value from inventory in all of...
|
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 will be writing this article intended for those who are in the same level, or maybe lower, of my technical knowledge.
I would be using layman's words, or maybe, my own words as how I understand them, hoping, you will understand it the same way that...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |