473,569 Members | 2,402 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Current Mode

Hopefully this will make sence. Here is my problem, I have a form that
takes some data from a database in the when "load" procedure is run. The
problem is that the database is not available when coding the problem at
design time. The load procedure seems to run even at design time. I
remember from earlier versions of VB there was a command I could enter at
the beginning of the procedure to exit out if it was desgin mode.. But for
the life of me I can not recall what it was nor can I figure it out in the
current version... Anyone have any ideas?

Thanks,
David
Nov 20 '05 #1
4 1306
I think I came up with a better way to ask the question, is there some way
to determine Runtime -vs- Design time?

Thanks again

"D Miller" <de**********@y ahoo.com> wrote in message
news:zh******** *********@newsr ead2.news.pas.e arthlink.net...
Hopefully this will make sence. Here is my problem, I have a form that
takes some data from a database in the when "load" procedure is run. The
problem is that the database is not available when coding the problem at
design time. The load procedure seems to run even at design time. I
remember from earlier versions of VB there was a command I could enter at
the beginning of the procedure to exit out if it was desgin mode.. But for the life of me I can not recall what it was nor can I figure it out in the
current version... Anyone have any ideas?

Thanks,
David

Nov 20 '05 #2
I think I came up with a better way to ask the question, is there some way
to determine Runtime -vs- Design time?

Thanks again

"D Miller" <de**********@y ahoo.com> wrote in message
news:zh******** *********@newsr ead2.news.pas.e arthlink.net...
Hopefully this will make sence. Here is my problem, I have a form that
takes some data from a database in the when "load" procedure is run. The
problem is that the database is not available when coding the problem at
design time. The load procedure seems to run even at design time. I
remember from earlier versions of VB there was a command I could enter at
the beginning of the procedure to exit out if it was desgin mode.. But for the life of me I can not recall what it was nor can I figure it out in the
current version... Anyone have any ideas?

Thanks,
David

Nov 20 '05 #3
"D Miller" <de**********@y ahoo.com> schrieb
Hopefully this will make sence. Here is my problem, I have a form
that takes some data from a database in the when "load" procedure is
run. The problem is that the database is not available when coding
the problem at design time. The load procedure seems to run even at
design time. I remember from earlier versions of VB there was a
command I could enter at the beginning of the procedure to exit out
if it was desgin mode.. But for the life of me I can not recall what
it was nor can I figure it out in the current version... Anyone have
any ideas?


I think it only runs if you design a form derived from the Form containing
the code.
If not me.designmode then
'database stuff
end if
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #4
"D Miller" <de**********@y ahoo.com> schrieb
Hopefully this will make sence. Here is my problem, I have a form
that takes some data from a database in the when "load" procedure is
run. The problem is that the database is not available when coding
the problem at design time. The load procedure seems to run even at
design time. I remember from earlier versions of VB there was a
command I could enter at the beginning of the procedure to exit out
if it was desgin mode.. But for the life of me I can not recall what
it was nor can I figure it out in the current version... Anyone have
any ideas?


I think it only runs if you design a form derived from the Form containing
the code.
If not me.designmode then
'database stuff
end if
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #5

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

Similar topics

72
5331
by: Mel | last post by:
Are we going backwards ? (please excuse my spelling...) In my opinion an absolute YES ! Take a look at what we are doing ! we create TAGS, things like <H1> etc. and although there are tools (dreamweaver and the like), they are all at the lowest level of programming (something like assembly as oposed to C++ etc.). These tools create...
5
11076
by: harborboy76 | last post by:
Hi all, First of all, just want to let you know that I'm coming from Informix background, and we just recently migrated to DB2. It's been a great new learning experience. For the time being, I have some questions regarding LOCK TIMEOUT and its compatibility with LOCK MODE WAIT in INFOMIX. Last week, I just found out that the following...
0
2689
by: YFS DBA | last post by:
I'm getting an error message when I open queries then try to close them: "This action will reset the current code in break mode" Clicking on 'Yes' just brings up the same message. If I change to Design mode, I can close the query. I've installed SP-3, which I thought would cure the problem, to no avail. It usually happens after I've...
11
21908
by: Ken Varn | last post by:
I want to be able to determine my current line, file, and function in my C# application. I know that C++ has the __LINE__, __FUNCTION__, and __FILE___ macros for getting this, but I cannot find a C# equivalent. Any ideas? -- ----------------------------------- Ken Varn Senior Software Engineer Diebold Inc. varnk@diebold.com
4
17772
by: Dan Bart | last post by:
I am using an application which is a modification of IBuySpy Portal. It is using Forms authentication. Users login and their name is added to Context Then I use: Web.HttpContext.Current.User.Identity.Name to write audit trail as to what users do. Now recently on one of the activities I noticed that the
3
4890
by: Damian | last post by:
Hi everyone I'm having an issue with one of our applications. I'm getting the following error when attempting to log in to the site: Server Error in 'xxxxxxxxxxxxxxxx' Application. -------------------------------------------------------------------------------- Runtime Error Description: An application error occurred on the server. The...
4
5961
by: Nick | last post by:
I'm developing an intranet app, and want to get the current user name for logging purposes. I've turned off anonymous access, and turned on windows authentication in the IIS config. The apps web.config file has authentication mode set to windows, and 'identity impersonate' is set to true. When I try and get the default.aspx page, IE returns...
1
2249
by: Joseph Geretz | last post by:
Why isn't the ASP.NET runtime providing a valid reference for this object to my WebService? I'm trying to use WSE and DIME to send attachments via Web Service. I've provided a whole lot of information in the thread below: DIME: Attachments.Add - Object reference not set to an instance of an object. Bu when all is said and done, the crux...
3
2741
by: db2admin | last post by:
hi, our db2advis is broken and i am trying to find other ways to get recommended indexes i tried using command "SET CURRENT EXPLAIN MODE RECOMMEND INDEXES" and it populated ADVISE_INDEXES table. new indexes recommended by this command does not have runstats on it. how can i evaluate new suggested indexes ? do i have to physically create...
3
8217
by: duyanning | last post by:
I have written a pyhton script that will process data file in current working directory. My script is in an different directory to data file. When I debug this script using pdb within emacs, emacs will change the current working directory to the directory which include the script, so my script cannot find the data file. I think this is the...
0
7618
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
8138
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...
0
7983
tracyyun
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...
0
6287
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5514
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
3657
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...
0
3647
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2117
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
1
1228
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.