I'm trying to create a smal paint component( similar to MSpaint but not the same thing) in vb.net. I have a panel that holds the background image and a picturebox over the panel that I draw on. I'm using graphics to draw shapes and I have my own custom double buffer, meaning that I draw on the picturebox while the mouse ismoving and on mouse up I draw the final image on the buffer image and on paint event the buffer image replaces the picturebox image. also, i have set the form properties to enable double buffering Me.SetStyle(ControlStyles.ResizeRedraw, True) Me.SetStyle(ControlStyles.DoubleBuffer, …

Member Avatar
Member Avatar
+0 forum 3

hi i guess the title pretty much states the question but i will give the senario to be more clear. i have a mousemove() event which i add in my program programmatically and i need a way for raising that event (again) programmatically too. raiseEvent control_mousemove() doesn't work as it says that "'control_MouseDown' is not an event of 'main'." I read in the msdn site that You cannot use RaiseEvent to raise events that are not explicitly declared in the module. So can i actually raise the event programmatically if the event was added programatically and how? if not any …

Member Avatar
Member Avatar
+0 forum 4

The End.