Welcome to Dream.In.Code
Getting VB Help is Easy!

Join 131,480 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,840 people online right now. Registration is fast and FREE... Join Now!




VB graphics

 
Reply to this topicStart new topic

VB graphics, making a floor plan

IainMackay85
post 10 May, 2005 - 01:00 PM
Post #1


New D.I.C Head

*
Joined: 7 May, 2005
Posts: 44


My Contributions


I'm currently making a VB application, but i need to make a floor plan designing thing. i basically need to have a floor area that i can add windows and doors to. thanks for your help.

Iain
User is offlineProfile CardPM

Go to the top of the page


zakary
post 11 May, 2005 - 04:46 AM
Post #2


D.I.C Regular

Group Icon
Joined: 15 Feb, 2005
Posts: 398



Thanked 6 times

Dream Kudos: 175
My Contributions


what do you have so far?
We here will help you with the problems but we are not going to write the code for you.
User is offlineProfile CardPM

Go to the top of the page

IainMackay85
post 11 May, 2005 - 12:42 PM
Post #3


New D.I.C Head

*
Joined: 7 May, 2005
Posts: 44


My Contributions


i just figured out i could draw everything from lines and then i can get any shape, is there any way to get lines as required rather than having 50 in stock just incase?

CHeers
Iain
User is offlineProfile CardPM

Go to the top of the page

tel0r
post 11 May, 2005 - 08:03 PM
Post #4


New D.I.C Head

Group Icon
Joined: 22 Feb, 2005
Posts: 27



Dream Kudos: 200
My Contributions


CODE

Dim n As Long
n = Line1.Count
Load Line1(n)
'show it
Line1(n).Visible = True
'ex
Line1(n).X1 = n * 100
Line1(n).X2 = n * 100
User is offlineProfile CardPM

Go to the top of the page

IainMackay85
post 12 May, 2005 - 01:31 PM
Post #5


New D.I.C Head

*
Joined: 7 May, 2005
Posts: 44


My Contributions


thats great thanks. i'll give it a go see how i get on with it.

thanks again,
Iain
User is offlineProfile CardPM

Go to the top of the page

IainMackay85
post 16 May, 2005 - 09:37 AM
Post #6


New D.I.C Head

*
Joined: 7 May, 2005
Posts: 44


My Contributions


hi people,
i tried tel0rs seggestion which is reall good, but the n = line1.count doesnt work. count isnt availible. however i used dim n as integer n = n +1 which would also work but now it gets stuck at the load line1(n) part saying "Object variable or With block variable not set " any ideas?

oh and last but not least how do i get the mouse position?

cheers iain
User is offlineProfile CardPM

Go to the top of the page

meburke
post 16 May, 2005 - 10:09 AM
Post #7


New D.I.C Head

*
Joined: 16 May, 2005
Posts: 1

First, you need to post your code. Some of us can't debug in the dark.
Second, it sounds like you are jumping into this with too little up-front design. Thinking it through first is going to make it easier on you in the long run.

Not everybody agrees with my constant use of UML, especially the Use-case analysis, but I started back in the '60's where the process was "build a flowchart and the code (assembler at that time) becomes intuitive." I spend many hours trying to fix the wreckage of Poorly-designed projects. (Many times, these were supposed to be one-time use, and pounded out under pressure.)

If you are under pressure, use a tool that already has what you need, like Visio. You can make VBA apps that will put Visio through hoops that you will never accomplish starting from scratch.

Mike
User is offlineProfile CardPM

Go to the top of the page

tel0r
post 17 May, 2005 - 09:24 AM
Post #8


New D.I.C Head

Group Icon
Joined: 22 Feb, 2005
Posts: 27



Dream Kudos: 200
My Contributions


sorry, should have said, you need to change the Index of Line1 to 0 in the properties.
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/19/08 11:57PM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month