473,406 Members | 2,849 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.

how to solve this problen in vbdotnet

Private Sub EnlargeDrawing(ByVal DrawControl As System.Drawing.Graphics)
DrawControl.Height = VB6.TwipsToPixelsY(4980)
DrawControl.Width = VB6.TwipsToPixelsX(4980)
Error 1 'Height' is not a member of 'System.Drawing.Graphics'

if we use
Private Sub EnlargeDrawing(ByVal DrawControl As System.Windows.Forms.Control)
DrawControl.Clear(Color.Empty)

Error 1 'Cleare' is not a member of " System.Windows.Forms.Control"

how to solve this problen in vbdotnet
Oct 11 '08 #1
3 1162
kenobewan
4,871 Expert 4TB
Here is the Graphics Methods on MSDN that may help you:
Graphics Methods
Oct 11 '08 #2
Plater
7,872 Expert 4TB
I am able to figure out what you are attempting to do with that code.
Could you be a little more clear about what your problem is?
Are you just attempting to resize an existing control?
Oct 14 '08 #3
joedeene
583 512MB
Well, when you reference the DrawControl in the second sub it .clear() is not a method of windows.forms.control but a method of drawing.graphics, and vice versa, the .height() and .width() property is for a control and not graphics, as you used it in the first sub?

joedeene
Oct 14 '08 #4

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

Similar topics

8
by: vj | last post by:
Hi all, I want to solve the two equations u*tan(u)=w and u^2 + w^2=V^2, where V is a known constant, and u and w are the two unknowns to be determined. Please can someone suggest me how to...
10
by: Ammu | last post by:
hi everybody! does anyone know how to get a gradient titlebar in vbdotnet app...? pls help. thanks in advance.
11
by: Jim Madsen | last post by:
Hi all-- Two years ago I bought a copy of vbdotnet2003 and the book "Learn MS VBDotNet 2003 in 21 Days", published by Sams. I started working through the book, but lost interest. This...
0
by: HardQuestion | last post by:
Hi, I like to know how to use xsd files in vbdotnet project Suppose I've an access db then how to create xsd file pls tell Thanx in advance
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
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
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.