Search the Community
Showing results for tags 'control'.
-
Is there a way to extend the bounds of a control, so that it has some extra space between the physical boundary and the graphical edge? Look at the image in attachment that demonstrates what I want to achieve. In this case it is a datagridview with some extra space on the right. Sure, I could put it inside a usercontrol, but I want this control to Inherit directly from DataGridView.
-
Hey, Any suggestions on how I should go about loading levels into my game? I have a very good piece of code working for my player... collision detection works 100%, doors work (including the ID property for teleporting to rooms).. I'm probably going about all of this the wrong way, and I don't want to make a 2D game using tiles. I guess all I'm asking is... how should I go about this? I've tried making an MDIParent and MDIChild to get pre-made forms to load, I don't really like the idea of doing that... I've also tried getting each control off of 1 form onto another and that isn't working right.. I am probably going to make an editor to export each control name and their properties and then have the form to load the properties off of the text file based on the level ID, I could probably easily do that but would that be the right way? Any help is appreciated!
-
Just a quick example of how it is possible to create a custom textbox control in VB.Net. It exposes a property to define allowed content via an enumeration, raises an event on invalid entry and also handles programatic assigment and attempts to paste invalid data also. Zip also includes a sample form showing the control in action (or lack of action) CustomControl.zip