473,585 Members | 2,501 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

My code inexplicably executes while in the IDE

Tom
I've written a validatedTextBo x control which inherits
from textBox and among other things checks if the text box
is blank, and colors the background pink and issues an
error message via msgBox if it is. It is in its own DLL
and executes perfectly when I use it.

The mystery is that while I am in the IDE and doing simple
things in the form designer like going from one tab to
another on a tabcontrol (which contains some of my
validatedTextBo xes) my code appears to execute (a textbox
turns pink and I get the msgBox). I'm a newbie and
wouldn't know how to make code execute while using the
form designer if I wanted to, so needless to say I've no
idea what is wrong or how to fix it. I'm not posting the
code because it is pretty long, but if necessary I will.

Just to be clear. I am NOT running the program when this
happens. I am using the form designer. Also, if I set a
breakpoint in where the validatedTextBo x does the msgBox,
it does not stop there.

Any suggestions? Thanks
Nov 20 '05 #1
2 953
Could the IDE be running the code from the actual DLL?
"Tom" <an*******@disc ussions.microso ft.com> wrote in message
news:2a******** *************** ******@phx.gbl. ..
I've written a validatedTextBo x control which inherits
from textBox and among other things checks if the text box
is blank, and colors the background pink and issues an
error message via msgBox if it is. It is in its own DLL
and executes perfectly when I use it.

The mystery is that while I am in the IDE and doing simple
things in the form designer like going from one tab to
another on a tabcontrol (which contains some of my
validatedTextBo xes) my code appears to execute (a textbox
turns pink and I get the msgBox). I'm a newbie and
wouldn't know how to make code execute while using the
form designer if I wanted to, so needless to say I've no
idea what is wrong or how to fix it. I'm not posting the
code because it is pretty long, but if necessary I will.

Just to be clear. I am NOT running the program when this
happens. I am using the form designer. Also, if I set a
breakpoint in where the validatedTextBo x does the msgBox,
it does not stop there.

Any suggestions? Thanks

Nov 20 '05 #2
In article <2a************ *************** **@phx.gbl>, Tom wrote:
I've written a validatedTextBo x control which inherits
from textBox and among other things checks if the text box
is blank, and colors the background pink and issues an
error message via msgBox if it is. It is in its own DLL
and executes perfectly when I use it.

The mystery is that while I am in the IDE and doing simple
things in the form designer like going from one tab to
another on a tabcontrol (which contains some of my
validatedTextBo xes) my code appears to execute (a textbox
turns pink and I get the msgBox). I'm a newbie and
wouldn't know how to make code execute while using the
form designer if I wanted to, so needless to say I've no
idea what is wrong or how to fix it. I'm not posting the
code because it is pretty long, but if necessary I will.

Just to be clear. I am NOT running the program when this
happens. I am using the form designer. Also, if I set a
breakpoint in where the validatedTextBo x does the msgBox,
it does not stop there.

Any suggestions? Thanks


The control is live in the IDE :) So, you might want to look at the
..DesignMode property to determine if code should be run or not...

If Not Me.DesignMode Then
' do your checks....
End If

HTH
--
Tom Shelton [MVP]
Nov 20 '05 #3

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

Similar topics

7
2776
by: Studio P.M. | last post by:
Dear colleagues, Does anyone have an idea where I could find precise and detailed explanation of each and every statement of the following “Web Form Designer generated code”: #region Web Form Designer generated code override protected void OnInit(aS.EventArgs e) { // // CODEGEN: This call is required by the ASP.NET Web Form Designer.
4
4387
by: Dennis Sjogren | last post by:
Greetings! First, I'm not 100% sure where to post this question. I use VB.NET for this project, but it's really a design question (a question on which method to use when solving this problem). In this medium sized (30 or so forms) application, our users have requested a more visual notification of when the client (this app) is...
88
8020
by: Peter Olcott | last post by:
Cab you write code directly in the Common Intermediate language? I need to optimize a critical real-time function.
1
1924
by: Liam.M | last post by:
I currently HAVE a form...a "Summary List" it could be called...which is a contineous form...AND on this form are "Four fields" from EVERY record (each on their own line) so to seak...like a running summary of ALL the Records in the Database! NOW upon clicking "one" of these lines...it then opens that specific Record in the...
1
1363
by: Celldss | last post by:
I have a .Net service (VB - 1.1 SP1) deployed in our environment that is experiencing an odd issue. The service does a series of file & registry based checks, logs to the event log and uploads the results to an Oracle database. However, a few clients (a couple hundred or so out of tens of thousands) are experiencing a rather odd issue. The...
5
1536
by: Cord-Heinrich Pahlmann | last post by:
Hi, I'm wondering when php executes the code. I have a little script which takes around 10 seconds execution time. In those 10 seconds the script does a lot of mysql_queries and changes some data. If the script stops after 5 seconds and restarts it will mess up my data. But it seems if php goes through the code and executes all the
28
1823
by: Joey Martin | last post by:
One of my servers got hacked with the SQL injection due to poor coding. So, I had someone write a stored procedure and new code. But, to me, it looks just as flawed, even using the stored procedure. email=request("email") password=request("pw") OLD CODE: sql="select * from tablename where email='" & email & "' and password='"
3
2944
by: Tony Johansson | last post by:
Hello! I'm reading in a book and it says the following. "MSIL(Microsoft Intermediate Language) generated by all the .NET language compilers. This is a common standard for the binary code generated by the compilers and is what is executed by the CLR" Now to my question about the text.
3
3173
by: jonceramic | last post by:
Hi all, I have a form with a sub1 and a sub2. Most everything is working right. Except this. I have a "beforeupdate" and an "afterupdate" event on form sub2. "BeforeUpdate" works great. But, "AfterUpdate" never even executes? Here's my code...
0
7908
marktang
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, well explore What is ONU, What Is Router, ONU & Routers main...
0
7836
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8336
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7950
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...
0
6606
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 projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5710
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 presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5389
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...
1
1447
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1175
bsmnconsultancy
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...

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.