I have a problem with editor. In MDI parent I have defined several public
static controls (imagelist,list box etc). From time to time, when I attempt
to compile program it fails because editor changes "public static" to
"public" and changes
all initialization entries of those controls to "this."
Is there a problem with declaring controls as public static or what?
I am tired of copy-pasting code back. 3 1006
Hi Martin
Windows programs (.NET and all others) expect to set up a run-time ownership
hierarchy. Use of "static" in an MDI app sounds like a control would be in
several hierarchies, and as a result Windows would likely get very confused.
Maybe the editor/compiler is saving you from this situation...
Regards
Ron
"martin" <ma************ @zd.htnet.hr> wrote in message
news:bj******** **@ls219.htnet. hr... I have a problem with editor. In MDI parent I have defined several public static controls (imagelist,list box etc). From time to time, when I attempt to compile program it fails because editor changes "public static" to "public" and changes all initialization entries of those controls to "this." Is there a problem with declaring controls as public static or what? I am tired of copy-pasting code back.
I have a listbox which contains minimized (hidden) MDI forms, so that user
can easily get them. There is also a imagelist which contains several images
which are used from another class (in overriden datagrid column painting to
which I cannot send images directly, while instatiating a form with them in
class is out of question).
It works without any errors, but as I said,sometimes editor erases "static"
and puts "this".
"Ron McNulty" <rm******@xtra. co.nz> wrote in message
news:#C******** *****@TK2MSFTNG P11.phx.gbl... Hi Martin
Windows programs (.NET and all others) expect to set up a run-time
ownership hierarchy. Use of "static" in an MDI app sounds like a control would be in several hierarchies, and as a result Windows would likely get very
confused. Maybe the editor/compiler is saving you from this situation...
Regards
Are you defining those objects inside or outside of the sections marked do
not modify, in other words the InitalizeCompon ent method? The IDE can and
will change things in its designer generated code.
"martin" <ma************ @zd.htnet.hr> wrote in message
news:bj******** **@ls219.htnet. hr... I have a listbox which contains minimized (hidden) MDI forms, so that user can easily get them. There is also a imagelist which contains several
images which are used from another class (in overriden datagrid column painting
to which I cannot send images directly, while instatiating a form with them
in class is out of question). It works without any errors, but as I said,sometimes editor erases
"static" and puts "this".
"Ron McNulty" <rm******@xtra. co.nz> wrote in message news:#C******** *****@TK2MSFTNG P11.phx.gbl... Hi Martin
Windows programs (.NET and all others) expect to set up a run-time ownership hierarchy. Use of "static" in an MDI app sounds like a control would be
in several hierarchies, and as a result Windows would likely get very confused. Maybe the editor/compiler is saving you from this situation...
Regards
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Srinath Avadhanula |
last post by:
Hello,
Sorry to be bringing up what seems to be a somewhat beaten up topic...
This is what I wanted to do:
Create a _simple_ text editor widget which supports VI(M) style
keybindings but works with arbitrary fonts/unicode characters. Vi(m)
unfortunately, does not support Devanagari (or proportional fonts) and
it looks like it will take quite some time for these things to work. As
|
by: nobody |
last post by:
Howdy, Mike!
mikecoxlinux@yahoo.com (Mike Cox) wrote in message news:<3d6111f1.0402271647.c20aea3@posting.google.com>...
> I'm a C++ programmer, and have to use lisp because I want to use
> emacs. I've gotten a book on lisp, and I must say lisp is the ugliest
> looking language syntax wise. What is up with this: (defun(foo()).
(DEFUN FOO () NIL)
> What were the lisp authors thinking? Why did Stallman use lisp in
|
by: JV |
last post by:
In the SQL Command editor (click on a data adapter, in property window find
the SELECT command property, drill down to the CommandText sub-property and
click the button to edit) if you use a UNION clause in your SQL statement
the editor will complain that it cannot graphically support the UNION
statement. It seems to be referring to the top pane where it diagrams your
table relationships, because that pane becomes disabled. Nontheless,...
|
by: VB Programmer |
last post by:
I went to a few ASP.NET websites today. For some aspx pages I get this
error (too consistently, which is why I think it's my PC):
Server Error in '/CuteEditorTest' Application.
----------------------------------------------------------------------------
----
Culture name rs1_4d1e6891cd6 is not supported. Parameter name: name
Description: An unhandled exception occurred during the execution of the
|
by: Brian |
last post by:
Look at the code below. All three variables are initialized to the same
value, -9223372036854775808. The first two work OK but the third throws a
overflow error. Why? (Framework v1.0.3705)
'-- OK, no overflow
Dim i as Long = Long.MinValue
Dim k as Long = CLng(-2 ^ 63)
'-- Overflow error
Dim m as Long = -9223372036854775808
| |
by: Alex Clark |
last post by:
Hi All,
Not sure if this is limited to VB.NET or if it affects the C# editor too,
but here goes.
In a new solution, inside a blank code file create an empty class inside a
Namespace. Then, at the bottom of the code after End Namespace, add code
for an Enum, as shown below:
' ================
|
by: ZorpiedoMan |
last post by:
This is so weird, and I cannot even isolate the cause enough to give any
clues as to how to reproduce the error, so this is probably a real shot
in the dark...
BUT, has anyone ever run into a situation where pressing the enter key
on a textbox control is NOT captured by the KeyPress event?
Now before you ask:
-- The form does NOT have a default button selected.
|
by: piesse |
last post by:
I am experiencing a weird problem with a popular PHP web application
(Moodle).
The thing uses a custom function to allow you to download/open a file.
That function just send a series of header fields (depending on the file
extension), then outputs the file to the client browser. The result that
all poeple seems to get is that the file opens in the proper application
(i.e. .doc files in the wordprocessor, .ppt in powerpoint etc).
When...
|
by: lofty00 |
last post by:
I found what looks like a definite bug in IE. If you load the page
below in Firefox, the alert comes up as you would expect. If you run it
in IE6 (with sp2), the alert doesn't come up. commenting out the line
that starts 'div.class' makes it work. This is very weird, as far as I
can see - the code is not run, and it's not generating a syntax error,
but it's still preventing the rest of the program from running. All I
can guess is that the...
|
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: 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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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: 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: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |