falled
Member
- Joined
- Sep 16, 2006
- Messages
- 20
- Programming Experience
- Beginner
HELP plz
I need some help doing an app.
I'm building a multi-window-mdi based appilcation. I can put all the windows I want, and in each window I can put a picture inside. Let's imagine in a certain state. I've got a menu and when I click new window...(code for menu click)
and the actions for the menu button add new...
But If I wanna move the icon throught the mdiChild window I don't know
where I must type de handle.
I read something called withEvents????? I know that if I wanna move the icon I must call a MouseDown function but where??
thx
visca el barça
I need some help doing an app.
I'm building a multi-window-mdi based appilcation. I can put all the windows I want, and in each window I can put a picture inside. Let's imagine in a certain state. I've got a menu and when I click new window...(code for menu click)
VB.NET:
PrivateSub CreateToolStripMenuItem_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles CreateToolStripMenuItem.Click
Dim cms AsNew ContextMenuStrip
cms.Items.Add("New")
cms.Items.Add("Delete All...")
Dim subForm AsNew Form
subForm.MdiParent = Me
Static intContador AsInteger
subForm.TopMost = False
subForm.Name = "Set" & intContador
subForm.Text = "Set untitled" & intContador
subForm.FormBorderStyle = Windows.Forms.FormBorderStyle.SizableToolWindow
subForm.MinimizeBox = True
subForm.AllowDrop = True
subForm.ContextMenuStrip = cms
subForm.BackColor = Color.White
intContador += 1
subForm.Show()
EndSub
VB.NET:
PrivateSub NovaToolStripMenuItem_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles NovaToolStripMenuItem.Click
Dim pb AsNew PictureBox
pb.Visible = True
pb.Width = 58
pb.Height = 58
pb.Left = ActiveMdiChild.Width / 2
pb.Top = ActiveMdiChild.Width / 2
pb.Image = My.Resources.ico
ActiveMdiChild.Controls.Add(pb)
EndSub
where I must type de handle.
I read something called withEvents????? I know that if I wanna move the icon I must call a MouseDown function but where??
thx
visca el barça
Last edited by a moderator: