|
-
Oct 12th, 2003, 10:48 AM
#1
Thread Starter
Addicted Member
Help on output representation
Hi,
I am presently making a program that has to accept unlimited inputs from the user and then rearrange them into some really crazy order(this aint the problem). Afterwards, I need to represent the output in circles, one for each input, with lines that connect one circle to the other.
I was thinking of two things: one is to draw on the form thru code, and the other is to use an object.
Questions
What function draws a circle or a line on a form?
How can i make that function draw on a particular section in the form? (ex. gotoxy(12,12) in turbo c)
If I were to use objects, what function would make another instance of an object? Or maybe theres an ocx out there that can show pictures unlimitedly (like maybe the PictureClip Control, I really don't know how to use it )
Please help me. It's badly needed
[vbcode]
If SymptomsPersist Then Goto VBForum
[/vbcode]
This is our world now...the world of the electron and the switch, the beauty of the baud.We make use of a service already existing without paying for what could be dirt cheep if it wasn't run by profiteering gluttons, and you call us criminals. We explore...and you call us criminals. We exist without skin color, without nationality, without religious bias...and you call us criminals. You build atomic bombs, wage wars, murder, cheat, and lie to us and try to make us believe it is for our own good, yet we're the criminals. Yes, I am a criminal. My crime is that of curiosity. My crime is that of judging people by what they say and think, not what they look like. My crime is that of outsmarting you, something that you will never forgive me for. I am a hacker and this is my manifesto.You may stop this individual, but you can't stop us all...after all, we're all alike."
+++The Mentor+++
-
Oct 12th, 2003, 10:49 AM
#2
Retired VBF Adm1nistrator
You could use the Shape control ?
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Oct 12th, 2003, 10:52 AM
#3
Thread Starter
Addicted Member
Yes, I could do that but since vb only has room for 256 objects in one form, it would not be able to get that much user input
BTW, can you tell me how to make another instance of a shape control thru code?
Thanks
[vbcode]
If SymptomsPersist Then Goto VBForum
[/vbcode]
This is our world now...the world of the electron and the switch, the beauty of the baud.We make use of a service already existing without paying for what could be dirt cheep if it wasn't run by profiteering gluttons, and you call us criminals. We explore...and you call us criminals. We exist without skin color, without nationality, without religious bias...and you call us criminals. You build atomic bombs, wage wars, murder, cheat, and lie to us and try to make us believe it is for our own good, yet we're the criminals. Yes, I am a criminal. My crime is that of curiosity. My crime is that of judging people by what they say and think, not what they look like. My crime is that of outsmarting you, something that you will never forgive me for. I am a hacker and this is my manifesto.You may stop this individual, but you can't stop us all...after all, we're all alike."
+++The Mentor+++
-
Oct 12th, 2003, 11:00 AM
#4
Retired VBF Adm1nistrator
Use a control array. Keep index 0 hidden, and then use Load to load a new control with a higher index number.
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Oct 12th, 2003, 11:14 AM
#5
Thread Starter
Addicted Member
Hi,
I tried what you said and came up with something like this
(I tried it with a command button)
VB Code:
Private Sub Command2_Click()
Load Command1(1)
End Sub
I clicked commandbutton2 and nothing happened
I clicked it again and it gave me an error message that the object is already loaded
But I don't see any object. Can you show me how you go around this?
[vbcode]
If SymptomsPersist Then Goto VBForum
[/vbcode]
This is our world now...the world of the electron and the switch, the beauty of the baud.We make use of a service already existing without paying for what could be dirt cheep if it wasn't run by profiteering gluttons, and you call us criminals. We explore...and you call us criminals. We exist without skin color, without nationality, without religious bias...and you call us criminals. You build atomic bombs, wage wars, murder, cheat, and lie to us and try to make us believe it is for our own good, yet we're the criminals. Yes, I am a criminal. My crime is that of curiosity. My crime is that of judging people by what they say and think, not what they look like. My crime is that of outsmarting you, something that you will never forgive me for. I am a hacker and this is my manifesto.You may stop this individual, but you can't stop us all...after all, we're all alike."
+++The Mentor+++
-
Oct 12th, 2003, 11:21 AM
#6
The picture isn't missing
it is invisible at first, so
Command1(1).Visible = True
Remember, if someone's post was not helpful, you can always rate their post negatively  .
-
Oct 12th, 2003, 11:32 AM
#7
Thread Starter
Addicted Member
[vbcode]
If SymptomsPersist Then Goto VBForum
[/vbcode]
This is our world now...the world of the electron and the switch, the beauty of the baud.We make use of a service already existing without paying for what could be dirt cheep if it wasn't run by profiteering gluttons, and you call us criminals. We explore...and you call us criminals. We exist without skin color, without nationality, without religious bias...and you call us criminals. You build atomic bombs, wage wars, murder, cheat, and lie to us and try to make us believe it is for our own good, yet we're the criminals. Yes, I am a criminal. My crime is that of curiosity. My crime is that of judging people by what they say and think, not what they look like. My crime is that of outsmarting you, something that you will never forgive me for. I am a hacker and this is my manifesto.You may stop this individual, but you can't stop us all...after all, we're all alike."
+++The Mentor+++
-
Oct 13th, 2003, 10:05 AM
#8
Thread Starter
Addicted Member
Can anyone else help me out here please
[vbcode]
If SymptomsPersist Then Goto VBForum
[/vbcode]
This is our world now...the world of the electron and the switch, the beauty of the baud.We make use of a service already existing without paying for what could be dirt cheep if it wasn't run by profiteering gluttons, and you call us criminals. We explore...and you call us criminals. We exist without skin color, without nationality, without religious bias...and you call us criminals. You build atomic bombs, wage wars, murder, cheat, and lie to us and try to make us believe it is for our own good, yet we're the criminals. Yes, I am a criminal. My crime is that of curiosity. My crime is that of judging people by what they say and think, not what they look like. My crime is that of outsmarting you, something that you will never forgive me for. I am a hacker and this is my manifesto.You may stop this individual, but you can't stop us all...after all, we're all alike."
+++The Mentor+++
-
Dec 25th, 2003, 03:53 PM
#9
Hyperactive Member
If my post has been helpful, then please rate it accordingly...
If it has solved your question(s), then don't forget to mark the thread as "[Resolved]"... thank you.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|