473,406 Members | 2,710 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,406 software developers and data experts.

Error with ( brwWebBrowser.Width = Me.ScaleWidth - 2300 )

I know its the brwWebBrowser.Width = Me.ScaleWidth - 2300 state ment. I click debug and that come up highlited. When i minimize my program i get an error that says (invalid propity value). How can i fix this?
Oct 21 '06 #1
5 2353
MMcCarthy
14,534 Expert Mod 8TB
I assume the 2300 stands for pixels. Are brwWebBrowser and ScaleWidth set in this format?



I know its the brwWebBrowser.Width = Me.ScaleWidth - 2300 state ment. I click debug and that come up highlited. When i minimize my program i get an error that says (invalid propity value). How can i fix this?
Oct 22 '06 #2
what does that mean?
Oct 22 '06 #3
i figured something out thats dumb. You have to have a MDI form for that to work
Oct 22 '06 #4
ahh here you go this is it...
Public zzz As Integer

( other codes )


brwWebBrowser.Width = Me.ScaleWidth
zzz = Me.Width - 2350
brwWebBrowser.Width = zzz

brwWebBrowser.Height = Me.ScaleHeight

( other codes)

Hope this helps someone
Oct 22 '06 #5
albertw
267 100+
ahh here you go this is it...
Public zzz As Integer

( other codes )


brwWebBrowser.Width = Me.ScaleWidth
zzz = Me.Width - 2350
brwWebBrowser.Width = zzz

brwWebBrowser.Height = Me.ScaleHeight

( other codes)

Hope this helps someone
be sure you don't end up with a negative width !
Oct 22 '06 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Lapchien | last post by:
Debug stops at the 3rd line of this code (Set rs = db.openrecordset("IMPORT") why? Private Sub Command118_Click() Dim rs As DAO.Recordset Set rs = db.openrecordset("IMPORT") With rs...
6
by: Nathan Sokalski | last post by:
I am using a DataSet as the DataSource of a DataList in my code. The SQL used to get the data from the database begins with: SELECT...
1
by: Eric | last post by:
I created a simple web site in VS 2005 and then copied it underneath the IIS tree and created a virtual directory for it. When I try to access the default.aspx page I get the below error text: ...
4
by: kaosyeti | last post by:
hey... i know NOTHING about sql server, .net framework or probably anything else on sql monster. i am a novice access user, self-taught for about 9 months now and have only a basic understanding...
0
by: pebelund | last post by:
Im having a problem I cant solve atm. I got a webbserver, where Im doing a search, that will list some information. The search goes to a seperate SQL 2000 server, to a stored procedure that runs...
10
by: deathtospam | last post by:
My employer is starting to take the first steps towards migrating its Classic ASP codebase to ASP.NET v2.0. We have a copy of our existing website on the new Windows Server 2003 R2 test server,...
6
by: Tremendo | last post by:
Hi, I have two PCs: PC1: Visual Studio 2005 (including .NET framework 2.0. PC2: Visual Studio 6 (using Visual Basic 6) + .NET framework 2.0 installed separately. On PC1 I wrote and built a C#...
1
by: danny relic | last post by:
Line 3: Could not create reference: '{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}#1.1#0'. Line 62: Class SHDocVwCtl.WebBrowser of control brwWebBrowser was not a loaded control class. Whenever I go...
0
by: Kristi | last post by:
This is the Command: CPYTOIMPF FROMFILE(LSPMPRDTA/LS600F) + TOSTMF('\KWIKTAG\KWIKTAG.TXT') + MBROPT(*REPLACE) STMFCODPAG(*PCASCII) +
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
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...
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.